# Nationalize.io API reference

> The Nationalize.io API predicts the likely nationality of a person from a last name or full name. For each name it returns up to five candidate countries (ISO 3166-1 alpha-2 codes) with a probability from 0 to 1, ordered by descending probability, and the number of data points behind the…

Source: https://osinttools.io/apis/nationalize/ (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/nationalize/

- Base URL: https://api.nationalize.io
- Authentication: API key in the `apikey` query parameter. Get a key: https://nationalize.io/pricing The same key works for Genderize, Agify and Nationalize.
- Free tier: yes
- Pricing: Subscription
- Rate limits: Counted per name against a monthly quota: 1,000 names a month on the free plan, 250,000 on the Standard plan. Over the limit, requests return 429 until the next billing cycle.
- Vendor docs: https://nationalize.io/documentation/api/reference

## Overview

The Nationalize.io API predicts the likely nationality of a person from a last name or full name. For each name it returns up to five candidate countries (ISO 3166-1 alpha-2 codes) with a probability from 0 to 1, ordered by descending probability, and the number of data points behind the prediction. The docs say full names give the most accurate predictions.

An investigator uses it to get a rough idea of where a name is common, for example to choose which country's records or languages to search next. It is a statistical estimate from a name, not a fact about any person.

There is one endpoint: a `GET` to `https://api.nationalize.io` with the `name` query parameter, returning JSON. Up to 100 names can be sent in one request as repeated `name[]` parameters; the response is then an array in the same order. Pass your API key from the account dashboard as the `apikey` query parameter (the docs' basic examples omit it). The same key works for Genderize and Agify.

Usage is counted per name, not per call: a batch of 100 names uses 100 from the monthly quota. The free plan has 1,000 names a month; requests over the limit get `429` until the next billing cycle. Every response carries `X-Rate-Limit-Limit`, `X-Rate-Limit-Remaining` and `X-Rate-Limit-Reset` headers.

## Errors

| Status | Meaning |
| --- | --- |
| 401 | Invalid API key |
| 402 | Subscription is not active (paused, expired or unpaid) |
| 422 | Missing or invalid 'name' parameter (empty, too long or malformed) |
| 429 | Request limit reached (monthly quota or per-IP limit), or the request was throttled |

## General

### Predict the likely nationalities of a last name or full name

`GET /`

- Takes: Name
- Footprint: passive (the target is not contacted)
- Cost: 1 name from the monthly quota per name sent
- Plan: Any plan

Returns up to five candidate countries for the name, ordered by descending probability, and the number of data points behind the prediction. The country array is empty when no prediction is possible. Send repeated name[] parameters (up to 100) instead of name to look up several names at once; the response is then an array in input order.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `name` | query | string | yes | A last name or full name. Full names give the most accurate predictions. Example: Jane Doe |

Response fields:

- `name` (string): The name from the request, echoed as sent
- `count` (integer): Number of data points behind the prediction
- `country[].country_id` (string): ISO 3166-1 alpha-2 country code
- `country[].probability` (number): Confidence from 0 to 1

```bash
curl 'https://api.nationalize.io/?name=Jane%20Doe&apikey=YOUR_API_KEY'
```

Example response (200):

```json
{
  "count": 1200,
  "name": "Jane Doe",
  "country": [
    {
      "country_id": "US",
      "probability": 0.42
    },
    {
      "country_id": "GB",
      "probability": 0.18
    }
  ]
}
```

---

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/
