Skip to content
OSINTtools.io

Agify.io API

Send a first or full name and get an estimated age with the number of records behind the estimate.

Base URL
https://api.agify.io
Sign-in
API key
Format
REST
Endpoints
1

Compiled by OSINTtools.io editors from agify.io · updated Nov 29, 2026Work on this API? Claim it to keep these docs currentReport a mistake

Introduction

Agify predicts a person's age from a first name. It returns an estimated age and the number of data points the estimate is based on, and can be limited to one country.

Use it as a weak signal when profiling an unknown name. It is a statistical guess about the name, not a fact about a person.

Calls are GET requests to https://api.agify.io and return JSON. The API key goes in the apikey query parameter, and the same key works for Agify, Genderize and Nationalize. A batch of up to 100 names can be sent by repeating name[]; each name counts toward the monthly quota.

Quick start

  1. Get a key

    Create an account with Agify.io and copy your api key. Where to get it

  2. Make your first request

    Predict the age for a first name, optionally within one country.. Replace YOUR_API_KEY and run it in a terminal, or use Try it on the endpoint.

    curl 'https://api.agify.io/?name=jane&apikey=YOUR_API_KEY'
  3. Read the response

    A 200 response looks like this.

    {
      "name": "jane",
      "age": 41,
      "count": 12345,
      "country_id": "US"
    }

Authentication

Send your API key in the apikey query parameter of every request.

Key from your account dashboard.

Get a key from Agify.io

Try it on this page keeps your key in your browser; it is never sent to OSINTtools.io.

Rate limits and pricing

Not stated in the docs (responses carry X-Rate-Limit-Limit, X-Rate-Limit-Remaining and X-Rate-Limit-Reset headers)

Errors

StatusMeaning
401Invalid API key
402Subscription is not active
422Missing or invalid 'name' parameter
429Request limit reached, or request throttled

Age prediction

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

namestringrequiredtakes your name

A first name or full name. Full names give more accurate predictions.

Example: jane
country_idstring

Two-letter ISO 3166-1 alpha-2 country code. Without it a global model is used.

Example: US
Response fields · 4Show

namestring

The name from the request, as sent

ageinteger

Estimated age in years, or null when no prediction can be made

countinteger

Number of data points the prediction is based on

country_idstring

Included only when country_id was sent

curl 'https://api.agify.io/?name=jane&apikey=YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "name": "jane",
  "age": 41,
  "count": 12345,
  "country_id": "US"
}