- 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
nameA last name or full name. Full names give the most accurate predictions.
Response fields · 4ShowHide
name
The name from the request, echoed as sent
count
Number of data points behind the prediction
country_id
ISO 3166-1 alpha-2 country code
probability
Confidence from 0 to 1
curl 'https://api.nationalize.io/?name=Jane%20Doe&apikey=YOUR_API_KEY'{
"count": 1200,
"name": "Jane Doe",
"country": [
{
"country_id": "US",
"probability": 0.42
},
{
"country_id": "GB",
"probability": 0.18
}
]
}