Animals API
The Animals API provides interesting scientific facts on thousands of different animal species.
From 7,149 users
Applications using this API
API Status
API Response Times
Average | P50 | P75 | P90 | P95 |
|---|---|---|---|---|
| 443ms | 466ms | 535ms | 730ms | 1196ms |
Didn't find what you were looking for? Suggest an improvement
/v1/animals GET
https://api.api-ninjas.com/v1/animals
Returns up to 10 results matching the input name parameter.
Parameters
namerequiredCommon name of animal to search. This parameter supports partial matches (e.g.
foxwill matchgray foxandred fox).
Headers
X-Api-KeyrequiredAPI Key associated with your account.
Response
A JSON array of objects, each containing the following fields, or an error if the request is unsuccessful.
nameCommon name of the animal.
taxonomyObject containing taxonomic classification:
kingdom,phylum,class,order,family,genus, andscientific_name.locationsArray of geographic locations where the animal is found.
characteristicsObject containing detailed characteristics including
prey,name_of_young,group_behavior,estimated_population_size,biggest_threat,most_distinctive_feature,gestation_period,habitat,diet,average_litter_size,lifestyle,common_name,number_of_species,location,slogan,group,color,skin_type,top_speed,lifespan,weight,height,age_of_sexual_maturity, andage_of_weaning.
Sample Request Live Demo!
Try our APIs in the API playground
Sign up for a free API key to get started — no credit card required.
https://api.api-ninjas.com/v1/animals?name=cheetahHeaders
X-Api-KeyLog in or sign up to get your API KeySample Response
Code Examples
1
2
curl -X GET "https://api.api-ninjas.com/v1/animals?name=cheetah" \
-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.
Frequently Asked Questions
Can I use the Animals API for commercial purposes?
Yes, but you must have a premium subscription. Commercial use of the Animals API is not permitted on the free tier. See our pricing page to choose a plan that fits your needs.How do I get an API key and start using the Animals API?
Sign up for a free account to instantly get your API key, then pass it in theX-Api-Keyheader on every request. The documentation above includes ready-to-run examples in cURL, Python, JavaScript, Node.js, and more.What happens if I exceed my quota for the month?
Your API requests will simply be denied once you hit your monthly quota — you will never be charged more than the plan you signed up for. To increase your quota, you can upgrade your plan any time on our pricing page.What happens if a request to the Animals API fails?
The API responds with a standard HTTP status code and a JSON error message describing the problem. See our error codes reference for the full list of codes and how to resolve each one, or contact support if you need help.How do I look up a specific animal with the Animals API?
Send a GET request to the/v1/animalsendpoint with the requirednameparameter set to the animal's common name (for examplecheetah). Thenameparameter supports partial matches, sofoxreturns species like gray fox and red fox, with up to 10 results per call. Create a free account to get an API key and start querying.What data does the Animals API response include?
Each result object includes the animal'sname, ataxonomyobject (kingdom,phylum,class,order,family,genus, andscientific_name), alocationsarray, and a detailedcharacteristicsobject covering fields such asdiet,habitat,lifespan,top_speed,weight, andbiggest_threat. See the full API documentation for the complete list of characteristic fields.What are some use cases for the Animals API?
How many results does a single Animals API request return?