API DOCS

LOCALIZATION - COUNTRY BY IP

Choose the country of your customer based on his IP address:

GET https://gender-api.com/get?name=john&ip=54.201.16.177&key=<your private server key> 
GET https://gender-api.com/get?name=tanja&ip=178.27.177.23&key=<your private server key> 
GET https://gender-api.com/get?name=thomas&ip=auto&key=<your private server key>

These requests will be returned as:

{"name":"John","country":"US","gender":"male","samples":4,"accuracy":100,"duration":"38ms"} //Country: US
{"name":"Tanja","country":"DE","gender":"female","samples":10,"accuracy":100,"duration":"36ms"} //Country: Germany.
{"name":"Thomas","country":"DE","gender":"male","samples":13,"accuracy":100,"duration":"39ms"} //Country: Based on the browser IP. Can only be used by the Javascript API.

Gender-API.com includes GeoLite2 data created by MaxMind, available from http://www.maxmind.com.

We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.
Got it