TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Dog API

275 点作者 kinduff超过 2 年前
Hello there, happy holidays.<p>I&#x27;ve been maintaining for 6 years this Dog API that only returned facts. I recently rewrote the project to make it more flexible [1] and I had a blast doing so.<p>This API has been used by a lot of computer science students, as well as bots and other 3rd party services that integrated in the past. The old endpoint receives around 1,000-1,500 requests per day, which makes me happy.<p>The goal is to extend it to make it more interesting and usable, I collect dog data in my spare time. I&#x27;m not looking to monetize it, it&#x27;s just for the love of education.<p>Feel free to use it, and share it!<p>[1]: <a href="https:&#x2F;&#x2F;github.com&#x2F;kinduff&#x2F;dogapi.dog">https:&#x2F;&#x2F;github.com&#x2F;kinduff&#x2F;dogapi.dog</a>

24 条评论

harshaw超过 2 年前
From a fun &#x2F; teaching &#x2F; learning point of view - I get it. As others are saying however, the secondary learning that you want is that sometimes a database is the right solution.<p>For example, a student could learn that they need to use a API (with all of the API problems: latency, server down, throttling, blah blah blah) when all they really need to do is download a sqlite file, hook up sqlite to their application, run one query - and have a vastly simpler application. This could be as little as 10-50 lines of code. Never underestimate the power of shipping data via sqlite files.
评论 #34149670 未加载
评论 #34158065 未加载
评论 #34149242 未加载
评论 #34149678 未加载
评论 #34152147 未加载
pcardoso超过 2 年前
Thanks! As soon as I find the time I will use it in my useless project, <a href="https:&#x2F;&#x2F;caolendario.pt" rel="nofollow">https:&#x2F;&#x2F;caolendario.pt</a>, a pun on the Portuguese word cão (dog) + calendário (calendar).<p>Photos are taken from <a href="https:&#x2F;&#x2F;dog.ceo&#x2F;dog-api&#x2F;" rel="nofollow">https:&#x2F;&#x2F;dog.ceo&#x2F;dog-api&#x2F;</a>, a similar project.
评论 #34153479 未加载
counttheforks超过 2 年前
&gt; I lost ownership of the Slack application due to Slack&#x27;s policy. I tried to regain ownership of my own application but it was not possible.<p>Would love to hear more about this.
评论 #34159726 未加载
评论 #34155221 未加载
endofreach超过 2 年前
Nice. I love silly things like this.<p>An example on the homepage would be nice. Maybe something about Laika (<a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Laika" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Laika</a>)
评论 #34149317 未加载
mkoryak超过 2 年前
<a href="http:&#x2F;&#x2F;TheCatApi.com" rel="nofollow">http:&#x2F;&#x2F;TheCatApi.com</a> gives me cat pictures.<p>Can this dog API do that? If so, that would be a huge &quot;selling&quot; point
评论 #34149178 未加载
评论 #34149956 未加载
评论 #34157401 未加载
评论 #34155200 未加载
评论 #34155786 未加载
mkraft超过 2 年前
I think you should open source the data, too, by uploading a SQL dump to Github. It provides more learning vectors.
评论 #34148350 未加载
genezeta超过 2 年前
The swagger doc for version 2 points to localhost and so the &quot;Try it out&quot; buttons fail.<p>I mention this only because it&#x27;s not very clear to me if you&#x27;ll be providing an endpoint for v2 or this is no longer the case and people are expected to install their own server, as the README on the repository suggests.<p>Other than that, thanks. It looks like a nice tool to have for teaching :)
评论 #34148192 未加载
xcambar超过 2 年前
Excellent. This goes straight into my list of nice APIs for student work and coding exercises. If there&#x27;s any way to contribute or support, you should advertise it.
评论 #34148322 未加载
评论 #34148392 未加载
评论 #34153509 未加载
scrollaway超过 2 年前
Okay, when you said &quot;dog api&quot;, I thought you hooked up a RPC API to a voice assistant that says &quot;sit&quot;, &quot;come&quot;, &quot;take&quot; etc and trained your dog to respond to it.
评论 #34149258 未加载
评论 #34150186 未加载
评论 #34149419 未加载
评论 #34149926 未加载
canadapups超过 2 年前
I did the same thing but dumped it into a table. Small enough dataset that can load the entire thing and just use jquery to filter via drop down selector.<p>To make it useful I tried filter on characteristics that a buyer would be interested in such as long-haired vs. short.<p>I also gathered the data manually. I&#x27;ll have to compare datasets<p><a href="https:&#x2F;&#x2F;www.canadapups.com&#x2F;breeds" rel="nofollow">https:&#x2F;&#x2F;www.canadapups.com&#x2F;breeds</a>
andai超过 2 年前
Cool project. Noob question here, the homepage mentions that V2 follows some kind of standard, and the API docs page mentions &quot;JSON API schema&quot;, does that refer to this? <a href="https:&#x2F;&#x2F;jsonapi.org&#x2F;format&#x2F;" rel="nofollow">https:&#x2F;&#x2F;jsonapi.org&#x2F;format&#x2F;</a>
评论 #34149298 未加载
cube00超过 2 年前
I&#x27;m learning more about Restful API design and was wondering why there is a generic &quot;data&quot; wrapper, &quot;type: bread&#x2F;group&#x2F;facts&quot; and generic &quot;attributes&quot; structure rather then just returning a object designed for the specific type of data being described.
评论 #34149636 未加载
thangngoc89超过 2 年前
Kind of off-topic: I built a single HTML file website to fetch dogs images from Flickr tears ago for my girlfriend. Totally forgot about it until now. It seems to be still functioning.<p><a href="https:&#x2F;&#x2F;gimmeadog.khoanguyen.me&#x2F;" rel="nofollow">https:&#x2F;&#x2F;gimmeadog.khoanguyen.me&#x2F;</a>
评论 #34151105 未加载
thih9超过 2 年前
Is the API aiming to be a high quality source of dog related facts? Or is the focus mostly on exposing an API for testing code and the content is not a priority?<p>Also: is the data open source? Can we contribute to that too, e.g. send a PR?
评论 #34148065 未加载
BeFlatXIII超过 2 年前
This reminds me of the Capybara API.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;Looskie&#x2F;capybara-api">https:&#x2F;&#x2F;github.com&#x2F;Looskie&#x2F;capybara-api</a><p>(The other one seems to give a CDN error these days)
评论 #34149653 未加载
pfoof超过 2 年前
Will make a Datadog check for it in python to pull data and display the results on a dashboard. Maybe also some alerting, if breeds count suddenly drops or something
ragnarok451超过 2 年前
Ok I know it&#x27;s not in vogue right now but this is actually a good use for the blockchain. Like the database here could just be placed on-chain in a smart contract, and anyone could read it (for free, only writes would cost money) forever, as long as at least one person is operating a node on ethereum. No ongoing hosting or serving costs. Anyone could build an API that did like photo generation or whatever on top of it, and builders could always access the raw data directly.
评论 #34156386 未加载
评论 #34156475 未加载
zensayyy超过 2 年前
I always use your API to place images when I need to show something! Thanks haha
MaximusMindus超过 2 年前
Gotta love the commitment, I&#x27;m sure someone could make use of this
greenpeas超过 2 年前
Is anyone surprised that there&#x27;s a .dog top level domain? When did they add all these extra domains? Also where&#x27;s the .god TLD?
评论 #34154618 未加载
ReactiveJelly超过 2 年前
How big is the overall dataset?
xigoi超过 2 年前
Why does this need to be an API? Why not just provide a file with the relevant information?
评论 #34148057 未加载
nothrowaways超过 2 年前
Excellent API.
rideontime超过 2 年前
Personally lost interest as soon as I saw the awful AI &quot;art&quot; at the linked page. Not expecting everyone else to have the same opinion, but mine is mine.
评论 #34152362 未加载
评论 #34152156 未加载