Dog Facts API
Random dog facts served as JSON from a free, no-key API.
What it does
A free API of short, factual statements about dogs — breeds, behaviour, history, biology — one or several random facts per call. Handy for ‘did you know’ features in pet apps.
Base URL
Authentication
None. /facts?limit=1 returns facts in JSON:API format. A commonly-used alternative is https://dog-api.kinduff.com/api/facts?number=1, which returns a flatter {"facts": [...], "success": true}.
Code examples
curl -s "https://dogapi.dog/api/v2/facts?limit=2"
import requests
r = requests.get("https://dog-api.kinduff.com/api/facts",
params={"number": 3}, timeout=10).json()
for fact in r["facts"]:
print("-", fact)Rate limits & quotas
No key and no documented rate limit on either host. Both are community projects — cache a batch rather than calling per render. dogapi.dog also serves breed and group data at /breeds and /groups.
Key response fields
| (dogapi.dog) data[].attributes.body | The fact text (JSON:API envelope) |
| (dogapi.dog) data[].id / type | Resource id and "fact" |
| (kinduff) facts[] | Array of fact strings |
| (kinduff) success | Boolean status |
Common errors
| (shape mismatch) | Pick one host and code to its shape — data[].attributes.body vs facts[]. |
| 5xx / timeout | Community hosting — retry once, then serve a bundled fact. |
| (repeats) | Small fact pool — expected over many calls. |
When to use it (and alternatives)
‘Dog fact of the day’ cards, pet-app filler, onboarding delight. For dog photos use dog.ceo; for breed data, The Dog API; for cat facts, the same idea exists at catfact.ninja.
FAQ
Which host should I use?
dogapi.dog (v2) is actively maintained and also has breed/group endpoints, but uses the verbose JSON:API format. dog-api.kinduff.com is simpler if you only want fact strings.
How do I get several facts at once?
dogapi.dog/api/v2/facts?limit=5 or dog-api.kinduff.com/api/facts?number=5.
Are the facts verified?
They are crowd-contributed and generally accurate but not formally sourced. Fine for entertainment; don’t cite them as authoritative.
New to APIs?
Short guides for working with this API — and any other.