API Directory › 📚 Data, Text & Words › Genderize
No authHTTPSCORS

Genderize API

Predict the likely gender for a first name via a simple free API.

Auth
No auth needed
HTTPS
Yes
CORS
Yes
Open Genderize docs ↗

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

https://api.genderize.io

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
curl -s "https://api.genderize.io?name=Alex&country_id=US"
curl -s "https://api.genderize.io?name[]=Andrea&name[]=Kim"
Python
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

nameEcho of the input
gendermale, female, or null if unknown
probability0–1 confidence in that label
countNumber 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: nullNot 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.

🛠️ Handy LarzOS tools

Free tools to help you work with this API.

Word CounterJSON Formatter

Related Data, Text & Words APIs

← Back

More Data, Text & Words APIs · All 196 APIs