Detect Gender by Name API

Detect the likelihood that a name is given to a male or female (aka to "genderize" a name). While there are more than two genders, this API is limited to the binary classification as the name is given to the baby when it is born and only the sex is known.

GET
https://api.apileague.com/detect-gender
Example Request and Response
GET
https://api.apileague.com/{{ examples.getDetectGender }}
{
    "name": "Alex",
    "probability_male": 0.9679,
    "probability_female": 0.0321,
    "popularity": 0.00152
}
cURL
Java
Javascript
Python
Go
C#
 {{ codeCopyText }}
 {{ codeCopyText }}
 {{ codeCopyText }}
 {{ codeCopyText }}
 {{ codeCopyText }}
 {{ codeCopyText }}

Frequently Asked Questions

How accurate is the gender detection?

The API uses a large dataset of names and their associated genders to provide a probability score. While highly accurate for common names, it provides a confidence level to help you gauge certainty.

Does it work for names from all cultures?

The API covers a vast array of names from different cultures and languages, but accuracy may vary for very rare or culturally ambiguous names.

What if a name is unisex?

For unisex names (e.g., "Alex" or "Jordan"), the API returns probabilities for both male and female, allowing you to see which is statistically more likely or if it's evenly split.

How is the Detect Gender by Name API different from the Extract Entities API?

The Detect Gender by Name API specifically determines the likely gender of a given name, while the Extract Entities API identifies names (persons) within a larger text but does not determine their gender.

Questions? Need Help? Ask Away