Nationality Prediction API - Estimate Origin Country from Name
Estimates the most probable countries of origin for a given name using statistical models trained on global demographic data. Returns an array of countries ranked by probability with ISO 3166-1 alpha-2 codes. Useful for localization, demographic analysis, and internationalization.
Code examples
curl -X POST https://api.botoi.com/v1/nationality/estimate \
-H "Content-Type: application/json" \
-d '{"name":"Tanaka"}'When to use this API
Automatic locale and language selection
When a new user signs up with only their name, predict their likely country of origin and default the interface language and locale settings accordingly. A user named "Tanaka" would see Japanese as the suggested language, saving them a manual selection step.
Market research and audience analysis
Analyze the nationality distribution of your user base or email list by running names through this endpoint in batch. Identify which countries your product resonates with most, and allocate marketing budgets to the highest-opportunity regions.
KYC and identity verification pre-screening
During KYC onboarding, compare the predicted nationality against the declared country of residence or passport country. A large mismatch is not fraud on its own, but it can trigger additional verification steps in your risk model.
Frequently asked questions
Can I use first names, last names, or full names?
What does the probability score mean?
How many countries are returned?
Why does "Tanaka" show Brazil as a secondary match?
Is the name normalized before processing?
Get your API key
Free tier includes 5 requests per minute with no credit card required. Upgrade for higher limits.