Skip to content
OSINTtools.io

Nationalize.io API

Send a last name or full name and get up to five likely countries, each with a probability.

Base URL
https://api.nationalize.io
Sign-in
API key
Free tier
Free tier
Pricing
Subscription
Format
REST
Endpoints
1

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

Introduction

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.

Quick start

  1. Get a key

    Create an account with Nationalize.io and copy your api key (free tier). Where to get it

  2. Make your first request

    Predict the likely nationalities of a last name or full name. Replace YOUR_API_KEY and run it in a terminal, or use Try it on the endpoint.

    curl 'https://api.nationalize.io/?name=Jane%20Doe&apikey=YOUR_API_KEY'
  3. Read the response

    A 200 response looks like this.

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

Authentication

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

The same key works for Genderize, Agify and Nationalize.

Get a key from Nationalize.io

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

Rate limits and pricing

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.

Free tier. Pricing: subscription.

Errors

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

General

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

Query parameters

namestringrequiredtakes your name

A last name or full name. Full names give the most accurate predictions.

Example: Jane Doe
Response fields · 4Show

namestring

The name from the request, echoed as sent

countinteger

Number of data points behind the prediction

country_idstring

ISO 3166-1 alpha-2 country code

probabilitynumber

Confidence from 0 to 1

curl 'https://api.nationalize.io/?name=Jane%20Doe&apikey=YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "count": 1200,
  "name": "Jane Doe",
  "country": [
    {
      "country_id": "US",
      "probability": 0.42
    },
    {
      "country_id": "GB",
      "probability": 0.18
    }
  ]
}