Gender Detection API - Predict Gender from First Name
Predicts the gender associated with a first name using statistical models trained on public demographic data. Returns "male" or "female" with a probability score (0-1) and the sample count. Optionally narrow results by country for region-specific accuracy.
Code examples
curl -X POST https://api.botoi.com/v1/gender/estimate \
-H "Content-Type: application/json" \
-d '{"name":"Maria","country_id":"US"}'When to use this API
Personalized email salutations
When your CRM has a first name but no gender field, use this endpoint to predict gender and generate appropriate salutations ("Dear Mr. Smith" vs "Dear Ms. Johnson"). Only apply predictions with probability above 0.90 to avoid errors.
Survey and analytics demographic enrichment
Enrich survey responses or user analytics with predicted gender when the information was not collected directly. Use the data for aggregate reporting on gender distribution across your user base, product usage patterns, or A/B test results.
E-commerce product recommendations
Predict gender from the account holder's first name to personalize default product categories. Show clothing, accessories, or gift recommendations aligned with the predicted gender, while providing an easy option for users to update their preferences.
Frequently asked questions
What values does the gender field return?
What does the probability score mean?
Does the country_id affect results?
How should I handle low-probability predictions?
Can I predict gender for nicknames or shortened names?
Get your API key
Free tier includes 5 requests per minute with no credit card required. Upgrade for higher limits.