Agify.io API

⭐ Beginner's Pick Development / No Auth Required Beginner HTTPS CORS
Free to Use Varies (check documentation)

Overview

Agify.io is a free API that predicts the likely age of a person based solely on their first name, using a database of over 350 million historical records. You can query a single name or batch up to 10 names in one request, and optionally filter predictions by country code for improved regional accuracy. It is widely used for demographics research, marketing personalization, and fun side projects.

💡

Beginner Tip

No API key or account is needed — just send a GET request with a name parameter and you will receive a prediction instantly. The free tier allows 1,000 requests per day per IP address; if you need more, register for an API key to raise that limit.

Available Data

prediction result with confidence score
input name or text
statistical data

Example Response

JSON Response
{
  "name": "michael",
  "prediction": 60,
  "count": 234567,
  "probability": 0.87
}

Field Reference

name The name that was submitted for age prediction.
age Predicted median age for people with this name, or null if data is insufficient.
count Total number of records in the database matching this name.

Implementation Example

const url = "https://agify.io/";
const response = await fetch(url);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

Common Errors & Troubleshooting

422 Unprocessable Entity The name parameter is missing, empty, or contains only numbers.
Always provide a non-empty alphabetic string for the name parameter; strip digits and special characters before sending.
Null age returned for uncommon names Names with very few records in the database return null instead of a numeric estimate.
Check if the age field is null before using it and display a fallback message like "insufficient data" to end users.
Rate limit hit (429) during batch usage Exceeding 1,000 calls per day from the same IP triggers a block.
Pass an X-RapidAPI-Key or register at agify.io for a personal API key to get a higher daily quota.

Matrix Score Breakdown

🌐 Reachability 30/30
⚡ Speed 10/20
🔒 Security 15/15
🛠 Developer XP 20/20
✓ Reliability 7/15
Response Time 529ms

Fully tested on Apr 5, 2026

Technical Specifications

Auth No Auth
HTTPS REQUIRED
CORS YES
Category Development
Difficulty Beginner
Verified: 2026-04-04

Similar APIs

View All →