We run Cat Facts Texts, the service behind the famous daily cat fact prank, which means we maintain a pool of real, hand-checked cat facts as a matter of professional duty. This API serves a random fact from that same pool, free, to anyone.
The endpoint
GET https://catfactstexts.com/api/fact
Returns a random cat fact:
{
"fact": "A cat's nose print is unique, much like a human fingerprint.",
"length": 60
}
Two fields, no wrapper, no pagination. fact is the fact; length is its character count. If your code already parses this shape from another cat facts API, it works here with a one-line URL swap.
Examples
curl
curl https://catfactstexts.com/api/fact
JavaScript
const res = await fetch("https://catfactstexts.com/api/fact");
const { fact } = await res.json();
console.log(fact);
Python
import requests
fact = requests.get("https://catfactstexts.com/api/fact").json()["fact"]
print(fact)
The fine print (it's friendly)
- Free, no key, no signup. Send the request, get the fact.
- CORS is enabled for all origins, so browser-side
fetch()works from any site, including localhost and codepens. - Rate limit: 60 requests per minute per IP. Plenty for apps and classrooms; if you need serious volume, cache facts on your side.
- The facts are real. Every one is hand-checked before it enters the pool, because sending wrong cat facts is against everything we stand for.
- Attribution is appreciated, not required. If this API saves you time, a link to catfactstexts.com in your README or footer makes our day.
Why does a texting company have an API?
Because we had the facts anyway. Our main product texts a daily cat fact to any phone number you choose, which is either a delightful gift or the internet's favorite harmless prank depending on whether the recipient knows who signed them up. The API serves the same pool those texts come from.
So if you're here building a practice project: welcome, the endpoint is yours. And if you finish early, you now also know exactly how to prank a friend with cat facts.
FAQ
Do I need an API key?
No. The endpoint is public. Just respect the per-IP rate limit.
Can I use it in commercial projects?
Yes. Free for personal, educational, and commercial use. Attribution is welcome but optional.
Can I fetch it from a browser?
Yes. CORS is enabled for all origins, so client-side JavaScript works without a proxy.
How many facts are there?
The pool is curated rather than huge: every fact is verified before it ships, and the pool grows over time. Repeated calls will eventually repeat facts.
Is there a paid tier or a bigger endpoint?
No paid tier. If you have a use case that needs more (bulk lists, higher limits), tell us and we'll consider it.
