Skip to main content
Predicts the likely nationality of a person from their first name, returning a ranked list of countries with probability scores. Best for demographic enrichment, localization, or inferring likely origin when only a name is known. Draws on a database of 100M+ names across 200+ countries. A Demografix API, sibling to Genderize (gender) and Agify (age). 1 endpoint available through Lava’s AI Gateway. See the Nationalize API docs for full documentation.
Supports both managed (Lava’s API keys) and unmanaged (bring your own credentials) mode.

Endpoints

Predict the likely nationality of a first name, returned as a ranked list of country codes with probabilities. Accepts a single name or a batch of up to 10 via repeated name query parameters. Billed per name.

GET https://api.nationalize.io?name=nathaniel — $0.0008 / request

Next Steps

All Providers

Browse all supported AI providers

Forward Proxy

Learn how to construct proxy URLs and authenticate requests