the cat api logo

The Cat API
Cats as a service.

Because everyday is a Caturday.

An API all about cat.

60k+ Images. Breeds. Facts.

Cat image for voting - ID: ehs

Get cats with a few lines of code

Get instant access to tens of thousands of cats so you can delight customers with ever changing content, facts and breed info.


const headers = new Headers({
  "Content-Type": "application/json",
  "x-api-key": "DEMO-API-KEY"
});

var requestOptions = {
  method: 'GET',
  headers: headers,
  redirect: 'follow'
};

fetch("https://staging-api.thecatapi.com/v1/images/search?size=med&mime_types=jpg&format=json&has_breeds=true&order=RANDOM&page=0&limit=1", requestOptions)
  .then(response => response.text())
  .then(result => console.log(result))
  .catch(error => console.log('error', error));        

Frequently Asked Questions