How to hit the The Cat API API

The Cat API at https://api.thecatapi.com/v1 serves cat photos and breed information. A free key unlocks breed filters, favourites, and votes.

Authentication

None for basic image search. For more, get a free key at thecatapi.com and send it as the x-api-key header.

Full reference: https://developers.thecatapi.com/

Random cat image

curl "https://api.thecatapi.com/v1/images/search?limit=1"
Run in PostTaco
Example response (trimmed)
[
  {
    "id": "lJHXU7DlQ",
    "url": "https://s3.us-west-2.amazonaws.com/cdn2.thecatapi.com/images/lJHXU7DlQ.jpg",
    "width": 3264,
    "height": 2448
  }
]

List breeds

curl "https://api.thecatapi.com/v1/breeds?limit=2"
Run in PostTaco