Gender API

App · Contact Management · 2 actions

Predict gender for names using Gender API.

Predict gender by full name

Predict the gender associated with a full name (first and last name combined).

Inputs

Full namefull_nametextRequired
Full name to analyze

Outputs

credits_usednumber
Number of API credits consumed
durationtext
Request duration
first_nametext
The detected first name
gendertext
Predicted gender (male/female)
last_nametext
Last name extracted from the full name input
probabilitynumber
Confidence probability (0-1)
raw_responseobject
The full original Gender API response payload
result_foundtrue/false
Whether a result was found
samplesnumber
Number of samples used
Example output
{
  "credits_used": 1,
  "duration": "38ms",
  "first_name": "Sandra",
  "gender": "female",
  "last_name": "Miller",
  "probability": 0.95,
  "raw_response": {
    "details": {
      "country": null,
      "credits_used": 1,
      "duration": "38ms",
      "first_name_sanitized": "sandra",
      "samples": 8765
    },
    "first_name": "Sandra",
    "gender": "female",
    "input": {
      "full_name": "Sandra Miller"
    },
    "last_name": "Miller",
    "probability": 0.95,
    "result_found": true
  },
  "result_found": true,
  "samples": 8765
}

Predict gender by name

Predict the gender associated with a first name, optionally tailored to a specific country.

Inputs

NamenametextRequired
First name to analyze
Countrycountrytext
Two-letter country code (for example, US or DE) to tailor the prediction to that country

Outputs

credits_usednumber
Number of API credits consumed
durationtext
Request duration
first_nametext
The detected first name
gendertext
Predicted gender (male/female)
probabilitynumber
Confidence probability (0-1)
raw_responseobject
The full original Gender API response payload
result_foundtrue/false
Whether a result was found
samplesnumber
Number of samples used
Example output
{
  "credits_used": 1,
  "duration": "42ms",
  "first_name": "John",
  "gender": "male",
  "probability": 0.98,
  "raw_response": {
    "details": {
      "country": null,
      "credits_used": 1,
      "duration": "42ms",
      "first_name_sanitized": "john",
      "samples": 12345
    },
    "first_name": "John",
    "gender": "male",
    "input": {
      "first_name": "John"
    },
    "probability": 0.98,
    "result_found": true
  },
  "result_found": true,
  "samples": 12345
}

On this page