Overview
Pass `name`, a common or scientific name. The search ignores case, accents and punctuation and tries the singular when a plural matches nothing. Exact common or scientific names rank first, then other English names, then names containing the searched word, then partial matches; within each, better-known species come first. Free plans get up to 3 matches, paid plans up to 25 with `limit`. No match returns 404.
Names, Wikidata ids and IUCN status come from Wikidata (CC0). Mammal traits come from PanTHERIA 1.0 (Jones et al. 2009, Ecology 90:2648, CC0), species-level averages compiled from the literature. Lifespan, maturity, gestation or incubation, litter or clutch size, birth weight and weaning come from AnAge (Tacutu et al., Human Ageing Genomic Resources, CC BY 3.0) where it has the species, with PanTHERIA filling gaps.
Mammals report `gestationDays`, `litterSize` and `littersPerYear`; egg layers report `incubationDays`, `clutchSize` and `clutchesPerYear`, and the other pair is null. `lifespan.maxYears` is the longest reliably recorded life, often in captivity (`recordedIn`), not an average. Any trait not recorded for a species is null.
Endpoint
One host, one path per API. The block below shows this call in four languages; every one of them is the same HTTP request. Making requests covers the timeouts, retries and parameter rules that apply to all of them. The SDKs wrap the same call in a typed client.
curl "https://api.apiverve.com/v1/animallookup?name=lion&limit=10" \
-H "x-api-key: your_api_key_here"const res = await fetch('https://api.apiverve.com/v1/animallookup?name=lion&limit=10', {
headers: { 'x-api-key': 'your_api_key_here' },
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const { data } = await res.json();
console.log(data);import requests
res = requests.get(
"https://api.apiverve.com/v1/animallookup?name=lion&limit=10",
headers={"x-api-key": "your_api_key_here"},
timeout=15,
)
res.raise_for_status()
print(res.json()["data"])package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, _ := http.NewRequest("GET", "https://api.apiverve.com/v1/animallookup?name=lion&limit=10", nil)
req.Header.Set("x-api-key", "your_api_key_here")
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
out, _ := io.ReadAll(res.Body)
fmt.Println(string(out))
}Replace your_api_key_here with the key from your dashboard. When the inputs arrive as a list rather than one at a time, batch requests run up to 200 of them through this same API in a single call.
Authentication
Send your key in the x-api-key header. That is the only auth step — there is no token exchange and no per-endpoint scope to configure. Authentication covers creating, rotating and revoking keys.
A 401 means the key is missing, invalid or expired. A 403 means the key is valid but not permitted here — blocked by a key restriction or an IP allow-list. Running out of credits is a 429.
Parameters
Sent in the query string. Premium parameters are accepted on every plan but only take effect on plans that include them.
| Parameter | Type | Description |
|---|---|---|
nameRequired | string | Common or scientific name, e.g. lion, grey wolf or Panthera leo length 0–100 |
limitOptionalPremium | integer | Maximum animals to return (1-25). Free plans get up to 3 range 1–25 |
Response
Every API returns the same three top-level keys, so one response handler covers your whole integration: status, error and data. Only data changes shape. Response format covers the envelope, the other output formats and how premium fields are withheld.
{
"status": "ok",
"error": null,
"data": {
"query": "lion",
"totalMatches": 28,
"count": 3,
"animals": [
{
"commonName": "Lion",
"scientificName": "Panthera leo",
"otherNames": [
"African Lion",
"Asiatic lion"
],
"taxonomy": {
"kingdom": "Animalia",
"phylum": "Chordata",
"class": "Mammalia",
"order": "Carnivora",
"family": "Felidae",
"genus": "Panthera"
},
"conservationStatus": "Vulnerable",
"conservationCode": "VU",
"traits": {
"adultBodyMassKg": 159,
"adultBodyMassG": 158624,
"headBodyLengthCm": 184,
"birthWeightG": 1300,
"gestationDays": 109,
"incubationDays": null,
"litterSize": 3,
"littersPerYear": 1,
"clutchSize": null,
"clutchesPerYear": null,
"weaningAgeDays": 198,
"sexualMaturityDays": 1095,
"diet": "carnivore",
"activityCycle": "nocturnal",
"habitatLayer": "ground",
"homeRangeKm2": 55.2,
"populationDensityPerKm2": 0.11,
"socialGroupSize": null,
"geographicRangeKm2": 11237685
},
"lifespan": {
"maxYears": 28,
"recordedIn": "captivity",
"dataQuality": "acceptable"
},
"wikidataId": "Q140"
},
{
"commonName": "California sea lion",
"scientificName": "Zalophus californianus",
"otherNames": [],
"taxonomy": {
"kingdom": "Animalia",
"phylum": "Chordata",
"class": "Mammalia",
"order": "Carnivora",
"family": "Otariidae",
"genus": "Zalophus"
},
"conservationStatus": "Least Concern",
"conservationCode": "LC",
"traits": {
"adultBodyMassKg": 137,
"adultBodyMassG": 137195,
"headBodyLengthCm": 202,
"birthWeightG": 7000,
"gestationDays": 259,
"incubationDays": null,
"litterSize": 1.2,
"littersPerYear": 0.5,
"clutchSize": null,
"clutchesPerYear": null,
"weaningAgeDays": 315,
"sexualMaturityDays": 1095,
"diet": "omnivore",
"activityCycle": "mixed",
"habitatLayer": "ground",
"homeRangeKm2": null,
"populationDensityPerKm2": 0.5,
"socialGroupSize": null,
"geographicRangeKm2": null
},
"lifespan": {
"maxYears": 35.7,
"recordedIn": "captivity",
"dataQuality": "high"
},
"wikidataId": "Q379732"
},
{
"commonName": "Southern sea lion",
"scientificName": "Otaria flavescens",
"otherNames": [
"South American sea lion"
],
"taxonomy": {
"kingdom": "Animalia",
"phylum": "Chordata",
"class": "Mammalia",
"order": "Carnivora",
"family": "Otariidae",
"genus": "Otaria"
},
"conservationStatus": null,
"conservationCode": null,
"traits": {
"adultBodyMassKg": 194,
"adultBodyMassG": 193671,
"headBodyLengthCm": 211,
"birthWeightG": 12500,
"gestationDays": 357,
"incubationDays": null,
"litterSize": 1,
"littersPerYear": 1,
"clutchSize": null,
"clutchesPerYear": null,
"weaningAgeDays": 365,
"sexualMaturityDays": 1461,
"diet": "omnivore",
"activityCycle": null,
"habitatLayer": "ground",
"homeRangeKm2": null,
"populationDensityPerKm2": null,
"socialGroupSize": null,
"geographicRangeKm2": null
},
"lifespan": {
"maxYears": 29,
"recordedIn": "captivity",
"dataQuality": "acceptable"
},
"wikidataId": "Q333649"
}
]
}
}
Response fields
Paths are relative to data. Premium fields are absent rather than zeroed on plans that do not include them, so check for presence instead of comparing to 0.
| Field | Type | Example | Description |
|---|---|---|---|
query | string | "lion" | The name searched for |
totalMatches | number | 28 | Number of species that matched the name |
count | number | 3 | Number of animals returned |
animals | array[3] | Matching species, exact names first, best-known first | |
commonName | string | "Lion" | English common name |
scientificName | string | "Panthera leo" | Scientific (binomial) name |
otherNames | array | [African Lion, ...] | Other English names |
taxonomy | object | {...} | Taxonomic classification |
kingdom | string | "Animalia" | Kingdom |
phylum | string | "Chordata" | Phylum |
class | string | "Mammalia" | Class, e.g. Mammalia, Aves, Reptilia |
order | string | "Carnivora" | Order |
family | string | "Felidae" | Family |
genus | string | "Panthera" | Genus |
conservationStatus | string | "Vulnerable" | IUCN Red List category, e.g. Vulnerable. Null when not on record |
conservationCode | string | "VU" | IUCN category code: LC, NT, VU, EN, CR, EW, EX or DD |
traits | object | {...} | Life-history and ecology traits; each is null where not recorded |
adultBodyMassKg | number | 159 | Average adult body mass in kilograms |
adultBodyMassGPremium | number | 158624 | Average adult body mass in grams |
headBodyLengthCmPremium | number | 184 | Adult head-body length in centimetres (mammals) |
birthWeightGPremium | number | 1300 | Weight at birth or hatching in grams |
gestationDaysPremium | number | 109 | Gestation length in days (mammals) |
incubationDaysPremium | object | null | Incubation length in days (egg layers) |
litterSizePremium | number | 3 | Average young per litter (mammals) |
littersPerYearPremium | number | 1 | Average litters per year (mammals) |
clutchSizePremium | object | null | Average eggs or young per clutch (non-mammals) |
clutchesPerYearPremium | object | null | Average clutches per year (non-mammals) |
weaningAgeDaysPremium | number | 198 | Age at weaning in days |
sexualMaturityDaysPremium | number | 1095 | Age at sexual maturity in days |
diet | string | "carnivore" | herbivore, omnivore or carnivore (mammals) |
activityCyclePremium | string | "nocturnal" | nocturnal, diurnal or mixed (mammals) |
habitatLayerPremium | string | "ground" | ground (ground-dwelling or burrowing) or above ground (tree-dwelling or flying) |
homeRangeKm2Premium | number | 55.2 | Home range in square kilometres |
populationDensityPerKm2Premium | number | 0.11 | Individuals per square kilometre |
socialGroupSizePremium | object | null | Average social group size |
geographicRangeKm2Premium | number | 11237685 | Area of the geographic range in square kilometres |
lifespan | object | {...} | Maximum recorded lifespan |
maxYearsPremium | number | 28 | Maximum recorded lifespan in years |
recordedInPremium | string | "captivity" | wild or captivity: where the record was set. Null when unknown |
dataQualityPremium | string | "acceptable" | Reliability of the lifespan record: low, questionable, acceptable or high |
wikidataId | string | "Q140" | Wikidata id of the species, e.g. Q140 |
Errors
Read the HTTP status first, then error for the specific reason. The body names the parameter that has to change. Error handling covers the full status list and which of them are worth retrying.
| Status | Meaning | What to do |
|---|---|---|
400 | Input was rejected | Read error; it names the parameter. |
401 | Key missing or invalid | Check the header name and the key value. |
403 | Key valid, but not permitted | A key restriction or IP allow-list; see key scoping. |
429 | Rate limited, or out of credits | Read error to tell them apart; see rate limits. |
Use cases
- Education and Kids Apps
- Turn a typed animal name into a fact card with its scientific name, class, family, diet, weight and how long it lives.
- Zoo and Wildlife Guides
- Show conservation status, size, breeding facts and lifespan beside each exhibit or field-guide entry.
- Quiz and Trivia Games
- Generate questions such as which lives longer or which weighs more from lifespan and body mass across thousands of species.
- Research and Data Dashboards
- Join species lists to life-history traits such as gestation, litter size, home range and population density for comparative analysis.
Other ways to use Animal Lookup
Set up Animal Lookup on APIVerve, or reach the same source a different way. Your APIVerve account and credits work on all of them — one key, one balance.
Related
More in Science: