Dog CEO
Random dog photographs indexed by breed and sub-breed, built on the Stanford Dogs Dataset. The canonical image-fetching exercise for teaching async requests.
🟢 Online · 314 ms
99.71%
Unlimited, no key, no credit card
No key required
Is Dog CEO down right now?
No — Dog CEO was up at our last check (Sun, 06 Dec 2026 00:40 UTC): HTTP 200 in 314 ms. It answered 99.71% 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 Dog CEO require an API key?
No, Dog CEO is freely accessible without registration or an API key.
What is Dog CEO's free tier?
Unlimited, no key, no credit card
Is Dog CEO down right now?
At our last check (Sun, 06 Dec 2026 00:40 UTC) Dog CEO was up, with HTTP 200 in 314 ms. We check it every hour, and it answered 99.71% of checks over the last 30 days.
Implementation notes
When to use Dog CEO
Dog CEO returns random dog photos, filterable by breed and sub-breed, from an image set that started as the Stanford Dogs Dataset and has since grown with community-contributed photos. The API is a handful of predictable GET routes — /breeds/list/all, /breeds/image/random, /breed/{breed}/images/random and /breed/{breed}/{sub}/images/random — each returning JSON with a message payload and a status string. No key, CORS enabled, and it has anchored the async-requests chapter of countless courses. Use it to teach fetch and promise handling, to fill an image grid in a component demo, to build a guess-the-breed game, or as a well-behaved image source for testing lazy loading and layout shift. It is not a breed-information API: there are no temperament, size or origin fields, only breed names and photo URLs. If you need metadata next to the images, TheCatAPI's model is the closer fit for cats; for dogs you will be joining another dataset yourself.
Common pitfalls
- Sub-breeds are path segments, not names. The Afghan hound lives at /breed/hound/afghan/, while /breed/afghan/ returns an error saying the main breed does not exist. Of the 108 main breeds in /breeds/list/all, 42 have sub-breeds, so build pickers from that endpoint rather than from a hard-coded list of common breed names.
- Random-image responses carry no breed field. The breed is encoded only in the image path, as in images.dog.ceo/breeds/hound-afghan/..., with main breed and sub-breed joined by a hyphen. Parse the path segment after /breeds/ if you want to caption a photo.
- message changes meaning with status. On success it is an image URL or a list of them; on failure the body has status set to error and message is a human-readable sentence, alongside a numeric code. Check the body's status field before using message, or a misspelled breed ends up inside an img src.
- Images are photographs of widely varying size and aspect ratio, and the API returns no dimensions. Reserve space with a fixed aspect-ratio container and object-fit: cover, or your grid will jump as each image arrives.
- /breeds/image/random/{n} returned as many URLs as we asked for — 500 in one test — in a single response. Request only what you will render; a large n means a large payload and a burst of image downloads from a single volunteer-run host.
Quick start (bash)
# sub-breeds are path segments: hound/afghan, not afghan-hound
curl -s 'https://dog.ceo/api/breed/hound/afghan/images/random/3' | jq '.message'
curl -s 'https://dog.ceo/api/breeds/list/all' | jq '.message.hound'
# a bad breed returns status error - check it before using message as a URL
curl -s 'https://dog.ceo/api/breed/afghan/images/random' | jq '{status, message}' Embed this badge
Add a live status badge to your README, docs, or website.
Markdown
[](https://freeapi.watch/dog-ceo) HTML
<a href="https://freeapi.watch/dog-ceo"><img src="https://api.freeapi.watch/badge/dog-ceo.svg" alt="Dog CEO Status"/></a>