Skip to content

markus-perl/gender-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gender-api

jQuery Plugin for the famous Gender API.

The gender determination api only requires a first name or an e-mail address containing a first name.

1000 requests to the gender api are free every month. If you need more requests you can init the jquery plugin with an api key.

With every query a accuracy value is given back how sure the api is to match the right gender.

Usage

<script type="text/javascript" src="https://gender-api.com/js/jquery/gender.min.js"></script>

<script type="text/javascript">
$('input#firstname').genderApi({key: genderApiClientKey}).on('gender-found', function(e, result) {
	if (result.accuracy >= 60) {
		alert('Gender found: ' + result.gender);
	}
});
</script>

Everytime a new gender is found the plugin will trigger an event called 'gender-found'.

Resources

Gender API Plugin Website

API Docs

About

jQuery Plugin for the famous https://gender-api.com API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published