Official SDKs
Choose your programming language
Each client wraps the Gender API request flow in familiar language conventions. Install a package below, then follow the repository README for initialization and request examples.
These are the 1.x clients for API v1. They remain available, and the commands below keep you on 1.x. For new projects, use the official 2.x SDKs for API v2. View the v2 SDKs
Create an API key and keep it on your server. Review authentication andbasic usage before shipping.
Gender detection
Official API libraries
genderapi-js
OfficialUse GenderAPI in Node.js and modern JavaScript applications.
npm install genderapi@1genderapi-php
OfficialComposer package for PHP applications and frameworks.
composer require "genderapi/genderapi:^1.0"genderapi-python
OfficialPython client for scripts, services and data workflows.
pip install "genderapi<2"genderapi-java
OfficialJava client distributed through JitPack for Maven or Gradle projects.
implementation 'com.github.GenderAPI:genderapi-java:v1.0.3'genderapi-R
OfficialR package for analysis, research and data processing.
remotes::install_version("genderapi", "1.0.3")genderapi-ruby
OfficialRuby gem for applications, services and command-line tasks.
gem install genderapi -v "~> 1.0"Phone utilities
Validation & formatting libraries
Normalize, format and validate international phone numbers with dedicated GenderAPI packages.
phone-validator-js
OfficialValidate, format and analyze phone numbers in JavaScript applications.
npm install @genderapi/phone-validatorphone-validator-php
OfficialPhone number validation and formatting for PHP applications.
composer require genderapi/phone-validatorphone-validator-python
OfficialValidate and format international phone numbers with Python.
pip install genderapi-phone-validatorPhoneValidator-R
OfficialPhone validation and formatting utilities for R workflows.
View installation on GitHubphone-validator-ruby
OfficialAccess phone validation and formatting features from Ruby.
gem install genderapi-phone-validatorNext guide