How to hit the Cat Facts API

Cat Facts at https://catfact.ninja returns random cat facts and a list of breeds, with Laravel-style pagination.

Authentication

None — no key, no signup. Every example runs as-is.

Full reference: https://catfact.ninja/

Random fact

max_length caps the fact's length in characters.

curl "https://catfact.ninja/fact?max_length=140"
Run in PostTaco
Example response (trimmed)
{
  "fact": "While many cats enjoy milk, it will give some cats diarrhea.",
  "length": 60
}

List breeds

Paginated; follow next_page_url.

curl "https://catfact.ninja/breeds?limit=2"
Run in PostTaco
Example response (trimmed)
{
  "current_page": 1,
  "data": [
    {
      "breed": "Abyssinian",
      "country": "Ethiopia",
      "origin": "Natural/Standard",
      "coat": "Short",
      "pattern": "Ticked"
    },
    {
      "breed": "Aegean",
      "country": "Greece",
      "origin": "Natural/Standard",
      "coat": "Semi-long",
      "pattern": "Bi- or tri-colored"
    }
  ],
  "first_page_url": "https://catfact.ninja/breeds?page=1",
  "from": 1,
  "last_page": 49,
  "last_page_url": "https://catfact.ninja/breeds?page=49",
  "links": [
    {
      "url": null,
      "label": "Previous",
      "page": null,
      "active": false
    },
    {
      "url": "https://catfact.ninja/breeds?page=1",
      "label": "1",
      "page": 1,
      "active": true
    }
  ],
  "next_page_url": "https://catfact.ninja/breeds?page=2",
  "path": "https://catfact.ninja/breeds",
  "per_page": 2,
  "prev_page_url": null,
  "to": 2,
  "total": 98
}