The Cat API 是面向开发者的猫相关开放 REST 接口,提供十万余张猫图片、100 多个品种资料,以及按品种、分类检索图片的能力。开发者可以对接投票与收藏功能,使用品种查询、图片搜索、体重与年龄估算、体况评分等宠物健康工具,并通过 Webhook 接收审核后的结果推送。接口返回 JSON,公开图片可匿名调用,投票、收藏与宠物档案等写操作需申请 API Key,用 x-api-key 请求头鉴权。适合宠物社区、内容网站、健康管理工具与开发者学习与原型项目集成。

有免费额度API Key

核验于 更新于

协议 · 格式
rest
基础地址
https://beta-api.thecatapi.com/v1

场景与能力

使用场景

  • 按品种或分类检索并展示猫图片
  • 投票与收藏功能集成到宠物社区应用
  • 品种资料与宠物健康工具内容展示
  • Webhook 接收兽医审核后的分析结果

核心能力

  • 10 万+猫图片与 100+ 品种资料
  • 按品种、分类筛选图片
  • 投票、收藏与用户偏好接口
  • 宠物健康指南与体况评分工具
  • Webhook 事件推送与签名校验

计费与限额

有免费额度

价格与限额可能变动,以官方页面为准 · 核验于

价格页thecatapi.com(在新窗口打开)

同类对比

与同一分类下的其它 API 对比认证、计费形态与价格摘要,本条已高亮。

同类 API 的对比表:认证、计费形态、价格摘要与核验日期
名称认证计费价格摘要核验于
The Cat API 本条TheCatAPIAPI Key有免费额度未提供
Replicate Predictions APIReplicateAPI Key按量付费按硬件与实际运行秒数计费,H100 0.001525 美元/秒
Open Library APIOpen Library未提供免费免费(开放数据)
DummyJSONDummyJSON未提供免费完全免费

接入点

接入点列表:方法、路径与说明
方法路径说明
GET/factsGet a list of factsRetrieve facts with optional filtering by breed or species, and pagination support.
GET/facts/randomGet a random factRetrieve a completely random fact from all available facts.
GET/facts/breed/{breedId}Get facts by breedRetrieve all facts for a specific breed with pagination support.
GET/facts/breed/{breedId}/randomGet a random fact for a specific breedRetrieve a random fact for the specified breed.
GET/facts/species/{speciesId}/randomGet a random fact for a specific speciesRetrieve a random fact for the specified species.
显示其余 17 个
接入点列表:方法、路径与说明
方法路径说明
GET/facts/{id}Get a fact by IDRetrieve a specific fact by its unique identifier.
GET/votesList votes for the authenticated user
POST/votesCreate a vote
GET/votes/{vote_id}Get a vote by ID
POST/webhooksCreate a new webhook endpoint
GET/webhooksList all webhook endpoints
GET/webhooks/topicsList available webhook topics
GET/webhooks/{id}Get a specific webhook endpoint
DELETE/webhooks/{id}Delete a webhook endpoint
POST/webhooks/{id}/rotate-secretIssue a new signing secret for this endpoint. The old one st
GET/accounts/featuresGet enabled feature flags for the current account
GET/accounts/quotaGet current upload quota usage and remaining limit
GET/breeds/bans/countriesList countries with breed legislation
GET/breeds/bans/countryGet breed bans and legislation by countryReturns all breed bans, restrictions, and characteristic-based legislation for a country.
GET/breeds/bans/breed/{breedId}Get all bans for a specific breed globallyReturns every country and jurisdiction where this breed is banned, restricted, or requires
POST/petsCreate a pet with optional images
GET/petsList pets for the authenticated account

接入步骤

  1. 访问官网注册获取 API Key

  2. 阅读文档了解公开接口与鉴权接口区别

  3. 调用 images/search 获取猫图片

  4. 对接投票或收藏接口完成交互功能

注册thecatapi.com(在新窗口打开)

本页信息由万维易源基于公开资料整理,不代表官方立场;价格、限额与可用性以官方页面为准。 收录于 更新于 核验于 。

数据说明