Three sibling APIs estimate a person's age, gender, or nationality from a first name, based on public data. Each returns a count of how many data points the guess rests on.
None for light use — the free tier has a daily limit. A paid apikey parameter raises it.
Full reference: https://agify.io/
curl "https://api.agify.io?name=michael"
{
"count": 311558,
"name": "michael",
"age": 57
}
probability is how confident the guess is.
curl "https://api.genderize.io?name=peter"
{
"count": 1352696,
"name": "peter",
"gender": "male",
"probability": 1
}
Up to five countries, most likely first.
curl "https://api.nationalize.io?name=nathaniel"
{
"count": 57823,
"name": "nathaniel",
"country": [
{
"country_id": "US",
"probability": 0.357622
},
{
"country_id": "NG",
"probability": 0.07579
}
]
}
country_id scopes the guess to one country's data.
curl "https://api.agify.io?name=michael&country_id=US"
{
"count": 110111,
"name": "michael",
"age": 52,
"country_id": "US"
}