Cats API
The Cats API provides detailed, qualitative information on every recognized cat breed.
Available endpoints:
- /v1/cats - Get a list of cat breeds matching specified parameters
- /v1/allcats - Get a list of all cat breed names
From 2,753 users
Applications using this API
API Status
API Response Times
Average | P50 | P75 | P90 | P95 |
|---|---|---|---|---|
| 266ms | 286ms | 362ms | 742ms | 1131ms |
Didn't find what you were looking for? Suggest an improvement
/v1/cats GET
https://api.api-ninjas.com/v1/cats
Get a list of cat breeds matching specified parameters. Returns at most 20 results. To access more than 20 results, use the offset parameter to offset results in multiple API calls.
Parameters
At least one of the following parameters (other than offset) must be set:
nameoptionalThe name of cat breed.
min_weightoptionalMinimum weight in pounds.
max_weightoptionalMaximum weight in pounds.
min_life_expectancyoptionalMinimum life expectancy in years.
max_life_expectancyoptionalMaximum life expectancy in years.
sheddingoptionalHow much hair the cat sheds. Possible values:
1,2,3,4,5, where1indicates no shedding and5indicates maximum shedding.family_friendlyoptionalHow affectionate the cat is to family. Possible values:
1,2,3,4,5, where1indicates minimal affection and5indicates maximum affection.playfulnessoptionalHow playful the cat is. Possible values:
1,2,3,4,5, where1indicates serious and stern and5indicates maximum playfulness.groomingoptionalHow much work is required to properly groom the cat. Possible values:
1,2,3,4,5, where1indicates maximum grooming effort and5indicates minimum grooming effort.other_pets_friendlyoptionalHow well the cat gets along with other pets in the household (for example, dogs). Possible values:
1,2,3,4,5, where1indicates the cat isn't very friendly to other pets and5indicates the cat gets along very well with other pets.children_friendlyoptionalHow well the cat gets along with children. Possible values:
1,2,3,4,5, where1indicates the cat does not get along well with kids and5indicates the cat is very kid-friendly.offsetoptionalNumber of results to offset for pagination.
Headers
X-Api-KeyrequiredAPI Key associated with your account.
Response
Returns an array of cat breed objects, each containing:
nameThe name of the cat breed.
image_linkURL to an image of the breed.
lengthLength range of the cat breed.
originGeographic origin of the breed.
family_friendlyHow affectionate the cat is to family. Rating from 1-5, where 5 indicates maximum affection.
children_friendlyHow well the cat gets along with children. Rating from 1-5, where 5 indicates the cat is very kid-friendly.
other_pets_friendlyHow well the cat gets along with other pets in the household (for example, dogs). Rating from 1-5, where 5 indicates the cat gets along very well with other pets.
sheddingHow much hair the cat sheds. Rating from 1-5, where 1 indicates no shedding and 5 indicates maximum shedding.
groomingHow much work is required to properly groom the cat. Rating from 1-5, where 1 indicates maximum grooming effort and 5 indicates minimum grooming effort.
general_healthGeneral health rating of the cat breed. Rating from 1-5.
playfulnessHow playful the cat is. Rating from 1-5, where 1 indicates serious and stern and 5 indicates maximum playfulness.
intelligenceIntelligence rating of the cat breed. Rating from 1-5.
min_weightMinimum weight in pounds.
max_weightMaximum weight in pounds.
min_life_expectancyMinimum life expectancy in years.
max_life_expectancyMaximum life expectancy in years.
Sample Request Live Demo!
Try this API endpoint with all available parameters in our API playground
https://api.api-ninjas.com/v1/cats?name=abyssinianHeaders
X-Api-KeyLog in or sign up to get your API KeySample Response
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
[
{
"length": "12 to 16 inches",
"origin": "Southeast Asia",
"image_link": "https://api-ninjas.com/images/cats/abyssinian.jpg",
"family_friendly": 3,
"shedding": 3,
"general_health": 2,
"playfulness": 5,
"children_friendly": 5,
"grooming": 3,
"intelligence": 5,
"other_pets_friendly": 5,
"min_weight": 6,
"max_weight": 10,
"min_life_expectancy": 9,
"max_life_expectancy": 15,
"name": "Abyssinian"
}
]Code Examples
1
2
curl -X GET "https://api.api-ninjas.com/v1/cats?name=persian" \
-H "X-Api-Key: YOUR_API_KEY"If your programming language is not listed in the Code Example above, you can still make API calls by using a HTTP request library written in your programming language and following the above documentation.
/v1/allcats GET
https://api.api-ninjas.com/v1/allcats
Returns a list of all cat breed names.
Parameters
None
Headers
X-Api-KeyrequiredAPI Key associated with your account.
Response
Returns an array of strings, where each string is a cat breed name.
Sample Request
https://api.api-ninjas.com/v1/allcatsSample Response
1
2
3
4
5
6
[
"Abyssinian",
"Aegean",
"American Bobtail",
"..."
]