Complete reference for the GenderMyName API
Include your API key in the X-API-Key header
curl -X GET "https://gendermyname.com/api/v1/gender/maria" \
-H "X-API-Key: gm_your_api_key_here"Receive gender classification with confidence score
{
"success": true,
"data": {
"name": "Maria",
"gender": "F",
"confidence": 0.9952,
"male_count": 1234,
"female_count": 98765
},
"meta": {
"requests_used": 1,
"requests_remaining": 99,
"requests_limit": 100,
"tier": "free"
}
}Include your API key in the X-API-Key header with every request:
X-API-Key: gm_your_api_key_hereKeep your API key secure!
Never share your API key publicly or commit it to version control. Rotate your keys regularly.
/api/v1/gender/{name}Classify the gender of a given name with confidence score
curl -X GET "https://gendermyname.com/api/v1/gender/maria" \
-H "X-API-Key: gm_your_api_key_here"{
"success": true,
"data": {
"name": "Maria",
"gender": "F",
"confidence": 0.9952,
"male_count": 1234,
"female_count": 98765
},
"meta": {
"requests_used": 15,
"requests_remaining": 235,
"requests_limit": 250,
"tier": "standard",
"reset_at": "2025-02-01T00:00:00.000Z"
}
}genderM (male) or F (female)confidenceConfidence score between 0 and 1male_countTotal occurrences as male across all countriesfemale_countTotal occurrences as female across all countries100 requests (lifetime)
25,000 requests/month
250,000 requests/month
2.5M requests/month
25M requests/month
Rate limits are per account
Usage is tracked per USER/ACCOUNT across all API keys. Multiple API keys share the same rate limit.
Rate limit information is included in response headers:
X-RateLimit-Limit: 250000
X-RateLimit-Remaining: 249987
X-RateLimit-Reset: 2025-02-01T00:00:00.000ZInvalid or missing API key
Rate limit exceeded
Name not found in database
Server error - please contact support
const apiKey = 'gm_your_api_key_here';
async function classifyGender(name) {
const response = await fetch(
`https://gendermyname.com/api/v1/gender/${name}`,
{
headers: {
'X-API-Key': apiKey
}
}
);
if (!response.ok) {
throw new Error(`HTTP error! status: ${response.status}`);
}
const data = await response.json();
return data;
}
// Usage
classifyGender('maria')
.then(data => console.log(data))
.catch(error => console.error('Error:', error));Need help? Contact us at support@gendermyname.com
Check API status at status.gendermyname.com