# Agify.io API reference

> 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…

Source: https://osinttools.io/apis/agify/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

Compiled by OSINTtools.io editors from the vendor's docs, updated Nov 29, 2026. Listing: https://osinttools.io/tools/agify/

- Base URL: https://api.agify.io
- Authentication: API key in the `apikey` query parameter. Get a key: https://agify.io/ Key from your account dashboard.
- Rate limits: Not stated in the docs (responses carry X-Rate-Limit-Limit, X-Rate-Limit-Remaining and X-Rate-Limit-Reset headers)
- Vendor docs: https://agify.io/documentation/api/reference

## Overview

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.

## Errors

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

## Age prediction

### Predict the age for a first name, optionally within one country.

`GET /`

- Takes: Name
- Footprint: 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.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `name` | query | string | yes | A first name or full name. Full names give more accurate predictions. Example: jane |
| `country_id` | query | string | no | Two-letter ISO 3166-1 alpha-2 country code. Without it a global model is used. Example: US |

Response fields:

- `name` (string): The name from the request, as sent
- `age` (integer): Estimated age in years, or null when no prediction can be made
- `count` (integer): Number of data points the prediction is based on
- `country_id` (string): Included only when country_id was sent

```bash
curl 'https://api.agify.io/?name=jane&apikey=YOUR_API_KEY'
```

Example response (200):

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

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
