freeapis

Cats

来自 Tumblr 的猫咪图片

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

简介

The Cat API 大规模提供猫咪图片(和动图):随机猫图、按品种筛选搜索,注册账号后还可投票和收藏。它是演示最友好的 API 之一——实际上,基本的图片搜索即使不传密钥也能用

2026-08 实测:接口返回 Access-Control-Allow-Origin: *,浏览器可直接调用(上方收录信息中 CORS 标为 “No”,已过时)。

快速开始

获取随机猫图——不传密钥也能用:

curl "https://api.thecatapi.com/v1/images/search"
[{"id":"MjAwNjc3OA","url":"https://cdn2.thecatapi.com/images/MjAwNjc3OA.jpg","width":500,"height":667}]

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

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

按品种搜索:

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

品种列表:

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

认证方式

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

速率限制与注意事项

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

常见问题

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

免费吗? 是的——业余项目有免费档;当前限制见 docs.thecatapi.com。

可以在浏览器直接调用吗? 可以——已启用 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
Dog Facts

Random facts of Dogs

No authYesYes