Estimate the nationality of a first name
Nationalize.io estimates the nationality of a given first name using an API.
import requests
name = "peter"
# For higher usage tiers, an API key might be required, often passed as a query parameter or header.
# response = requests.get(f"https://api.nationalize.io/?name={name}&apikey=YOUR_API_KEY")
response = requests.get(f"https://api.nationalize.io/?name={name}")
print(response.json())Last 50 checks (10 min intervals)