- Takes: Name
- Passive: the target is not contacted
Returns the estimated age and the number of data points behind it. age is null when no prediction can be made. Repeat name[] (up to 100 names) for a batch; the response is then an array in the same order.
Query parameters
nameA first name or full name. Full names give more accurate predictions.
country_idTwo-letter ISO 3166-1 alpha-2 country code. Without it a global model is used.
Response fields · 4ShowHide
name
The name from the request, as sent
age
Estimated age in years, or null when no prediction can be made
count
Number of data points the prediction is based on
country_id
Included only when country_id was sent
curl 'https://api.agify.io/?name=jane&apikey=YOUR_API_KEY'{
"name": "jane",
"age": 41,
"count": 12345,
"country_id": "US"
}