freeapis

The Dog

一个关于狗狗的公共服务,在开发你的新应用、网站或服务时可免费使用

认证方式
API Key
HTTPS
Yes
CORS
No
分类
动物

简介

The Dog API 是 The Cat API 的犬类对应版:数千张狗狗图片(和动图)、按品种筛选搜索,注册账号后可投票和收藏。和它的猫科兄弟一样,基本的图片搜索即使不传密钥也能用

2026-08 实测:返回 Access-Control-Allow-Origin: *——浏览器可直接调用(列表中的 CORS “No” 已过时)。

快速开始

随机狗图——不传密钥也能用:

curl "https://api.thedogapi.com/v1/images/search"
[{"id":"VywKKonr8P","url":"https://cdn4.thedogapi.com/optimized/VywKKonr8P.jpg","width":1152,"height":928}]

携带免费密钥(推荐——配额更高):

curl "https://api.thedogapi.com/v1/images/search?limit=3&api_key=YOUR_API_KEY"

按品种搜索:

curl "https://api.thedogapi.com/v1/images/search?breed_ids=akita&api_key=YOUR_API_KEY"

品种列表:

curl "https://api.thedogapi.com/v1/breeds"

认证方式

  • thedogapi.com 注册获取免费密钥——可提高速率限制,解锁投票/收藏。
  • 通过 api_key 查询参数携带。
  • 图片搜索接口容忍缺失密钥——很适合演示。

速率限制与注意事项

  • 免费额度对业余项目很宽松;当前限制见官方文档页。
  • 图片由 Google Cloud Storage CDN 提供(cdn4.thedogapi.com)——支持热链。
  • 品种 ID 是短小写代码(akitalabrador)。
  • 投票/收藏需要注册账号并使用自己的密钥。

常见问题

The Dog API 需要 API 密钥吗? 图片搜索不传密钥也能用;免费密钥提供更高配额,并可访问投票/收藏功能。

免费吗? 是的——业余项目有免费档。

可以在浏览器直接调用吗? 可以——已启用 CORS(实测验证)。

动物 分类更多

APIAuthHTTPSCORS
AdoptAPet

Resource to help get pets adopted

API KeyYesYes
Axolotl

Collection of axolotl pictures and facts

No authYesNo
Cat Facts

Random cat facts

No authYesYes
Cataas

Cat as a service (cats pictures and gifs)

No authYesNo
Cats

Pictures of cats from Tumblr

API KeyYesNo