GENDER API JAVASCRIPT

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:

$ npm i gender-api.com-client --save
try{var GenderApi =require('gender-api.com-client');var genderApiClient =newGenderApi.Client('your api key'); genderApiClient.getByFirstName('theresa',function(response){ console.log(response.gender);//female console.log(response.accuracy);//98}); genderApiClient.getByFirstNameAndCountry('john','US',function(response){ console.log(response.gender);//male console.log(response.accuracy);//99});}catch(e){ console.log('Error:', e);}

See full client documentation here:

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

Chat
close