Zum Inhalt springen
GET /v1/facts

Page through facts

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/catfact-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

curl "https://api.oanor.com/catfact-api/v1/facts" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/catfact-api/v1/facts", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/catfact-api/v1/facts");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/catfact-api/v1/facts",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "page": 1,
        "count": 10,
        "facts": [
            {
                "fact": "Unlike dogs, cats do not have a sweet tooth. Scientists believe this is due to a mutation in a key taste receptor.",
                "length": 114
            },
            {
                "fact": "When a cat chases its prey, it keeps its head level. Dogs and humans bob their heads up and down.",
                "length": 97
            },
            {
                "fact": "The technical term for a cat’s hairball is a “bezoar.”",
                "length": 54
            },
            {
                "fact": "A group of cats is called a “clowder.”",
                "length": 38
            },
            {
                "fact": "A cat can’t climb head first down a tree because every claw on a cat’s paw points the same way. To get down from a tree, a cat must back down.",
                "length": 142
            },
            {
                "fact": "Cats make about 100 different sounds. Dogs make only about 10.",
                "length": 62
            },
            {
                "fact": "Every year, nearly four million cats are eaten in Asia.",
                "length": 55
            },
            {
                "fact": "There are more than 500 million domestic cats in the world, with approximately 40 recognized breeds.",
                "length": 100
            },
            {
                "fact": "Approximately 24 cat skins can make a coat.",
                "length": 43
            },
            {
                "fact": "While it is commonly thought that the ancient Egyptians were the first to domesticate cats, the oldest known pet cat was recently found in a 9,500-year-old grave on the Mediterranean island of Cyprus. This grave predates early Egyptian art depicting cats by 4,000 years or more.",
                "length": 278
            }
        ],
        "total": 332,
        "per_page": 10
    },
    "meta": {
        "timestamp": "2026-06-08T09:48:47.415Z",
        "request_id": "16aebfef-c5fe-44c0-847d-c0268b474678"
    },
    "status": "ok",
    "message": "Facts retrieved successfully",
    "success": true
}