Cat Facts API · Example Payload

Facts List Response

Cat FactsTriviaFunLearningFree

Facts List Response is an example object payload from Cat Facts API, with 12 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

current_pagedatafirst_page_urlfromlast_pagelast_page_urlnext_page_urlpathper_pageprev_page_urltototal

Example Payload

Raw ↑
{
  "current_page": 1,
  "data": [
    {
      "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": "A female cat will be pregnant for approximately 9 weeks - between 62 and 65 days from conception to delivery.",
      "length": 109
    }
  ],
  "first_page_url": "https://catfact.ninja/facts?page=1",
  "from": 1,
  "last_page": 166,
  "last_page_url": "https://catfact.ninja/facts?page=166",
  "next_page_url": "https://catfact.ninja/facts?page=2",
  "path": "https://catfact.ninja/facts",
  "per_page": 10,
  "prev_page_url": null,
  "to": 10,
  "total": 1656
}