TheCatAPI
Cat images with breed metadata, filtering, and favourites. Works keyless for basic search; a free key unlocks higher limits and the breed-specific endpoints.
🟢 Online · 65 ms
100%
Keyless for basic search; free key raises limits to 10,000/month
No key required
Is TheCatAPI down right now?
No — TheCatAPI was up at our last check (Sun, 06 Dec 2026 00:41 UTC): HTTP 200 in 65 ms. It answered 100% of our hourly checks over the last 30 days.
We check every tracked API hourly from Cloudflare's network; this page is rebuilt every few hours. For the value right now, query the public JSON API or the MCP server.
Free alternatives (live ranking)
- Rick and Morty API — 🟢 Online · 10,000 req/day, no key, no credit card
- xkcd — 🟢 Online · Unlimited, no key, no credit card
- JokeAPI — 🟢 Online · 120 req/min, no key, no credit card
Frequently Asked Questions
Does TheCatAPI require an API key?
No, TheCatAPI is freely accessible without registration or an API key.
What is TheCatAPI's free tier?
Keyless for basic search; free key raises limits to 10,000/month
Is TheCatAPI down right now?
At our last check (Sun, 06 Dec 2026 00:41 UTC) TheCatAPI was up, with HTTP 200 in 65 ms. We check it every hour, and it answered 100% of checks over the last 30 days.
Implementation notes
When to use TheCatAPI
TheCatAPI serves cat photos with optional breed metadata — temperament, origin, life span, weight and a set of one-to-five trait scores — plus voting, favourites and image upload for apps that let users interact with the collection. Keyless calls to /v1/images/search work and are enough for a random-cat widget or a placeholder image source. Anything breed-aware needs the free key: /v1/breeds returns 403 without one, and keyless image results carry no breed data at all. The free key also raises the allowance to 10,000 requests a month. Use it for breed explorers, filterable galleries, voting and rating demos that need a real write API with per-user state, and as the cat half of any dogs-versus-cats teaching exercise. Pair it with Dog CEO only if you accept two different data models: Dog CEO has breed names with no metadata, while TheCatAPI has rich metadata but gates it behind registration.
Common pitfalls
- Without a key, limit is silently capped at 10. A request for limit=25 returned exactly 10 images with HTTP 200 and no warning, so pagination maths based on the requested limit breaks. Use the length of the response as the only reliable count.
- Keyless results ignore breed context. In our tests a keyless request with breed_ids=beng returned images whose own records list no breed, and no response carried a breeds array, while /v1/breeds answered 403 Authentication required. If breed matters to the feature, send the free key in the x-api-key header from the first commit instead of retrofitting it.
- The response is always an array, even for one image, and every element includes its own width and height. Use them to reserve layout space: one keyless batch ranged from 344 to 2,560 pixels wide, and results mix JPEG, PNG and animated GIF unless you pass mime_types=jpg,png.
- Votes and favourites are scoped by a sub_id string you choose, not by an authenticated end user. Anyone who can reach your backend with another user's sub_id can read or change that user's favourites, so derive sub_id server-side from your own session and never accept it from the client.
- TheCatAPI sends permissive CORS headers, which makes it tempting to call it from the browser with x-api-key attached — and doing so publishes your key to anyone who opens developer tools. Route keyed calls through an edge function or your own backend.
Quick start (bash)
# keyless: random images only, limit silently capped at 10, no breed data
curl -s 'https://api.thecatapi.com/v1/images/search?limit=5&mime_types=jpg,png' | jq '.[] | {url, width, height}'
# breed-aware calls need the free key, sent as a header
curl -s -H 'x-api-key: YOUR_KEY' 'https://api.thecatapi.com/v1/images/search?breed_ids=beng&limit=3' | jq '.[].breeds[0].name'
curl -s -H 'x-api-key: YOUR_KEY' 'https://api.thecatapi.com/v1/breeds?limit=3' | jq '.[] | {name, origin, temperament}' Embed this badge
Add a live status badge to your README, docs, or website.
Markdown
[](https://freeapi.watch/thecatapi) HTML
<a href="https://freeapi.watch/thecatapi"><img src="https://api.freeapi.watch/badge/thecatapi.svg" alt="TheCatAPI Status"/></a>