GENDER API PYTHON

First install our library with composer:

See full client documentation here:

https://github.com/markus-perl/gender-api-client

First install our library with npm:

See full client documentation here:

https://github.com/markus-perl/gender-api-client-npm

First install our library with npm:

See full client documentation here:

https://github.com/markus-perl/gender-api-client-npm

Python 3.*import json from urllib.request import urlopen myKey ="insert your server key here" url ="https://gender-api.com/get?key="+ myKey +"&name=kevin" response = urlopen(url) decoded = response.read().decode('utf-8') data = json.loads(decoded)print("Gender: "+ data["gender"]);#Gender: male Python 2.*import json import urllib2 myKey ="insert your servery key here" data = json.load(urllib2.urlopen("https://gender-api.com/get?key="+ myKey +"&name=markus"))print"Gender: "+ data["gender"];#Gender: male
Chat
close