Gender API

Keep your registration forms simple. Optimize your conversions and let us determine the gender of your customers.

Sign Up Free

https://gender-api.com/get?name=elizabeth

{"name":"elizabeth", "gender":"female", "samples":355, "accuracy":100, "duration":"34ms"}

Total Names

1 675 586

Supported Countries

174

Availability

99,9%

TAKE A TEST DRIVE

Go!

RESULT

%name% is %gender%.

JSON OUTPUT

IN DETAIL

name In the json response you will find the submitted name.
gender This is the gender we determined. Possible values are: male, female or unknown.
accuracy This percentage value shows, how certain we are that the determined gender is correct. You can improve the quality of the result by passing a country code to us so that we can better consider local distinctions.
samples This number shows, how many samples of this name we used for the determination.
duration Our API uses several caching techniques to provide you with the requested result as fast as possible. This number shows, how long it took the server to process the request.

WE CAN ALSO DETERMINE THE GENDER OF AN E-MAIL ADDRESS

EASY INTEGRATION

Our API can easily be integrated in every existing platform in any language. Take a look at some coding examples.

<?php


function getGender($firstname) {

$myKey = 'insert your server key here';

$data = json_decode(file_get_contents('https://gender-api.com/get?key=' . $myKey . '&name=' . urlencode($firstname)));

return $data->gender;

}


echo getGender('markus'); //Output: male

import java.io.BufferedReader;

import java.io.IOException;

import java.io.InputStreamReader;

import java.net.HttpURLConnection;

import java.net.URL;

import com.google.gson.Gson;

import com.google.gson.JsonObject;


public class Main {


  public static void main(String[] args) {


  try {


    String myKey = "insert your server key here";

    URL url = new URL("https://gender-api.com/get?key=" + myKey + "&name=markus");

    HttpURLConnection conn = (HttpURLConnection) url.openConnection();


    if (conn.getResponseCode() != 200) {

      throw new RuntimeException("Error: " + conn.getResponseCode());

    }


    InputStreamReader input = new InputStreamReader(conn.getInputStream());

    BufferedReader reader = new BufferedReader(input);


    Gson gson = new Gson();

    JsonObject json = gson.fromJson(reader, JsonObject.class);

    String gender = json.get("gender").getAsString();


    System.out.println("Gender: " + gender); // Gender: male


    conn.disconnect();


    } catch (IOException e) {

      e.printStackTrace();

    }


  }

}

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

$('input#firstname').genderApi({key: genderApiClientKey}).on('gender-found', function(e, result) {

  if (result.accuracy >= 60) {

    alert('Gender found: ' + result.gender);

  }

});

CSV UPLOAD

Upload CSV files with up to 1,000,000 datasets per file.

CSV IN
firstname;lastname
Silvia;Miller
Jonathan;Holmes
Sophia;Smith
CSV file will be processed
CSV OUT
firstname;lastname;ga_gender;ga_accuracy
Silvia;Miller;female;99
Jonathan;Holmes;male;100
Sophia;Smith;female;98

OUR UNIQUE FEATURES

1 For a better gender determination we can consider your customer's ip address.
2 Our jQuery plugin provides an easy way of integration.
3 With our CSV bulk upload feature you can query a huge dataset with one single file.
4 We can determine the first name and the gender of an email address such as sandra314@gmail.com.

PRICING

Our cloud-based infrastructure provides an availability of 99.9% and scales with your business.

500 requests per month FREE FOR REGISTERED USERS
5 000 requests 9.99 € + VAT
25 000 requests premium 45 € + VAT
100 000 requests 99 € + VAT
500 000 requests 299 € + VAT
need a bigger package? Request a quote
No plans or monthly payments. You can charge your account at any time with the needed amount of requests.

Sign Up Free