Genderize API
Predict the likely gender for a first name via a simple free API.
What it does
Genderize.io predicts the likely gender associated with a first name, based on a large dataset of name–gender pairs. It returns the predicted gender, a probability, and how many data points backed the guess. Optionally scope by country for better accuracy.
Base URL
Authentication
None for the free tier. ?name=alex, batch with ?name[]=alex&name[]=maria (up to 10), optional &country_id=US. A paid API key raises the daily limit.
Code examples
curl -s "https://api.genderize.io?name=Alex&country_id=US" curl -s "https://api.genderize.io?name[]=Andrea&name[]=Kim"
import requests
r = requests.get("https://api.genderize.io", params={"name": "Jordan"}, timeout=10)
d = r.json()
print(d["name"], d["gender"], round(d["probability"], 2), "n=", d["count"])Rate limits & quotas
Free tier: 100 names/day per IP (a batch of 10 counts as 10). Headers X-Rate-Limit-Limit, X-Rate-Limit-Remaining and X-Rate-Reset report your budget; over it returns HTTP 429 with {"error":"Request limit reached"}.
Key response fields
| name | Echo of the input |
| gender | male, female, or null if unknown |
| probability | 0–1 confidence in that label |
| count | Number of data points behind the estimate — low count = low trust |
Common errors
| 422 "Missing 'name' parameter" | No name supplied. |
| 429 "Request limit reached" | Daily 100-name free cap hit. |
| gender: null | Not enough data for that name — treat as unknown, do not force a guess. |
When to use it (and alternatives)
Occasionally useful for analytics, salutation defaults or dataset enrichment — but treat output as a probabilistic hint, never as fact, and let people self-identify. Same family as Agify (age) and Nationalize (nationality).
FAQ
How accurate is it?
For common Western names with a high count, quite accurate. For unisex names, rare names, or names from under-represented regions, accuracy drops sharply — use probability and count as guardrails and default to no assumption.
Does country_id help?
Yes — the same name can skew differently by country (e.g. ‘Andrea’ is mostly male in Italy, female in the US). Pass country_id when you know it.
Is this an appropriate use of names?
Be careful. Inferring gender from names can misgender people. Prefer asking users directly; if you must infer, make it easy to correct and never expose the guess as a stated fact.
New to APIs?
Short guides for working with this API — and any other.