Predict the gender of a first name. Supports single name lookup, batch requests (up to 10 names), and country-specific localization using ISO 3166-1 alpha-2 codes.
Parameters (4)
apikey(string, query, optional)
API key for higher rate limits. Free tier allows 100 requests/day without key.
country_id(string, query, optional)
ISO 3166-1 alpha-2 country code to localize the prediction (e.g., 'US', 'GB', 'DE')
Constraints: {'pattern': '^[A-Z]{2}$'}
name(string, query, optional)
First name to predict gender for. Use 'name[]' for batch requests (up to 10 names).
name[](array, query, optional)
For batch requests, specify multiple names using name[] parameter. Maximum 10 names per request.
import zingu_apis
api = zingu_apis.api("genderize.io")
result = api.fetch("", name="peter", name[]="['peter', 'sarah', 'alex']", country_id="US")
for item in result:
print(item)
const resp = await fetch("https://api.genderize.io/?name=peter&name%5B%5D=%5B%27peter%27%2C+%27sarah%27%2C+%27alex%27%5D&country_id=US");
const data = await resp.json();
import zingu_apis
api = zingu_apis.api("genderize.io")
result = api.fetch("", name="peter", name[]="['peter', 'sarah', 'alex']", country_id="US")
for item in result:
print(item)
const resp = await fetch("https://api.genderize.io/?name=peter&name%5B%5D=%5B%27peter%27%2C+%27sarah%27%2C+%27alex%27%5D&country_id=US");
const data = await resp.json();