Cat Facts (catfact.ninja) · Example Payload

Cat Facts Catfact Cat Fact List Example

AnimalsCatsTriviaPublic APIsCommunityNo AuthenticationREST

Cat Facts Catfact Cat Fact List Example is an example object payload from Cat Facts (catfact.ninja), with 13 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_urllinksnext_page_urlpathper_pageprev_page_urltototal

Example Payload

Raw ↑
{
  "current_page": 1,
  "data": [
    { "fact": "Unlike dogs, cats do not have a sweet tooth.", "length": 45 },
    { "fact": "When a cat chases its prey, it keeps its head level.", "length": 53 },
    { "fact": "The technical term for a cat's hairball is a bezoar.", "length": 52 }
  ],
  "first_page_url": "https://catfact.ninja/facts?page=1",
  "from": 1,
  "last_page": 111,
  "last_page_url": "https://catfact.ninja/facts?page=111",
  "links": [
    { "url": null, "label": "Previous", "active": false },
    { "url": "https://catfact.ninja/facts?page=1", "label": "1", "active": true },
    { "url": "https://catfact.ninja/facts?page=2", "label": "2", "active": false },
    { "url": "https://catfact.ninja/facts?page=2", "label": "Next", "active": false }
  ],
  "next_page_url": "https://catfact.ninja/facts?page=2",
  "path": "https://catfact.ninja/facts",
  "per_page": 3,
  "prev_page_url": null,
  "to": 3,
  "total": 332
}