Gender Guesser

API documentation

Gender Guesser is powered by Namsor. Namsor has developed a name checking technology, able to create comprehensive analysis through multiple processing. Our API can classify names by gender and supports many alphabets*.

Introduction

About

API Requests and Responses

  • Every endpoint delivers JSON with either an individual object or a nested set of objects..
  • At present, some NamSor API endpoints incorporate nested object configurations in their request body or responses. Kindly consult the relevant code sample for guidance.
  • Note that in the code samples, data has been transformed to URL encoded ASCII code characters when required. For instance, 谢晓亮 becomes %E8%B0%A2%E6%99%93%E4%BA%AE. URLs don't support spaces or non-ASCII characters. When sending GET requests to the API, use URL encoding to change non-ASCII characters into a web-friendly format.

Data Privacy

Out of the box, Namsor's machine learning system can enhance data assessments using input data and keeps logs of the requests made. These settings can be altered through your user profile or via specific API endpoints. Every data log undergoes AES encryption prior to storage.

To prevent machine learning from using your submitted data, adjust the learnable option to false under the "Enhance privacy" category on the my account page. When this setting is turned off for an API key, the respective data won't contribute to the machine learning process.

To turn off the record of service use, adjust the anonymized option to true under the "Enhance privacy" category on the my account page. If this setting is enabled for an API key, any data processed with that key undergoes irreversible anonymization via SHA encryption. It's important to mention that even with anonymized data, the smart handling of repetitive queries remains operational.

Authentication

API Key Creation

Accounts for customers are consistent across all Namsor group websites. To generate an API key, head to Namsor or any other site under the Namsor umbrella and register an account. Once registered, go to the account details page to obtain your API key. Your fresh account includes 500 complimentary credits, which you can promptly utilize with any of Namsor's offerings, be it the API, spreadsheet tool, or Developer tools.

API Key Installation

Include your API key in the request header under the X-API-KEY attribute. For proper key integration, kindly consult the given code examples.

information

Substitute your-api-key with your actual Namsor API key.

Credits

What are Credits

Our usage is monitored through a credit system. Every package offers a set number of monthly credits and a fee for any requests beyond this allocation. The complimentary Basic plan provides 500 credits, but if you need more, additional plans are on offer. To give you an idea, with 500 credits, you can either:

  • Analyze 500 names to ascertain their gender.
information

Admin routes are free.

Repeated Operations Tolerance

Our API is designed with intelligent processing, allowing you to analyze the same data up to 20 times without additional charges. So, if you input the same full name five times to deduce its gender, it will cost you just 1 credit.

Soft Limit vs Hard Limit

Within your user account, you have the option to establish two kinds of credit consumption boundaries:

  • A soft limit which, upon being hit, will prompt an email alert.
  • A hard limit which, once attained, will both send an email warning and deactivate the API key.

Track Usage

You have two methods to monitor your credit consumption: either view the visuals in your user profile or access the relevant Admin pathways (API Usage, API Usage History, and API Usage History Aggregate).

Errors

The following error codes are utilized by the NamSor API:

  • 401UnauthorizedIncorrect ir missing API Key.
  • 403ForbiddenAPI Key Disabled or API Limit Reached.
  • 404Not FoundThe designated path was not located.
  • 500Internal Server ErrorServer issue. Please retry after some time.

Result Explainability

The Namsor API offers the ability to obtain a detailed explanation of how the artificial intelligence arrived at its results for a given request. By enabling this option, an additional field is included in the API response, providing a Python code explanation of the process followed by the AI.

Important

  • Additional Cost: Activating explainability incurs an extra cost of 50 credits per name processed.
  • Explanation Format: The returned explanation is in Python code. For optimal use, it is recommended to remove tabs and carriage returns so that the code is usable.

How to Activate Explainability:

  • Contact the Namsor Team: Before using this feature, please contact our team to activate the explainability option on your client account.
  • Configure the Request: Add the following header to your API request:
X-OPTION-EXPLANABILITY: true

By following these steps, each request will now include a detailed explanation of the result, allowing you to gain deep insights into the workings of our artificial intelligence specialized in onomastics.

AI Act Use Case

The Namsor API can be instrumental in complying with national or supra-national regulations aimed at preventing biased results and discriminatory effects in Artificial Intelligence. Namsor is capable of inferring special categories of personal data from names to estimate the risk of algorithmic biases related to gender, race, cultural/linguistic background, ethnicity, or country of origin.

The European AI Act introduces a new exception regarding “sensitive data” to protect citizens' rights from discrimination that might arise due to bias in AI systems. For the purpose of ensuring bias detection and correction in high-risk AI systems, it permits the processing of special categories of personal data, as a matter of substantial public interest.

Namsor's Explainability Option is designed to provide a closed mathematical formula that includes the entire explanation of name classification (with both training data features and complete model formulas). This can be stored for audit purposes in decision-making AI algorithms.

To protect Namsor's intellectual property, we require specific documentation and a signed NDA before activating this option.

Gender from names

Estimate the gender based on a first name, an optional surname, or a complete undistinguished name. Incorporating the surname allows our system to determine geographical context, enhancing gender prediction. The function that separates full names into "First & last name" tends to be more precise than the one that takes "Full name" as a whole.

Genderize Name

The Genderize Name tool examines both a first name and an optional surname to deduce the dominant gender. Its precision is somewhat superior to the Genderize Full Name function, and providing both first and last names bolsters the accuracy. It delivers the primary gender with an associated adjusted likelihood. Names that present a gender likelihood between 40% and 50% are considered unisex.

Method:

  • Detail: Delivers the probable gender for up to 100 first names, with optional surnames.
  • Accuracy:Accuracy gauge
  • Cost: 1 credit per name.
  • Test: Genderize Name feature.

HTTP request:

http request
POST
https://v2.namsor.com/NamSorAPIv2/api2/json/genderBatch
Request header:
PropertyRequiredDetail
X-API-KEYRequiredYour API key for Namsor's services.
Request body:
NameTypeRequiredDetail
personalNamesArray of objectsRequiredA list of personal names.
[{...}].idStringOptionalUnique identifier.
[{...}].firstNameStringRequiredFirst name, given name, nickname.
[{...}].lastNameStringOptionalLast name, family name, surname.
Response:
NameTypeDetailEnumerators
personalNamesArray of objectsRoster of provided names with their assigned genders.
[{...}].scriptStringThe name's script presented, in ISO 15924 notation.Script
[{...}].idStringGiven unique identifier.
[{...}].firstNameStringProvided first name.
[{...}].lastNameStringProvided last name.
[{...}].likelyGenderStringMost likely gender.Genders
[{...}].genderScaleNumberThe gender scale spans from -1 (indicating male) to +1 (signifying female).
[{...}].scoreNumberA greater value suggests a more dependable outcome; the score isn't normalized..
[{...}].probabilityCalibratedNumberA higher value indicates a more trustworthy outcome, with a scale from 0 to 1.
Code sample:

Genderize Name code sample for javascript:

const response = await fetch("https://v2.namsor.com/NamSorAPIv2/api2/json/genderBatch", {
"method": "POST",
"headers": {
  "X-API-KEY": "your-api-key",
  "Accept": "application/json",
  "Content-Type": "application/json"
},
"body": JSON.stringify({
  "personalNames": [
    {
      "id": "59b9393d-8dc4-464e-a26e-6b6841621e24",
      "firstName": "John",
      "lastName": "Smith"
    }
  ]
})
});

if (response.ok) {
const data = await response.json(); // Extract JSON data from response
console.log(data); // View data in the console
} else {
console.error("The request failed with status:", response.status, response);
}

Body parameter:

{
  "personalNames": [
    {
      "id": "59b9393d-8dc4-464e-a26e-6b6841621e24",
      "firstName": "John",
      "lastName": "Smith"
    }
  ]
}

The above command produces a JSON structure as follows:

{
    "personalNames": [
        {
            "script": "LATIN",
            "id": "59b9393d-8dc4-464e-a26e-6b6841621e24",
            "firstName": "John",
            "lastName": "Smith",
            "likelyGender": "male",
            "genderScale": -0.9757694244599513,
            "score": 10.622513344078705,
            "probabilityCalibrated": 0.9878847122299756
        }
    ]
}

Genderize Name code sample for python:

import requests

url = "https://v2.namsor.com/NamSorAPIv2/api2/json/genderBatch"

payload = {
  "personalNames": [
    {
      "id": "59b9393d-8dc4-464e-a26e-6b6841621e24",
      "firstName": "John",
      "lastName": "Smith"
    }
  ]
}
headers = {
"X-API-KEY": "your-api-key",
"Accept": "application/json",
"Content-Type": "application/json"
}

response = requests.request("POST", url, json=payload, headers=headers)

print(response.text)

Body parameter:

{
  "personalNames": [
    {
      "id": "59b9393d-8dc4-464e-a26e-6b6841621e24",
      "firstName": "John",
      "lastName": "Smith"
    }
  ]
}

The above command produces a JSON structure as follows:

{
    "personalNames": [
        {
            "script": "LATIN",
            "id": "59b9393d-8dc4-464e-a26e-6b6841621e24",
            "firstName": "John",
            "lastName": "Smith",
            "likelyGender": "male",
            "genderScale": -0.9757694244599513,
            "score": 10.622513344078705,
            "probabilityCalibrated": 0.9878847122299756
        }
    ]
}

Genderize Name code sample for shell:

curl --request POST \ 
--url https://v2.namsor.com/NamSorAPIv2/api2/json/genderBatch \
--header 'X-API-KEY: your-api-key' \
--header 'Accept: application/json'
--header 'Content-Type: application/json' \
--data '{"personalNames":[{"id":"59b9393d-8dc4-464e-a26e-6b6841621e24","firstName":"John","lastName":"Smith"}]}'

Body parameter:

{
  "personalNames": [
    {
      "id": "59b9393d-8dc4-464e-a26e-6b6841621e24",
      "firstName": "John",
      "lastName": "Smith"
    }
  ]
}

The above command produces a JSON structure as follows:

{
    "personalNames": [
        {
            "script": "LATIN",
            "id": "59b9393d-8dc4-464e-a26e-6b6841621e24",
            "firstName": "John",
            "lastName": "Smith",
            "likelyGender": "male",
            "genderScale": -0.9757694244599513,
            "score": 10.622513344078705,
            "probabilityCalibrated": 0.9878847122299756
        }
    ]
}

Genderize Name code sample for java:

HttpResponse<String> response = Unirest.post("https://v2.namsor.com/NamSorAPIv2/api2/json/genderBatch")
.header("X-API-KEY", "your-api-key")
.header("Accept", "application/json")
.header("Content-Type", "application/json")
.body("{\"personalNames\":[{\"id\":\"59b9393d-8dc4-464e-a26e-6b6841621e24\",\"firstName\":\"John\",\"lastName\":\"Smith\"}]}")
.asString();

Body parameter:

{
  "personalNames": [
    {
      "id": "59b9393d-8dc4-464e-a26e-6b6841621e24",
      "firstName": "John",
      "lastName": "Smith"
    }
  ]
}

The above command produces a JSON structure as follows:

{
    "personalNames": [
        {
            "script": "LATIN",
            "id": "59b9393d-8dc4-464e-a26e-6b6841621e24",
            "firstName": "John",
            "lastName": "Smith",
            "likelyGender": "male",
            "genderScale": -0.9757694244599513,
            "score": 10.622513344078705,
            "probabilityCalibrated": 0.9878847122299756
        }
    ]
}
information

For GET method requests, every parameter is mandatory. For a smoother experience with our requests, we suggest opting for the POST method.

  • Detail: Estimate the most likely gender from a first name and an optional last name.
  • Accuracy:Accuracy gauge
  • Cost: 1 credit per name.
  • Test: Genderize Name feature.

HTTP request:

http request
GET
https://v2.namsor.com/NamSorAPIv2/api2/json/gender/{firstName}/{lastName}
Request header:
PropertyRequiredDetail
X-API-KEYRequiredYour API key for Namsor's services.
Request parameters
NameTypeRequiredDetail
firstNameStringRequiredFirst name, given name, nickname.
lastNameStringRequiredLast name, family name, surname.
Response:
NameTypeDetailEnumerators
scriptStringThe name's script presented, in ISO 15924 notation.Script
idStringUnique identifier.
firstNameStringProvided first name.
lastNameStringProvided last name.
likelyGenderStringMost likely gender.Genders
genderScaleNumberThe gender scale spans from -1 (indicating male) to +1 (signifying female).
scoreNumberA greater value suggests a more dependable outcome; the score isn't normalized..
probabilityCalibratedNumberA higher value indicates a more trustworthy outcome, with a scale from 0 to 1.
Code sample:

Genderize Name code sample for javascript:

const response = await fetch("https://v2.namsor.com/NamSorAPIv2/api2/json/gender/John/Smith", {
"method": "GET",
"headers": {
  "X-API-KEY": "your-api-key",
  "Accept": "application/json"
}
});

if (response.ok) {
const data = await response.json(); // Extract JSON data from response
console.log(data); // View data in the console
} else {
console.error("The request failed with status:", response.status, response);
}

The above command produces a JSON structure as follows:

{
    "script": "LATIN",
    "id": "59b9393d-8dc4-464e-a26e-6b6841621e24",
    "firstName": "John",
    "lastName": "Smith",
    "likelyGender": "male",
    "genderScale": -0.9757694244599513,
    "score": 10.622513344078705,
    "probabilityCalibrated": 0.9878847122299756
}

Genderize Name code sample for python:

import requests

url = "https://v2.namsor.com/NamSorAPIv2/api2/json/gender/John/Smith"

headers = {
"X-API-KEY": "your-api-key",
"Accept": "application/json"
}

response = requests.request("GET", url, headers=headers)

print(response.text)

The above command produces a JSON structure as follows:

{
    "script": "LATIN",
    "id": "59b9393d-8dc4-464e-a26e-6b6841621e24",
    "firstName": "John",
    "lastName": "Smith",
    "likelyGender": "male",
    "genderScale": -0.9757694244599513,
    "score": 10.622513344078705,
    "probabilityCalibrated": 0.9878847122299756
}

Genderize Name code sample for shell:

curl --request GET \ 
--url https://v2.namsor.com/NamSorAPIv2/api2/json/gender/John/Smith \
--header 'X-API-KEY: your-api-key' \
--header 'Accept: application/json'

The above command produces a JSON structure as follows:

{
    "script": "LATIN",
    "id": "59b9393d-8dc4-464e-a26e-6b6841621e24",
    "firstName": "John",
    "lastName": "Smith",
    "likelyGender": "male",
    "genderScale": -0.9757694244599513,
    "score": 10.622513344078705,
    "probabilityCalibrated": 0.9878847122299756
}

Genderize Name code sample for java:

HttpResponse<String> response = Unirest.get("https://v2.namsor.com/NamSorAPIv2/api2/json/gender/John/Smith")
.header("X-API-KEY", "your-api-key")
.header("Accept", "application/json")
.asString();

The above command produces a JSON structure as follows:

{
    "script": "LATIN",
    "id": "59b9393d-8dc4-464e-a26e-6b6841621e24",
    "firstName": "John",
    "lastName": "Smith",
    "likelyGender": "male",
    "genderScale": -0.9757694244599513,
    "score": 10.622513344078705,
    "probabilityCalibrated": 0.9878847122299756
}

Genderize Full Name

The Genderize Full Name tool examines a full name, which includes both first and last names, to deduce its gender. The function provides the gender along with a likelihood score. Names with a likelihood score ranging between 40% and 50% are viewed as unisex.

information

When the first and last names are distinctly recognizable, the Genderize Name function tends to have enhanced precision.

Method:

  • Detail: Delivers the probable gender for up to 100 undivided full names.
  • Accuracy:Accuracy gauge
  • Cost: 1 credit per name.
  • Test: Genderize Full Name feature.

HTTP request:

http request
POST
https://v2.namsor.com/NamSorAPIv2/api2/json/genderFullBatch
Request header:
PropertyRequiredDetail
X-API-KEYRequiredYour API key for Namsor's services.
Request body:
NameTypeRequiredDetail
personalNamesArray of objectsRequiredA list of personal full names.
[{...}].idStringOptionalUnique identifier.
[{...}].nameStringRequiredA combined full name (comprising both first and last names)..
Response:
NameTypeDetailEnumerators
personalNamesArray of objectsRoster of provided full names with determined genders.
[{...}].scriptStringThe name's script presented, in ISO 15924 notation.Script
[{...}].idStringGiven unique identifier.
[{...}].nameStringProvided full name.
[{...}].likelyGenderStringMost likely gender.Genders
[{...}].genderScaleNumberThe gender scale spans from -1 (indicating male) to +1 (signifying female).
[{...}].scoreNumberA greater value suggests a more dependable outcome; the score isn't normalized..
[{...}].probabilityCalibratedNumberA higher value indicates a more trustworthy outcome, with a scale from 0 to 1.
Code sample:

Genderize Full Name code sample for javascript:

const response = await fetch("https://v2.namsor.com/NamSorAPIv2/api2/json/genderFullBatch", {
"method": "POST",
"headers": {
  "X-API-KEY": "your-api-key",
  "Accept": "application/json",
  "Content-Type": "application/json"
},
"body": JSON.stringify({
  "personalNames": [
    {
      "id": "0b81a1d0-b625-4a89-b4f8-8fee1d1326ce",
      "name": "John Smith"
    }
  ]
})
});

if (response.ok) {
const data = await response.json(); // Extract JSON data from response
console.log(data); // View data in the console
} else {
console.error("The request failed with status:", response.status, response);
}

Body parameter:

{
  "personalNames": [
    {
      "id": "0b81a1d0-b625-4a89-b4f8-8fee1d1326ce",
      "name": "John Smith"
    }
  ]
}

The above command produces a JSON structure as follows:

{
    "personalNames": [
        {
            "script": "LATIN",
            "id": "0b81a1d0-b625-4a89-b4f8-8fee1d1326ce",
            "name": "John Smith",
            "likelyGender": "male",
            "genderScale": -0.929374967691815,
            "score": 11.53988881064575,
            "probabilityCalibrated": 0.9646874838459075
        }
    ]
}

Genderize Full Name code sample for python:

import requests

url = "https://v2.namsor.com/NamSorAPIv2/api2/json/genderFullBatch"

payload = {
  "personalNames": [
    {
      "id": "0b81a1d0-b625-4a89-b4f8-8fee1d1326ce",
      "name": "John Smith"
    }
  ]
}
headers = {
"X-API-KEY": "your-api-key",
"Accept": "application/json",
"Content-Type": "application/json"
}

response = requests.request("POST", url, json=payload, headers=headers)

print(response.text)

Body parameter:

{
  "personalNames": [
    {
      "id": "0b81a1d0-b625-4a89-b4f8-8fee1d1326ce",
      "name": "John Smith"
    }
  ]
}

The above command produces a JSON structure as follows:

{
    "personalNames": [
        {
            "script": "LATIN",
            "id": "0b81a1d0-b625-4a89-b4f8-8fee1d1326ce",
            "name": "John Smith",
            "likelyGender": "male",
            "genderScale": -0.929374967691815,
            "score": 11.53988881064575,
            "probabilityCalibrated": 0.9646874838459075
        }
    ]
}

Genderize Full Name code sample for shell:

curl --request POST \ 
--url https://v2.namsor.com/NamSorAPIv2/api2/json/genderFullBatch \
--header 'X-API-KEY: your-api-key' \
--header 'Accept: application/json'
--header 'Content-Type: application/json' \
--data '{"personalNames":[{"id":"0b81a1d0-b625-4a89-b4f8-8fee1d1326ce","name":"John Smith"}]}'

Body parameter:

{
  "personalNames": [
    {
      "id": "0b81a1d0-b625-4a89-b4f8-8fee1d1326ce",
      "name": "John Smith"
    }
  ]
}

The above command produces a JSON structure as follows:

{
    "personalNames": [
        {
            "script": "LATIN",
            "id": "0b81a1d0-b625-4a89-b4f8-8fee1d1326ce",
            "name": "John Smith",
            "likelyGender": "male",
            "genderScale": -0.929374967691815,
            "score": 11.53988881064575,
            "probabilityCalibrated": 0.9646874838459075
        }
    ]
}

Genderize Full Name code sample for java:

HttpResponse<String> response = Unirest.post("https://v2.namsor.com/NamSorAPIv2/api2/json/genderFullBatch")
.header("X-API-KEY", "your-api-key")
.header("Accept", "application/json")
.header("Content-Type", "application/json")
.body("{\"personalNames\":[{\"id\":\"0b81a1d0-b625-4a89-b4f8-8fee1d1326ce\",\"name\":\"John Smith\"}]}")
.asString();

Body parameter:

{
  "personalNames": [
    {
      "id": "0b81a1d0-b625-4a89-b4f8-8fee1d1326ce",
      "name": "John Smith"
    }
  ]
}

The above command produces a JSON structure as follows:

{
    "personalNames": [
        {
            "script": "LATIN",
            "id": "0b81a1d0-b625-4a89-b4f8-8fee1d1326ce",
            "name": "John Smith",
            "likelyGender": "male",
            "genderScale": -0.929374967691815,
            "score": 11.53988881064575,
            "probabilityCalibrated": 0.9646874838459075
        }
    ]
}
information

For GET method requests, every parameter is mandatory. For a smoother experience with our requests, we suggest opting for the POST method.

HTTP request:

http request
GET
https://v2.namsor.com/NamSorAPIv2/api2/json/genderFull/{name}
Request header:
PropertyRequiredDetail
X-API-KEYRequiredYour API key for Namsor's services.
Request parameters
NameTypeRequiredDetail
nameStringRequiredA combined full name (comprising both first and last names)..
Response:
NameTypeDetailEnumerators
scriptStringThe name's script presented, in ISO 15924 notation.Script
idStringUnique identifier.
nameStringProvided full name.
likelyGenderStringMost likely gender.Genders
genderScaleNumberThe gender scale spans from -1 (indicating male) to +1 (signifying female).
scoreNumberA greater value suggests a more dependable outcome; the score isn't normalized..
probabilityCalibratedNumberA higher value indicates a more trustworthy outcome, with a scale from 0 to 1.
Code sample:

Genderize Full Name code sample for javascript:

const response = await fetch("https://v2.namsor.com/NamSorAPIv2/api2/json/genderFull/John%20Smith", {
"method": "GET",
"headers": {
  "X-API-KEY": "your-api-key",
  "Accept": "application/json"
}
});

if (response.ok) {
const data = await response.json(); // Extract JSON data from response
console.log(data); // View data in the console
} else {
console.error("The request failed with status:", response.status, response);
}

The above command produces a JSON structure as follows:

{
    "script": "LATIN",
    "id": "0b81a1d0-b625-4a89-b4f8-8fee1d1326ce",
    "name": "John Smith",
    "likelyGender": "male",
    "genderScale": -0.929374967691815,
    "score": 11.53988881064575,
    "probabilityCalibrated": 0.9646874838459075
}

Genderize Full Name code sample for python:

import requests

url = "https://v2.namsor.com/NamSorAPIv2/api2/json/genderFull/John%20Smith"

headers = {
"X-API-KEY": "your-api-key",
"Accept": "application/json"
}

response = requests.request("GET", url, headers=headers)

print(response.text)

The above command produces a JSON structure as follows:

{
    "script": "LATIN",
    "id": "0b81a1d0-b625-4a89-b4f8-8fee1d1326ce",
    "name": "John Smith",
    "likelyGender": "male",
    "genderScale": -0.929374967691815,
    "score": 11.53988881064575,
    "probabilityCalibrated": 0.9646874838459075
}

Genderize Full Name code sample for shell:

curl --request GET \ 
--url https://v2.namsor.com/NamSorAPIv2/api2/json/genderFull/John%20Smith \
--header 'X-API-KEY: your-api-key' \
--header 'Accept: application/json'

The above command produces a JSON structure as follows:

{
    "script": "LATIN",
    "id": "0b81a1d0-b625-4a89-b4f8-8fee1d1326ce",
    "name": "John Smith",
    "likelyGender": "male",
    "genderScale": -0.929374967691815,
    "score": 11.53988881064575,
    "probabilityCalibrated": 0.9646874838459075
}

Genderize Full Name code sample for java:

HttpResponse<String> response = Unirest.get("https://v2.namsor.com/NamSorAPIv2/api2/json/genderFull/John%20Smith")
.header("X-API-KEY", "your-api-key")
.header("Accept", "application/json")
.asString();

The above command produces a JSON structure as follows:

{
    "script": "LATIN",
    "id": "0b81a1d0-b625-4a89-b4f8-8fee1d1326ce",
    "name": "John Smith",
    "likelyGender": "male",
    "genderScale": -0.929374967691815,
    "score": 11.53988881064575,
    "probabilityCalibrated": 0.9646874838459075
}

Gender from names improved with a local context

Identify the gender using a specified name and, when available, a surname, or a whole full name. The accuracy is heightened when local context clues, such as country of residence or origin, are provided. By considering this localized or cultural backdrop, the system examines the name against its environmental, historical, and modern influences. This approach refines the system's capacity to precisely gauge the gender linked with the name.

Genderize Name Geo

The Genderize Name Geo tool scrutinizes a first name and, if provided, a last name, taking into account the local context (country of origin or residence), to pinpoint the most likely gender. This approach offers heightened accuracy compared to the standard Genderize Name function, especially when both first and last names are supplied. It provides the most likely gender along with a normalized probability. Names with gender probabilities ranging between 40% and 50% are viewed as gender-neutral.

Method:

  • Detail: Provides the probable gender for up to 100 first names, with optional last names, based on their regional background.
  • Accuracy:Accuracy gauge
  • Cost: 1 credit per name.
  • Test: Genderize Name Geo feature.

HTTP request:

http request
POST
https://v2.namsor.com/NamSorAPIv2/api2/json/genderGeoBatch
Request header:
PropertyRequiredDetail
X-API-KEYRequiredYour API key for Namsor's services.
Request body:
NameTypeRequiredDetail
personalNamesArray of objectsRequiredA compilation of individual names along with their associated local backgrounds.
[{...}].idStringOptionalUnique identifier.
[{...}].firstNameStringRequiredFirst name, given name, nickname.
[{...}].lastNameStringOptionalLast name, family name, surname.
[{...}].countryIso2StringRequiredLocal context (country of residence, country of origin, etc), in ISO 3166-1 alpha-2 format.
Response:
NameTypeDetailEnumerators
personalNamesArray of objectsRoster of submited names with their assigned genders.
[{...}].scriptStringThe name's script presented, in ISO 15924 notation.Script
[{...}].idStringGiven unique identifier.
[{...}].firstNameStringProvided first name.
[{...}].lastNameStringProvided last name.
[{...}].likelyGenderStringMost likely gender.Genders
[{...}].genderScaleNumberThe gender scale spans from -1 (indicating male) to +1 (signifying female).
[{...}].scoreNumberA greater value suggests a more dependable outcome; the score isn't normalized..
[{...}].probabilityCalibratedNumberA higher value indicates a more trustworthy outcome, with a scale from 0 to 1.
Code sample:

Genderize Name Geo code sample for javascript:

const response = await fetch("https://v2.namsor.com/NamSorAPIv2/api2/json/genderGeoBatch", {
"method": "POST",
"headers": {
  "X-API-KEY": "your-api-key",
  "Accept": "application/json",
  "Content-Type": "application/json"
},
"body": JSON.stringify({
  "personalNames": [
    {
      "id": "fbd28ba3-7a9d-46e3-8f6f-a8cbc71e0ee2",
      "firstName": "John",
      "lastName": "Smith",
      "countryIso2": "US"
    }
  ]
})
});

if (response.ok) {
const data = await response.json(); // Extract JSON data from response
console.log(data); // View data in the console
} else {
console.error("The request failed with status:", response.status, response);
}

Body parameter:

{
  "personalNames": [
    {
      "id": "fbd28ba3-7a9d-46e3-8f6f-a8cbc71e0ee2",
      "firstName": "John",
      "lastName": "Smith",
      "countryIso2": "US"
    }
  ]
}

The above command produces a JSON structure as follows:

{
    "personalNames": [
        {
            "script": "LATIN",
            "id": "fbd28ba3-7a9d-46e3-8f6f-a8cbc71e0ee2",
            "firstName": "John",
            "lastName": "Smith",
            "likelyGender": "male",
            "genderScale": -0.9999601946111383,
            "score": 17.734397494023867,
            "probabilityCalibrated": 0.9999800973055691
        }
    ]
}

Genderize Name Geo code sample for python:

import requests

url = "https://v2.namsor.com/NamSorAPIv2/api2/json/genderGeoBatch"

payload = {
  "personalNames": [
    {
      "id": "fbd28ba3-7a9d-46e3-8f6f-a8cbc71e0ee2",
      "firstName": "John",
      "lastName": "Smith",
      "countryIso2": "US"
    }
  ]
}
headers = {
"X-API-KEY": "your-api-key",
"Accept": "application/json",
"Content-Type": "application/json"
}

response = requests.request("POST", url, json=payload, headers=headers)

print(response.text)

Body parameter:

{
  "personalNames": [
    {
      "id": "fbd28ba3-7a9d-46e3-8f6f-a8cbc71e0ee2",
      "firstName": "John",
      "lastName": "Smith",
      "countryIso2": "US"
    }
  ]
}

The above command produces a JSON structure as follows:

{
    "personalNames": [
        {
            "script": "LATIN",
            "id": "fbd28ba3-7a9d-46e3-8f6f-a8cbc71e0ee2",
            "firstName": "John",
            "lastName": "Smith",
            "likelyGender": "male",
            "genderScale": -0.9999601946111383,
            "score": 17.734397494023867,
            "probabilityCalibrated": 0.9999800973055691
        }
    ]
}

Genderize Name Geo code sample for shell:

curl --request POST \ 
--url https://v2.namsor.com/NamSorAPIv2/api2/json/genderGeoBatch \
--header 'X-API-KEY: your-api-key' \
--header 'Accept: application/json'
--header 'Content-Type: application/json' \
--data '{"personalNames":[{"id":"fbd28ba3-7a9d-46e3-8f6f-a8cbc71e0ee2","firstName":"John","lastName":"Smith","countryIso2":"US"}]}'

Body parameter:

{
  "personalNames": [
    {
      "id": "fbd28ba3-7a9d-46e3-8f6f-a8cbc71e0ee2",
      "firstName": "John",
      "lastName": "Smith",
      "countryIso2": "US"
    }
  ]
}

The above command produces a JSON structure as follows:

{
    "personalNames": [
        {
            "script": "LATIN",
            "id": "fbd28ba3-7a9d-46e3-8f6f-a8cbc71e0ee2",
            "firstName": "John",
            "lastName": "Smith",
            "likelyGender": "male",
            "genderScale": -0.9999601946111383,
            "score": 17.734397494023867,
            "probabilityCalibrated": 0.9999800973055691
        }
    ]
}

Genderize Name Geo code sample for java:

HttpResponse<String> response = Unirest.post("https://v2.namsor.com/NamSorAPIv2/api2/json/genderGeoBatch")
.header("X-API-KEY", "your-api-key")
.header("Accept", "application/json")
.header("Content-Type", "application/json")
.body("{\"personalNames\":[{\"id\":\"fbd28ba3-7a9d-46e3-8f6f-a8cbc71e0ee2\",\"firstName\":\"John\",\"lastName\":\"Smith\",\"countryIso2\":\"US\"}]}")
.asString();

Body parameter:

{
  "personalNames": [
    {
      "id": "fbd28ba3-7a9d-46e3-8f6f-a8cbc71e0ee2",
      "firstName": "John",
      "lastName": "Smith",
      "countryIso2": "US"
    }
  ]
}

The above command produces a JSON structure as follows:

{
    "personalNames": [
        {
            "script": "LATIN",
            "id": "fbd28ba3-7a9d-46e3-8f6f-a8cbc71e0ee2",
            "firstName": "John",
            "lastName": "Smith",
            "likelyGender": "male",
            "genderScale": -0.9999601946111383,
            "score": 17.734397494023867,
            "probabilityCalibrated": 0.9999800973055691
        }
    ]
}
information

For GET method requests, every parameter is mandatory. For a smoother experience with our requests, we suggest opting for the POST method.

  • Detail: Estimate the most likely gender from a first name and an optional last name.
  • Accuracy:Accuracy gauge
  • Cost: 1 credit per name.
  • Test: Genderize Name Geo feature.

HTTP request:

http request
GET
https://v2.namsor.com/NamSorAPIv2/api2/json/gender/{firstName}/{lastName}
Request header:
PropertyRequiredDetail
X-API-KEYRequiredYour API key for Namsor's services.
Request parameters
NameTypeRequiredDetail
firstNameStringRequiredFirst name, given name, nickname.
lastNameStringRequiredLast name, family name, surname.
Response:
NameTypeDetailEnumerators
scriptStringThe name's script presented, in ISO 15924 notation.Script
idStringUnique identifier.
firstNameStringProvided first name.
lastNameStringProvided last name.
likelyGenderStringMost likely gender.Genders
genderScaleNumberThe gender scale spans from -1 (indicating male) to +1 (signifying female).
scoreNumberA greater value suggests a more dependable outcome; the score isn't normalized..
probabilityCalibratedNumberA higher value indicates a more trustworthy outcome, with a scale from 0 to 1.
Code sample:

Genderize Name code sample for javascript:

const response = await fetch("https://v2.namsor.com/NamSorAPIv2/api2/json/gender/John/Smith", {
"method": "GET",
"headers": {
  "X-API-KEY": "your-api-key",
  "Accept": "application/json"
}
});

if (response.ok) {
const data = await response.json(); // Extract JSON data from response
console.log(data); // View data in the console
} else {
console.error("The request failed with status:", response.status, response);
}

The above command produces a JSON structure as follows:

{
    "script": "LATIN",
    "id": "59b9393d-8dc4-464e-a26e-6b6841621e24",
    "firstName": "John",
    "lastName": "Smith",
    "likelyGender": "male",
    "genderScale": -0.9757694244599513,
    "score": 10.622513344078705,
    "probabilityCalibrated": 0.9878847122299756
}

Genderize Name code sample for python:

import requests

url = "https://v2.namsor.com/NamSorAPIv2/api2/json/gender/John/Smith"

headers = {
"X-API-KEY": "your-api-key",
"Accept": "application/json"
}

response = requests.request("GET", url, headers=headers)

print(response.text)

The above command produces a JSON structure as follows:

{
    "script": "LATIN",
    "id": "59b9393d-8dc4-464e-a26e-6b6841621e24",
    "firstName": "John",
    "lastName": "Smith",
    "likelyGender": "male",
    "genderScale": -0.9757694244599513,
    "score": 10.622513344078705,
    "probabilityCalibrated": 0.9878847122299756
}

Genderize Name code sample for shell:

curl --request GET \ 
--url https://v2.namsor.com/NamSorAPIv2/api2/json/gender/John/Smith \
--header 'X-API-KEY: your-api-key' \
--header 'Accept: application/json'

The above command produces a JSON structure as follows:

{
    "script": "LATIN",
    "id": "59b9393d-8dc4-464e-a26e-6b6841621e24",
    "firstName": "John",
    "lastName": "Smith",
    "likelyGender": "male",
    "genderScale": -0.9757694244599513,
    "score": 10.622513344078705,
    "probabilityCalibrated": 0.9878847122299756
}

Genderize Name code sample for java:

HttpResponse<String> response = Unirest.get("https://v2.namsor.com/NamSorAPIv2/api2/json/gender/John/Smith")
.header("X-API-KEY", "your-api-key")
.header("Accept", "application/json")
.asString();

The above command produces a JSON structure as follows:

{
    "script": "LATIN",
    "id": "59b9393d-8dc4-464e-a26e-6b6841621e24",
    "firstName": "John",
    "lastName": "Smith",
    "likelyGender": "male",
    "genderScale": -0.9757694244599513,
    "score": 10.622513344078705,
    "probabilityCalibrated": 0.9878847122299756
}

Genderize Full Name Geo

The Genderize Full Name Geo tool scrutinizes a full name, which includes both the first and last names, factoring in the country of residence, to pinpoint its most likely gender. This approach offers greater precision than the standard Genderize Full Name function. It provides the gender as well as a probability. Names with a probability close to 50% are considered unisex.

information

When the first and last names are distinctly recognizable, the Genderize Name Geo function tends to have enhanced precision.

Method:

  • Detail: Provides the probable gender for up to 100 whole full names based on their regional background.
  • Accuracy:Accuracy gauge
  • Cost: 1 credit per name.
  • Test: Genderize Full Name Geo feature.

HTTP request:

http request
POST
https://v2.namsor.com/NamSorAPIv2/api2/json/genderFullGeoBatch
Request header:
PropertyRequiredDetail
X-API-KEYRequiredYour API key for Namsor's services.
Request body:
NameTypeRequiredDetail
personalNamesArray of objectsRequiredA roster of individual names with their associated local backgrounds.
[{...}].idStringOptionalUnique identifier.
[{...}].nameStringRequiredA combined full name (comprising both first and last names)..
[{...}].countryIso2StringRequiredLocal context (country of residence, country of origin, etc), in ISO 3166-1 alpha-2 format.
Response:
NameTypeDetailEnumerators
personalNamesArray of objectsRoster of provided full names with determined genders.
[{...}].scriptStringThe name's script presented, in ISO 15924 notation.Script
[{...}].idStringGiven unique identifier.
[{...}].nameStringProvided full name.
[{...}].likelyGenderStringMost likely gender.Genders
[{...}].genderScaleNumberThe gender scale spans from -1 (indicating male) to +1 (signifying female).
[{...}].scoreNumberA greater value suggests a more dependable outcome; the score isn't normalized..
[{...}].probabilityCalibratedNumberA higher value indicates a more trustworthy outcome, with a scale from 0 to 1.
Code sample:

Genderize Full Name Geo code sample for javascript:

const response = await fetch("https://v2.namsor.com/NamSorAPIv2/api2/json/genderFullGeoBatch", {
"method": "POST",
"headers": {
  "X-API-KEY": "your-api-key",
  "Accept": "application/json",
  "Content-Type": "application/json"
},
"body": JSON.stringify({
  "personalNames": [
    {
      "id": "db97a06b-21e5-4716-b214-4310f2c27b34",
      "name": "John Smith",
      "countryIso2": "US"
    }
  ]
})
});

if (response.ok) {
const data = await response.json(); // Extract JSON data from response
console.log(data); // View data in the console
} else {
console.error("The request failed with status:", response.status, response);
}

Body parameter:

{
  "personalNames": [
    {
      "id": "db97a06b-21e5-4716-b214-4310f2c27b34",
      "name": "John Smith",
      "countryIso2": "US"
    }
  ]
}

The above command produces a JSON structure as follows:

{
    "personalNames": [
        {
            "script": "LATIN",
            "id": "db97a06b-21e5-4716-b214-4310f2c27b34",
            "name": "John Smith",
            "likelyGender": "male",
            "genderScale": -0.929844340168597,
            "score": 11.61845253624304,
            "probabilityCalibrated": 0.9649221700842985
        }
    ]
}

Genderize Full Name Geo code sample for python:

import requests

url = "https://v2.namsor.com/NamSorAPIv2/api2/json/genderFullGeoBatch"

payload = {
  "personalNames": [
    {
      "id": "db97a06b-21e5-4716-b214-4310f2c27b34",
      "name": "John Smith",
      "countryIso2": "US"
    }
  ]
}
headers = {
"X-API-KEY": "your-api-key",
"Accept": "application/json",
"Content-Type": "application/json"
}

response = requests.request("POST", url, json=payload, headers=headers)

print(response.text)

Body parameter:

{
  "personalNames": [
    {
      "id": "db97a06b-21e5-4716-b214-4310f2c27b34",
      "name": "John Smith",
      "countryIso2": "US"
    }
  ]
}

The above command produces a JSON structure as follows:

{
    "personalNames": [
        {
            "script": "LATIN",
            "id": "db97a06b-21e5-4716-b214-4310f2c27b34",
            "name": "John Smith",
            "likelyGender": "male",
            "genderScale": -0.929844340168597,
            "score": 11.61845253624304,
            "probabilityCalibrated": 0.9649221700842985
        }
    ]
}

Genderize Full Name Geo code sample for shell:

curl --request POST \ 
--url https://v2.namsor.com/NamSorAPIv2/api2/json/genderFullGeoBatch \
--header 'X-API-KEY: your-api-key' \
--header 'Accept: application/json'
--header 'Content-Type: application/json' \
--data '{"personalNames":[{"id":"db97a06b-21e5-4716-b214-4310f2c27b34","name":"John Smith","countryIso2":"US"}]}'

Body parameter:

{
  "personalNames": [
    {
      "id": "db97a06b-21e5-4716-b214-4310f2c27b34",
      "name": "John Smith",
      "countryIso2": "US"
    }
  ]
}

The above command produces a JSON structure as follows:

{
    "personalNames": [
        {
            "script": "LATIN",
            "id": "db97a06b-21e5-4716-b214-4310f2c27b34",
            "name": "John Smith",
            "likelyGender": "male",
            "genderScale": -0.929844340168597,
            "score": 11.61845253624304,
            "probabilityCalibrated": 0.9649221700842985
        }
    ]
}

Genderize Full Name Geo code sample for java:

HttpResponse<String> response = Unirest.post("https://v2.namsor.com/NamSorAPIv2/api2/json/genderFullGeoBatch")
.header("X-API-KEY", "your-api-key")
.header("Accept", "application/json")
.header("Content-Type", "application/json")
.body("{\"personalNames\":[{\"id\":\"db97a06b-21e5-4716-b214-4310f2c27b34\",\"name\":\"John Smith\",\"countryIso2\":\"US\"}]}")
.asString();

Body parameter:

{
  "personalNames": [
    {
      "id": "db97a06b-21e5-4716-b214-4310f2c27b34",
      "name": "John Smith",
      "countryIso2": "US"
    }
  ]
}

The above command produces a JSON structure as follows:

{
    "personalNames": [
        {
            "script": "LATIN",
            "id": "db97a06b-21e5-4716-b214-4310f2c27b34",
            "name": "John Smith",
            "likelyGender": "male",
            "genderScale": -0.929844340168597,
            "score": 11.61845253624304,
            "probabilityCalibrated": 0.9649221700842985
        }
    ]
}
information

For GET method requests, every parameter is mandatory. For a smoother experience with our requests, we suggest opting for the POST method.

HTTP request:

http request
GET
https://v2.namsor.com/NamSorAPIv2/api2/json/genderFull/{name}
Request header:
PropertyRequiredDetail
X-API-KEYRequiredYour API key for Namsor's services.
Request parameters
NameTypeRequiredDetail
nameStringRequiredA combined full name (comprising both first and last names)..
Response:
NameTypeDetailEnumerators
scriptStringThe name's script presented, in ISO 15924 notation.Script
idStringUnique identifier.
nameStringProvided full name.
likelyGenderStringMost likely gender.Genders
genderScaleNumberThe gender scale spans from -1 (indicating male) to +1 (signifying female).
scoreNumberA greater value suggests a more dependable outcome; the score isn't normalized..
probabilityCalibratedNumberA higher value indicates a more trustworthy outcome, with a scale from 0 to 1.
Code sample:

Genderize Full Name code sample for javascript:

const response = await fetch("https://v2.namsor.com/NamSorAPIv2/api2/json/genderFull/John%20Smith", {
"method": "GET",
"headers": {
  "X-API-KEY": "your-api-key",
  "Accept": "application/json"
}
});

if (response.ok) {
const data = await response.json(); // Extract JSON data from response
console.log(data); // View data in the console
} else {
console.error("The request failed with status:", response.status, response);
}

The above command produces a JSON structure as follows:

{
    "script": "LATIN",
    "id": "0b81a1d0-b625-4a89-b4f8-8fee1d1326ce",
    "name": "John Smith",
    "likelyGender": "male",
    "genderScale": -0.929374967691815,
    "score": 11.53988881064575,
    "probabilityCalibrated": 0.9646874838459075
}

Genderize Full Name code sample for python:

import requests

url = "https://v2.namsor.com/NamSorAPIv2/api2/json/genderFull/John%20Smith"

headers = {
"X-API-KEY": "your-api-key",
"Accept": "application/json"
}

response = requests.request("GET", url, headers=headers)

print(response.text)

The above command produces a JSON structure as follows:

{
    "script": "LATIN",
    "id": "0b81a1d0-b625-4a89-b4f8-8fee1d1326ce",
    "name": "John Smith",
    "likelyGender": "male",
    "genderScale": -0.929374967691815,
    "score": 11.53988881064575,
    "probabilityCalibrated": 0.9646874838459075
}

Genderize Full Name code sample for shell:

curl --request GET \ 
--url https://v2.namsor.com/NamSorAPIv2/api2/json/genderFull/John%20Smith \
--header 'X-API-KEY: your-api-key' \
--header 'Accept: application/json'

The above command produces a JSON structure as follows:

{
    "script": "LATIN",
    "id": "0b81a1d0-b625-4a89-b4f8-8fee1d1326ce",
    "name": "John Smith",
    "likelyGender": "male",
    "genderScale": -0.929374967691815,
    "score": 11.53988881064575,
    "probabilityCalibrated": 0.9646874838459075
}

Genderize Full Name code sample for java:

HttpResponse<String> response = Unirest.get("https://v2.namsor.com/NamSorAPIv2/api2/json/genderFull/John%20Smith")
.header("X-API-KEY", "your-api-key")
.header("Accept", "application/json")
.asString();

The above command produces a JSON structure as follows:

{
    "script": "LATIN",
    "id": "0b81a1d0-b625-4a89-b4f8-8fee1d1326ce",
    "name": "John Smith",
    "likelyGender": "male",
    "genderScale": -0.929374967691815,
    "score": 11.53988881064575,
    "probabilityCalibrated": 0.9646874838459075
}

Chinese names

Assesses a Chinese given name and, when supplied, a surname, or an intact Chinese full name, using both Mandarin Chinese and its Latin transcription (Pinyin). This evaluation seeks to more precisely identify the associated gender.

Genderize Chinese Name

The Genderize Chinese Name tool precisely determines the gender of a Chinese first name, with an optional surname, written in either Pinyin or Standard Mandarin Chinese. Its accuracy is marginally better than the Genderize Chinese Full Name function. It offers the most likely gender along with an adjusted probability. Names that have a gender probability ranging between 40% and 50% are deemed gender-neutral.

Method:

  • Detail: Delivers the probable gender for up to 100 first names, with optional surnames, presented in Pinyin or Standard Mandarin Chinese.
  • Accuracy:Accuracy gauge
  • Cost: 1 credit per name.
  • Test: Genderize Chinese Name feature.

HTTP request:

http request
POST
https://v2.namsor.com/NamSorAPIv2/api2/json/genderChineseNamePinyinBatch
Request header:
PropertyRequiredDetail
X-API-KEYRequiredYour API key for Namsor's services.
Request body:
NameTypeRequiredDetail
personalNamesArray of objectsRequiredA compilation of Chinese names.
[{...}].idStringOptionalUnique identifier.
[{...}].firstNameStringRequiredChinese given name (first name) in Pinyin or standard Mandarin Chinese.
[{...}].lastNameStringOptionalChinese surname (last name) in Pinyin or standard Mandarin Chinese.
Response:
NameTypeDetailEnumerators
personalNamesArray of objectsRoster of provided Chinese names with their assigned genders.
[{...}].scriptStringThe name's script presented, in ISO 15924 notation.Script
[{...}].idStringGiven unique identifier.
[{...}].firstNameStringProvided given name.
[{...}].lastNameStringProvided surname.
[{...}].likelyGenderStringMost likely gender.Genders
[{...}].genderScaleNumberThe gender scale spans from -1 (indicating male) to +1 (signifying female).
[{...}].scoreNumberA greater value suggests a more dependable outcome; the score isn't normalized..
[{...}].probabilityCalibratedNumberA higher value indicates a more trustworthy outcome, with a scale from 0 to 1.
Code sample:

Genderize Chinese Name code sample for javascript:

const response = await fetch("https://v2.namsor.com/NamSorAPIv2/api2/json/genderChineseNamePinyinBatch", {
"method": "POST",
"headers": {
  "X-API-KEY": "your-api-key",
  "Accept": "application/json",
  "Content-Type": "application/json"
},
"body": JSON.stringify({
  "personalNames": [
    {
      "id": "ba5ec5bb-3bf2-4662-b9ec-434f76559fbf",
      "firstName": "Xiaoming",
      "lastName": "Wang"
    }
  ]
})
});

if (response.ok) {
const data = await response.json(); // Extract JSON data from response
console.log(data); // View data in the console
} else {
console.error("The request failed with status:", response.status, response);
}

Body parameter:

{
  "personalNames": [
    {
      "id": "ba5ec5bb-3bf2-4662-b9ec-434f76559fbf",
      "firstName": "Xiaoming",
      "lastName": "Wang"
    }
  ]
}

The above command produces a JSON structure as follows:

{
    "personalNames": [
        {
            "script": "LATIN",
            "id": "ba5ec5bb-3bf2-4662-b9ec-434f76559fbf",
            "firstName": "Xiaoming ",
            "lastName": "Wang",
            "likelyGender": "female",
            "genderScale": 0.2579147656089782,
            "score": 1.5028819454087738,
            "probabilityCalibrated": 0.6289573828044891
        }
    ]
}

Genderize Chinese Name code sample for python:

import requests

url = "https://v2.namsor.com/NamSorAPIv2/api2/json/genderChineseNamePinyinBatch"

payload = {
  "personalNames": [
    {
      "id": "ba5ec5bb-3bf2-4662-b9ec-434f76559fbf",
      "firstName": "Xiaoming",
      "lastName": "Wang"
    }
  ]
}
headers = {
"X-API-KEY": "your-api-key",
"Accept": "application/json",
"Content-Type": "application/json"
}

response = requests.request("POST", url, json=payload, headers=headers)

print(response.text)

Body parameter:

{
  "personalNames": [
    {
      "id": "ba5ec5bb-3bf2-4662-b9ec-434f76559fbf",
      "firstName": "Xiaoming",
      "lastName": "Wang"
    }
  ]
}

The above command produces a JSON structure as follows:

{
    "personalNames": [
        {
            "script": "LATIN",
            "id": "ba5ec5bb-3bf2-4662-b9ec-434f76559fbf",
            "firstName": "Xiaoming ",
            "lastName": "Wang",
            "likelyGender": "female",
            "genderScale": 0.2579147656089782,
            "score": 1.5028819454087738,
            "probabilityCalibrated": 0.6289573828044891
        }
    ]
}

Genderize Chinese Name code sample for shell:

curl --request POST \ 
--url https://v2.namsor.com/NamSorAPIv2/api2/json/genderChineseNamePinyinBatch \
--header 'X-API-KEY: your-api-key' \
--header 'Accept: application/json'
--header 'Content-Type: application/json' \
--data '{"personalNames":[{"id":"ba5ec5bb-3bf2-4662-b9ec-434f76559fbf","firstName":"Xiaoming","lastName":"Wang"}]}'

Body parameter:

{
  "personalNames": [
    {
      "id": "ba5ec5bb-3bf2-4662-b9ec-434f76559fbf",
      "firstName": "Xiaoming",
      "lastName": "Wang"
    }
  ]
}

The above command produces a JSON structure as follows:

{
    "personalNames": [
        {
            "script": "LATIN",
            "id": "ba5ec5bb-3bf2-4662-b9ec-434f76559fbf",
            "firstName": "Xiaoming ",
            "lastName": "Wang",
            "likelyGender": "female",
            "genderScale": 0.2579147656089782,
            "score": 1.5028819454087738,
            "probabilityCalibrated": 0.6289573828044891
        }
    ]
}

Genderize Chinese Name code sample for java:

HttpResponse<String> response = Unirest.post("https://v2.namsor.com/NamSorAPIv2/api2/json/genderChineseNamePinyinBatch")
.header("X-API-KEY", "your-api-key")
.header("Accept", "application/json")
.header("Content-Type", "application/json")
.body("{\"personalNames\":[{\"id\":\"ba5ec5bb-3bf2-4662-b9ec-434f76559fbf\",\"firstName\":\"Xiaoming\",\"lastName\":\"Wang\"}]}")
.asString();

Body parameter:

{
  "personalNames": [
    {
      "id": "ba5ec5bb-3bf2-4662-b9ec-434f76559fbf",
      "firstName": "Xiaoming",
      "lastName": "Wang"
    }
  ]
}

The above command produces a JSON structure as follows:

{
    "personalNames": [
        {
            "script": "LATIN",
            "id": "ba5ec5bb-3bf2-4662-b9ec-434f76559fbf",
            "firstName": "Xiaoming ",
            "lastName": "Wang",
            "likelyGender": "female",
            "genderScale": 0.2579147656089782,
            "score": 1.5028819454087738,
            "probabilityCalibrated": 0.6289573828044891
        }
    ]
}
information

For GET method requests, every parameter is mandatory. For a smoother experience with our requests, we suggest opting for the POST method.

  • Detail: Provides the probable gender of a Chinese first name and surname, whether in Pinyin or Standard Mandarin Chinese.
  • Accuracy:Accuracy gauge
  • Cost: 1 credit per name.
  • Test: Genderize Chinese Name feature.

HTTP request:

http request
GET
https://v2.namsor.com/NamSorAPIv2/api2/json/genderChineseNamePinyin/{lastName}/{firstName}
Request header:
PropertyRequiredDetail
X-API-KEYRequiredYour API key for Namsor's services.
Request parameters
NameTypeRequiredDetail
lastNameStringRequiredChinese surname (last name) in Pinyin or Mandarin Chinese.
firstNameStringRequiredChinese given name (first name) in Pinyin or Mandarin Chinese.
Response:
NameTypeDetailEnumerators
scriptStringThe name's script presented, in ISO 15924 notation.Script
idStringUnique identifier.
firstNameStringProvided given name.
lastNameStringProvided surname.
likelyGenderStringMost likely gender.Genders
genderScaleNumberThe gender scale spans from -1 (indicating male) to +1 (signifying female).
scoreNumberA greater value suggests a more dependable outcome; the score isn't normalized..
probabilityCalibratedNumberA higher value indicates a more trustworthy outcome, with a scale from 0 to 1.
Code sample:

Genderize Chinese Name code sample for javascript:

const response = await fetch("https://v2.namsor.com/NamSorAPIv2/api2/json/genderChineseNamePinyin/Wang/Xiaoming", {
"method": "GET",
"headers": {
  "X-API-KEY": "your-api-key",
  "Accept": "application/json"
}
});

if (response.ok) {
const data = await response.json(); // Extract JSON data from response
console.log(data); // View data in the console
} else {
console.error("The request failed with status:", response.status, response);
}

The above command produces a JSON structure as follows:

{
    "script": "LATIN",
    "id": "ba5ec5bb-3bf2-4662-b9ec-434f76559fbf",
    "firstName": "Xiaoming ",
    "lastName": "Wang",
    "likelyGender": "female",
    "genderScale": 0.2579147656089782,
    "score": 1.5028819454087738,
    "probabilityCalibrated": 0.6289573828044891
}

Genderize Chinese Name code sample for python:

import requests

url = "https://v2.namsor.com/NamSorAPIv2/api2/json/genderChineseNamePinyin/Wang/Xiaoming"

headers = {
"X-API-KEY": "your-api-key",
"Accept": "application/json"
}

response = requests.request("GET", url, headers=headers)

print(response.text)

The above command produces a JSON structure as follows:

{
    "script": "LATIN",
    "id": "ba5ec5bb-3bf2-4662-b9ec-434f76559fbf",
    "firstName": "Xiaoming ",
    "lastName": "Wang",
    "likelyGender": "female",
    "genderScale": 0.2579147656089782,
    "score": 1.5028819454087738,
    "probabilityCalibrated": 0.6289573828044891
}

Genderize Chinese Name code sample for shell:

curl --request GET \ 
--url https://v2.namsor.com/NamSorAPIv2/api2/json/genderChineseNamePinyin/Wang/Xiaoming \
--header 'X-API-KEY: your-api-key' \
--header 'Accept: application/json'

The above command produces a JSON structure as follows:

{
    "script": "LATIN",
    "id": "ba5ec5bb-3bf2-4662-b9ec-434f76559fbf",
    "firstName": "Xiaoming ",
    "lastName": "Wang",
    "likelyGender": "female",
    "genderScale": 0.2579147656089782,
    "score": 1.5028819454087738,
    "probabilityCalibrated": 0.6289573828044891
}

Genderize Chinese Name code sample for java:

HttpResponse<String> response = Unirest.get("https://v2.namsor.com/NamSorAPIv2/api2/json/genderChineseNamePinyin/Wang/Xiaoming")
.header("X-API-KEY", "your-api-key")
.header("Accept", "application/json")
.asString();

The above command produces a JSON structure as follows:

{
    "script": "LATIN",
    "id": "ba5ec5bb-3bf2-4662-b9ec-434f76559fbf",
    "firstName": "Xiaoming ",
    "lastName": "Wang",
    "likelyGender": "female",
    "genderScale": 0.2579147656089782,
    "score": 1.5028819454087738,
    "probabilityCalibrated": 0.6289573828044891
}

Genderize Chinese Full Name

The Genderize Chinese Full Name function precisely determines the gender of a whole Chinese name written in standard Mandarin. It delivers the most probable gender along with an adjusted likelihood. Names with a gender probability ranging from 40% to 50% can be considered as unisex.

information

The Genderize Chinese Full Name feature is exclusively compatible with Chinese full names penned in Standard Mandarin Chinese.

Method:

  • Detail: Provides the probable gender for a maximum of 100 unseparated Chinese full names (including family and given names) in Standard Mandarin Chinese.
  • Accuracy:Accuracy gauge
  • Cost: 1 credit per name.
  • Test: Genderize Chinese Full Name feature.

HTTP request:

http request
POST
https://v2.namsor.com/NamSorAPIv2/api2/json/genderChineseNameBatch
Request header:
PropertyRequiredDetail
X-API-KEYRequiredYour API key for Namsor's services.
Request body:
NameTypeRequiredDetail
personalNamesArray of objectsRequiredA compilation of Chinese full names.
[{...}].idStringOptionalUnique identifier.
[{...}].nameStringRequiredUnsplit Chinese full name (given name and surname) in Standard Mandarin Chinese.
Response:
NameTypeDetailEnumerators
personalNamesArray of objectsRoster of provided Chinese full names with their assigned genders.
[{...}].scriptStringThe name's script presented, in ISO 15924 notation.Script
[{...}].idStringGiven unique identifier.
[{...}].nameStringProvided full name.
[{...}].likelyGenderStringMost likely gender.Genders
[{...}].genderScaleNumberThe gender scale spans from -1 (indicating male) to +1 (signifying female).
[{...}].scoreNumberA greater value suggests a more dependable outcome; the score isn't normalized..
[{...}].probabilityCalibratedNumberA higher value indicates a more trustworthy outcome, with a scale from 0 to 1.
Code sample:

Genderize Chinese Full Name code sample for javascript:

const response = await fetch("https://v2.namsor.com/NamSorAPIv2/api2/json/genderChineseNameBatch", {
"method": "POST",
"headers": {
  "X-API-KEY": "your-api-key",
  "Accept": "application/json",
  "Content-Type": "application/json"
},
"body": JSON.stringify({
  "personalNames": [
    {
      "id": "64275bed-b88c-4bd9-b915-0a189d89400d",
      "name": "王晓明"
    }
  ]
})
});

if (response.ok) {
const data = await response.json(); // Extract JSON data from response
console.log(data); // View data in the console
} else {
console.error("The request failed with status:", response.status, response);
}

Body parameter:

{
  "personalNames": [
    {
      "id": "64275bed-b88c-4bd9-b915-0a189d89400d",
      "name": "王晓明"
    }
  ]
}

The above command produces a JSON structure as follows:

{
    "personalNames": [
        {
            "script": "HAN",
            "id": "64275bed-b88c-4bd9-b915-0a189d89400d",
            "name": "王晓明",
            "likelyGender": "male",
            "genderScale": -0.05024680441744089,
            "score": 0.06555061355894772,
            "probabilityCalibrated": 0.5251234022087204
        }
    ]
}

Genderize Chinese Full Name code sample for python:

import requests

url = "https://v2.namsor.com/NamSorAPIv2/api2/json/genderChineseNameBatch"

payload = {
  "personalNames": [
    {
      "id": "64275bed-b88c-4bd9-b915-0a189d89400d",
      "name": "王晓明"
    }
  ]
}
headers = {
"X-API-KEY": "your-api-key",
"Accept": "application/json",
"Content-Type": "application/json"
}

response = requests.request("POST", url, json=payload, headers=headers)

print(response.text)

Body parameter:

{
  "personalNames": [
    {
      "id": "64275bed-b88c-4bd9-b915-0a189d89400d",
      "name": "王晓明"
    }
  ]
}

The above command produces a JSON structure as follows:

{
    "personalNames": [
        {
            "script": "HAN",
            "id": "64275bed-b88c-4bd9-b915-0a189d89400d",
            "name": "王晓明",
            "likelyGender": "male",
            "genderScale": -0.05024680441744089,
            "score": 0.06555061355894772,
            "probabilityCalibrated": 0.5251234022087204
        }
    ]
}

Genderize Chinese Full Name code sample for shell:

curl --request POST \ 
--url https://v2.namsor.com/NamSorAPIv2/api2/json/genderChineseNameBatch \
--header 'X-API-KEY: your-api-key' \
--header 'Accept: application/json'
--header 'Content-Type: application/json' \
--data '{"personalNames":[{"id":"64275bed-b88c-4bd9-b915-0a189d89400d","name":"王晓明"}]}'

Body parameter:

{
  "personalNames": [
    {
      "id": "64275bed-b88c-4bd9-b915-0a189d89400d",
      "name": "王晓明"
    }
  ]
}

The above command produces a JSON structure as follows:

{
    "personalNames": [
        {
            "script": "HAN",
            "id": "64275bed-b88c-4bd9-b915-0a189d89400d",
            "name": "王晓明",
            "likelyGender": "male",
            "genderScale": -0.05024680441744089,
            "score": 0.06555061355894772,
            "probabilityCalibrated": 0.5251234022087204
        }
    ]
}

Genderize Chinese Full Name code sample for java:

HttpResponse<String> response = Unirest.post("https://v2.namsor.com/NamSorAPIv2/api2/json/genderChineseNameBatch")
.header("X-API-KEY", "your-api-key")
.header("Accept", "application/json")
.header("Content-Type", "application/json")
.body("{\"personalNames\":[{\"id\":\"64275bed-b88c-4bd9-b915-0a189d89400d\",\"name\":\"王晓明\"}]}")
.asString();

Body parameter:

{
  "personalNames": [
    {
      "id": "64275bed-b88c-4bd9-b915-0a189d89400d",
      "name": "王晓明"
    }
  ]
}

The above command produces a JSON structure as follows:

{
    "personalNames": [
        {
            "script": "HAN",
            "id": "64275bed-b88c-4bd9-b915-0a189d89400d",
            "name": "王晓明",
            "likelyGender": "male",
            "genderScale": -0.05024680441744089,
            "score": 0.06555061355894772,
            "probabilityCalibrated": 0.5251234022087204
        }
    ]
}
information

For GET method requests, every parameter is mandatory. For a smoother experience with our requests, we suggest opting for the POST method.

  • Detail: Provides the probable gender associated with a whole Chinese name in Standard Mandarin Chinese.
  • Accuracy:Accuracy gauge
  • Cost: 1 credit per name.
  • Test: Genderize Chinese Full Name feature.

HTTP request:

http request
GET
https://v2.namsor.com/NamSorAPIv2/api2/json/genderChineseName/{name}
Request header:
PropertyRequiredDetail
X-API-KEYRequiredYour API key for Namsor's services.
Request parameters
NameTypeRequiredDetail
nameStringRequiredUnsplit Chinese full name (given name and surname) in standard Mandarin Chinese.
Response:
NameTypeDetailEnumerators
scriptStringThe name's script presented, in ISO 15924 notation.Script
idStringUnique identifier.
nameStringProvided full name.
likelyGenderStringMost likely gender.Genders
genderScaleNumberThe gender scale spans from -1 (indicating male) to +1 (signifying female).
scoreNumberA greater value suggests a more dependable outcome; the score isn't normalized..
probabilityCalibratedNumberA higher value indicates a more trustworthy outcome, with a scale from 0 to 1.
Code sample:

Genderize Chinese Full Name code sample for javascript:

const response = await fetch("https://v2.namsor.com/NamSorAPIv2/api2/json/genderChineseName/王晓明", {
"method": "GET",
"headers": {
  "X-API-KEY": "your-api-key",
  "Accept": "application/json"
}
});

if (response.ok) {
const data = await response.json(); // Extract JSON data from response
console.log(data); // View data in the console
} else {
console.error("The request failed with status:", response.status, response);
}

The above command produces a JSON structure as follows:

{
    "script": "HAN",
    "id": "64275bed-b88c-4bd9-b915-0a189d89400d",
    "name": "王晓明",
    "likelyGender": "male",
    "genderScale": -0.05024680441744089,
    "score": 0.06555061355894772,
    "probabilityCalibrated": 0.5251234022087204
}

Genderize Chinese Full Name code sample for python:

import requests

url = "https://v2.namsor.com/NamSorAPIv2/api2/json/genderChineseName/王晓明"

headers = {
"X-API-KEY": "your-api-key",
"Accept": "application/json"
}

response = requests.request("GET", url, headers=headers)

print(response.text)

The above command produces a JSON structure as follows:

{
    "script": "HAN",
    "id": "64275bed-b88c-4bd9-b915-0a189d89400d",
    "name": "王晓明",
    "likelyGender": "male",
    "genderScale": -0.05024680441744089,
    "score": 0.06555061355894772,
    "probabilityCalibrated": 0.5251234022087204
}

Genderize Chinese Full Name code sample for shell:

curl --request GET \ 
--url https://v2.namsor.com/NamSorAPIv2/api2/json/genderChineseName/王晓明 \
--header 'X-API-KEY: your-api-key' \
--header 'Accept: application/json'

The above command produces a JSON structure as follows:

{
    "script": "HAN",
    "id": "64275bed-b88c-4bd9-b915-0a189d89400d",
    "name": "王晓明",
    "likelyGender": "male",
    "genderScale": -0.05024680441744089,
    "score": 0.06555061355894772,
    "probabilityCalibrated": 0.5251234022087204
}

Genderize Chinese Full Name code sample for java:

HttpResponse<String> response = Unirest.get("https://v2.namsor.com/NamSorAPIv2/api2/json/genderChineseName/王晓明")
.header("X-API-KEY", "your-api-key")
.header("Accept", "application/json")
.asString();

The above command produces a JSON structure as follows:

{
    "script": "HAN",
    "id": "64275bed-b88c-4bd9-b915-0a189d89400d",
    "name": "王晓明",
    "likelyGender": "male",
    "genderScale": -0.05024680441744089,
    "score": 0.06555061355894772,
    "probabilityCalibrated": 0.5251234022087204
}

Japanese names

Assesses a Japanese given name, and when provided, a surname, or a complete unified Japanese name, using Kanji or Latin characters. The goal is to determine the gender that's most probable with heightened accuracy.

Genderize Japanese Name

The Genderize Japanese Name tool adeptly determines the gender of a Japanese first name and, if provided, a surname, written in either Kanji or Latin script. Its precision is marginally superior to that of the Genderize Japanese Full Name function. Names with a probability close to 50% can be considered as gender-neutral.

Method:

  • Detail: Delivers the probable gender for up to 100 Japanese first names, with optional surnames, whether penned in the Latin script or Kanji characters.
  • Accuracy:Accuracy gauge
  • Cost: 1 credit per name.
  • Test: Genderize Japanese Name feature.

HTTP request:

http request
POST
https://v2.namsor.com/NamSorAPIv2/api2/json/genderJapaneseNameBatch
Request header:
PropertyRequiredDetail
X-API-KEYRequiredYour API key for Namsor's services.
Request body:
NameTypeRequiredDetail
personalNamesArray of objectsRequiredA compilation of Japanese names.
[{...}].idStringOptionalUnique identifier.
[{...}].firstNameStringRequiredJapanese given name represented in either Latin or Kanji script.
[{...}].lastNameStringOptionalJapanese surname represented in either Latin or Kanji script.
Response:
NameTypeDetailEnumerators
personalNamesArray of objectsRoster of provided Japanese names with their assigned genders.
[{...}].scriptStringThe name's script presented, in ISO 15924 notation.Script
[{...}].idStringGiven unique identifier.
[{...}].firstNameStringProvided given name.
[{...}].lastNameStringProvided surname.
[{...}].likelyGenderStringMost likely gender.Genders
[{...}].genderScaleNumberThe gender scale spans from -1 (indicating male) to +1 (signifying female).
[{...}].scoreNumberA greater value suggests a more dependable outcome; the score isn't normalized..
[{...}].probabilityCalibratedNumberA higher value indicates a more trustworthy outcome, with a scale from 0 to 1.
Code sample:

Genderize Japanese Name code sample for javascript:

const response = await fetch("https://v2.namsor.com/NamSorAPIv2/api2/json/genderJapaneseNameBatch", {
"method": "POST",
"headers": {
  "X-API-KEY": "your-api-key",
  "Accept": "application/json",
  "Content-Type": "application/json"
},
"body": JSON.stringify({
  "personalNames": [
    {
      "id": "230fa70e-8c2e-4e70-beeb-93ac08ac4038",
      "firstName": "Sanae",
      "lastName": "Yamamoto"
    }
  ]
})
});

if (response.ok) {
const data = await response.json(); // Extract JSON data from response
console.log(data); // View data in the console
} else {
console.error("The request failed with status:", response.status, response);
}

Body parameter:

{
  "personalNames": [
    {
      "id": "230fa70e-8c2e-4e70-beeb-93ac08ac4038",
      "firstName": "Sanae",
      "lastName": "Yamamoto"
    }
  ]
}

The above command produces a JSON structure as follows:

{
    "personalNames": [
        {
            "script": "LATIN",
            "id": "230fa70e-8c2e-4e70-beeb-93ac08ac4038",
            "firstName": "Sanae",
            "lastName": "Yamamoto",
            "likelyGender": "female",
            "genderScale": 0.9999279399338183,
            "score": 17.14089975408791,
            "probabilityCalibrated": 0.9999639699669092
        }
    ]
}

Genderize Japanese Name code sample for python:

import requests

url = "https://v2.namsor.com/NamSorAPIv2/api2/json/genderJapaneseNameBatch"

payload = {
  "personalNames": [
    {
      "id": "230fa70e-8c2e-4e70-beeb-93ac08ac4038",
      "firstName": "Sanae",
      "lastName": "Yamamoto"
    }
  ]
}
headers = {
"X-API-KEY": "your-api-key",
"Accept": "application/json",
"Content-Type": "application/json"
}

response = requests.request("POST", url, json=payload, headers=headers)

print(response.text)

Body parameter:

{
  "personalNames": [
    {
      "id": "230fa70e-8c2e-4e70-beeb-93ac08ac4038",
      "firstName": "Sanae",
      "lastName": "Yamamoto"
    }
  ]
}

The above command produces a JSON structure as follows:

{
    "personalNames": [
        {
            "script": "LATIN",
            "id": "230fa70e-8c2e-4e70-beeb-93ac08ac4038",
            "firstName": "Sanae",
            "lastName": "Yamamoto",
            "likelyGender": "female",
            "genderScale": 0.9999279399338183,
            "score": 17.14089975408791,
            "probabilityCalibrated": 0.9999639699669092
        }
    ]
}

Genderize Japanese Name code sample for shell:

curl --request POST \ 
--url https://v2.namsor.com/NamSorAPIv2/api2/json/genderJapaneseNameBatch \
--header 'X-API-KEY: your-api-key' \
--header 'Accept: application/json'
--header 'Content-Type: application/json' \
--data '{"personalNames":[{"id":"230fa70e-8c2e-4e70-beeb-93ac08ac4038","firstName":"Sanae","lastName":"Yamamoto"}]}'

Body parameter:

{
  "personalNames": [
    {
      "id": "230fa70e-8c2e-4e70-beeb-93ac08ac4038",
      "firstName": "Sanae",
      "lastName": "Yamamoto"
    }
  ]
}

The above command produces a JSON structure as follows:

{
    "personalNames": [
        {
            "script": "LATIN",
            "id": "230fa70e-8c2e-4e70-beeb-93ac08ac4038",
            "firstName": "Sanae",
            "lastName": "Yamamoto",
            "likelyGender": "female",
            "genderScale": 0.9999279399338183,
            "score": 17.14089975408791,
            "probabilityCalibrated": 0.9999639699669092
        }
    ]
}

Genderize Japanese Name code sample for java:

HttpResponse<String> response = Unirest.post("https://v2.namsor.com/NamSorAPIv2/api2/json/genderJapaneseNameBatch")
.header("X-API-KEY", "your-api-key")
.header("Accept", "application/json")
.header("Content-Type", "application/json")
.body("{\"personalNames\":[{\"id\":\"230fa70e-8c2e-4e70-beeb-93ac08ac4038\",\"firstName\":\"Sanae\",\"lastName\":\"Yamamoto\"}]}")
.asString();

Body parameter:

{
  "personalNames": [
    {
      "id": "230fa70e-8c2e-4e70-beeb-93ac08ac4038",
      "firstName": "Sanae",
      "lastName": "Yamamoto"
    }
  ]
}

The above command produces a JSON structure as follows:

{
    "personalNames": [
        {
            "script": "LATIN",
            "id": "230fa70e-8c2e-4e70-beeb-93ac08ac4038",
            "firstName": "Sanae",
            "lastName": "Yamamoto",
            "likelyGender": "female",
            "genderScale": 0.9999279399338183,
            "score": 17.14089975408791,
            "probabilityCalibrated": 0.9999639699669092
        }
    ]
}
information

For GET method requests, every parameter is mandatory. For a smoother experience with our requests, we suggest opting for the POST method.

  • Detail: Provides the probable gender of a Japanese given name and surname, whether expressed in Latin script or Kanji characters.
  • Accuracy:Accuracy gauge
  • Cost: 1 credit per name.
  • Test: Genderize Japanese Name feature.

HTTP request:

http request
GET
https://v2.namsor.com/NamSorAPIv2/api2/json/genderJapaneseName/{lastName}/{firstName}
Request header:
PropertyRequiredDetail
X-API-KEYRequiredYour API key for Namsor's services.
Request parameters
NameTypeRequiredDetail
lastNameStringRequiredJapanese surname represented in either Latin or Kanji script.
firstNameStringRequiredJapanese given name represented in either Latin or Kanji script.
Response:
NameTypeDetailEnumerators
scriptStringThe name's script presented, in ISO 15924 notation.Script
idStringUnique identifier.
firstNameStringProvided given name.
lastNameStringProvided surname.
likelyGenderStringMost likely gender.Genders
genderScaleNumberThe gender scale spans from -1 (indicating male) to +1 (signifying female).
scoreNumberA greater value suggests a more dependable outcome; the score isn't normalized..
probabilityCalibratedNumberA higher value indicates a more trustworthy outcome, with a scale from 0 to 1.
Code sample:

Genderize Japanese Name code sample for javascript:

const response = await fetch("https://v2.namsor.com/NamSorAPIv2/api2/json/genderJapaneseName/Yamamoto/Sanae", {
"method": "GET",
"headers": {
  "X-API-KEY": "your-api-key",
  "Accept": "application/json"
}
});

if (response.ok) {
const data = await response.json(); // Extract JSON data from response
console.log(data); // View data in the console
} else {
console.error("The request failed with status:", response.status, response);
}

The above command produces a JSON structure as follows:

{
    "script": "LATIN",
    "id": "230fa70e-8c2e-4e70-beeb-93ac08ac4038",
    "firstName": "Sanae",
    "lastName": "Yamamoto",
    "likelyGender": "female",
    "genderScale": 0.9999279399338183,
    "score": 17.14089975408791,
    "probabilityCalibrated": 0.9999639699669092
}

Genderize Japanese Name code sample for python:

import requests

url = "https://v2.namsor.com/NamSorAPIv2/api2/json/genderJapaneseName/Yamamoto/Sanae"

headers = {
"X-API-KEY": "your-api-key",
"Accept": "application/json"
}

response = requests.request("GET", url, headers=headers)

print(response.text)

The above command produces a JSON structure as follows:

{
    "script": "LATIN",
    "id": "230fa70e-8c2e-4e70-beeb-93ac08ac4038",
    "firstName": "Sanae",
    "lastName": "Yamamoto",
    "likelyGender": "female",
    "genderScale": 0.9999279399338183,
    "score": 17.14089975408791,
    "probabilityCalibrated": 0.9999639699669092
}

Genderize Japanese Name code sample for shell:

curl --request GET \ 
--url https://v2.namsor.com/NamSorAPIv2/api2/json/genderJapaneseName/Yamamoto/Sanae \
--header 'X-API-KEY: your-api-key' \
--header 'Accept: application/json'

The above command produces a JSON structure as follows:

{
    "script": "LATIN",
    "id": "230fa70e-8c2e-4e70-beeb-93ac08ac4038",
    "firstName": "Sanae",
    "lastName": "Yamamoto",
    "likelyGender": "female",
    "genderScale": 0.9999279399338183,
    "score": 17.14089975408791,
    "probabilityCalibrated": 0.9999639699669092
}

Genderize Japanese Name code sample for java:

HttpResponse<String> response = Unirest.get("https://v2.namsor.com/NamSorAPIv2/api2/json/genderJapaneseName/Yamamoto/Sanae")
.header("X-API-KEY", "your-api-key")
.header("Accept", "application/json")
.asString();

The above command produces a JSON structure as follows:

{
    "script": "LATIN",
    "id": "230fa70e-8c2e-4e70-beeb-93ac08ac4038",
    "firstName": "Sanae",
    "lastName": "Yamamoto",
    "likelyGender": "female",
    "genderScale": 0.9999279399338183,
    "score": 17.14089975408791,
    "probabilityCalibrated": 0.9999639699669092
}

Genderize Japanese Full Name

The Genderize Japanese Full Name tool precisely determines the gender of a whole Japanese name, comprising both surname and first name, penned in Kanji or the Latin script. Names with a gender probability spanning between 40% and 50% are viewed as unisex.

information

When the given and surname are distinctly recognizable, the Genderize Japanese Name function tends to have enhanced precision.

Method:

  • Detail: Provides the probable gender for up to 100 Japanese full names, including surnames and given names, whether penned in Kanji or the Latin script.
  • Accuracy:Accuracy gauge
  • Cost: 1 credit per name.
  • Test: Genderize Japanese Full Name feature.

HTTP request:

http request
POST
https://v2.namsor.com/NamSorAPIv2/api2/json/genderJapaneseNameFullBatch
Request header:
PropertyRequiredDetail
X-API-KEYRequiredYour API key for Namsor's services.
Request body:
NameTypeRequiredDetail
personalNamesArray of objectsRequiredA compilation of Japanese full names.
[{...}].idStringOptionalUnique identifier.
[{...}].nameStringRequiredUnsplit Japanese full name (given name and surname) in Kanji or Latin alphabet.
Response:
NameTypeDetailEnumerators
personalNamesArray of objectsRoster of provided Japanese full names with their assigned genders.
[{...}].scriptStringThe name's script presented, in ISO 15924 notation.Script
[{...}].idStringGiven unique identifier.
[{...}].nameStringProvided full name.
[{...}].likelyGenderStringMost likely gender.Genders
[{...}].genderScaleNumberThe gender scale spans from -1 (indicating male) to +1 (signifying female).
[{...}].scoreNumberA greater value suggests a more dependable outcome; the score isn't normalized..
[{...}].probabilityCalibratedNumberA higher value indicates a more trustworthy outcome, with a scale from 0 to 1.
Code sample:

Genderize Japanese Full Name code sample for javascript:

const response = await fetch("https://v2.namsor.com/NamSorAPIv2/api2/json/genderJapaneseNameFullBatch", {
"method": "POST",
"headers": {
  "X-API-KEY": "your-api-key",
  "Accept": "application/json",
  "Content-Type": "application/json"
},
"body": JSON.stringify({
  "personalNames": [
    {
      "id": "04ac145e-6636-4f61-869e-1345a2a31dea",
      "name": "早苗 山本"
    }
  ]
})
});

if (response.ok) {
const data = await response.json(); // Extract JSON data from response
console.log(data); // View data in the console
} else {
console.error("The request failed with status:", response.status, response);
}

Body parameter:

{
  "personalNames": [
    {
      "id": "04ac145e-6636-4f61-869e-1345a2a31dea",
      "name": "早苗 山本"
    }
  ]
}

The above command produces a JSON structure as follows:

{
    "personalNames": [
        {
            "script": "HAN",
            "id": "8c34c749-279c-4de8-b588-9cda951c9fdd",
            "name": "早苗 山本",
            "likelyGender": "female",
            "genderScale": 0.9824793433203705,
            "score": 26.120365131524423,
            "probabilityCalibrated": 0.9912396716601852
        }
    ]
}

Genderize Japanese Full Name code sample for python:

import requests

url = "https://v2.namsor.com/NamSorAPIv2/api2/json/genderJapaneseNameFullBatch"

payload = {
  "personalNames": [
    {
      "id": "04ac145e-6636-4f61-869e-1345a2a31dea",
      "name": "早苗 山本"
    }
  ]
}
headers = {
"X-API-KEY": "your-api-key",
"Accept": "application/json",
"Content-Type": "application/json"
}

response = requests.request("POST", url, json=payload, headers=headers)

print(response.text)

Body parameter:

{
  "personalNames": [
    {
      "id": "04ac145e-6636-4f61-869e-1345a2a31dea",
      "name": "早苗 山本"
    }
  ]
}

The above command produces a JSON structure as follows:

{
    "personalNames": [
        {
            "script": "HAN",
            "id": "8c34c749-279c-4de8-b588-9cda951c9fdd",
            "name": "早苗 山本",
            "likelyGender": "female",
            "genderScale": 0.9824793433203705,
            "score": 26.120365131524423,
            "probabilityCalibrated": 0.9912396716601852
        }
    ]
}

Genderize Japanese Full Name code sample for shell:

curl --request POST \ 
--url https://v2.namsor.com/NamSorAPIv2/api2/json/genderJapaneseNameFullBatch \
--header 'X-API-KEY: your-api-key' \
--header 'Accept: application/json'
--header 'Content-Type: application/json' \
--data '{"personalNames":[{"id":"04ac145e-6636-4f61-869e-1345a2a31dea","name":"早苗 山本"}]}'

Body parameter:

{
  "personalNames": [
    {
      "id": "04ac145e-6636-4f61-869e-1345a2a31dea",
      "name": "早苗 山本"
    }
  ]
}

The above command produces a JSON structure as follows:

{
    "personalNames": [
        {
            "script": "HAN",
            "id": "8c34c749-279c-4de8-b588-9cda951c9fdd",
            "name": "早苗 山本",
            "likelyGender": "female",
            "genderScale": 0.9824793433203705,
            "score": 26.120365131524423,
            "probabilityCalibrated": 0.9912396716601852
        }
    ]
}

Genderize Japanese Full Name code sample for java:

HttpResponse<String> response = Unirest.post("https://v2.namsor.com/NamSorAPIv2/api2/json/genderJapaneseNameFullBatch")
.header("X-API-KEY", "your-api-key")
.header("Accept", "application/json")
.header("Content-Type", "application/json")
.body("{\"personalNames\":[{\"id\":\"04ac145e-6636-4f61-869e-1345a2a31dea\",\"name\":\"早苗 山本\"}]}")
.asString();

Body parameter:

{
  "personalNames": [
    {
      "id": "04ac145e-6636-4f61-869e-1345a2a31dea",
      "name": "早苗 山本"
    }
  ]
}

The above command produces a JSON structure as follows:

{
    "personalNames": [
        {
            "script": "HAN",
            "id": "8c34c749-279c-4de8-b588-9cda951c9fdd",
            "name": "早苗 山本",
            "likelyGender": "female",
            "genderScale": 0.9824793433203705,
            "score": 26.120365131524423,
            "probabilityCalibrated": 0.9912396716601852
        }
    ]
}
information

For GET method requests, every parameter is mandatory. For a smoother experience with our requests, we suggest opting for the POST method.

  • Detail: Identify the gender for a complete Japanese name, encompassing both surname and first name, whether in Kanji or Latin script.
  • Accuracy:Accuracy gauge
  • Cost: 1 credit per name.
  • Test: Genderize Japanese Full Name feature.

HTTP request:

http request
GET
https://v2.namsor.com/NamSorAPIv2/api2/json/genderJapaneseNameFull/{name}
Request header:
PropertyRequiredDetail
X-API-KEYRequiredYour API key for Namsor's services.
Request parameters
NameTypeRequiredDetail
nameStringRequiredUnsplit Japanese full name (given name and surname) in Kanji or Latin alphabet.
Response:
NameTypeDetailEnumerators
scriptStringThe name's script presented, in ISO 15924 notation.Script
idStringUnique identifier.
nameStringProvided full name.
likelyGenderStringMost likely gender.Genders
genderScaleNumberThe gender scale spans from -1 (indicating male) to +1 (signifying female).
scoreNumberA greater value suggests a more dependable outcome; the score isn't normalized..
probabilityCalibratedNumberA higher value indicates a more trustworthy outcome, with a scale from 0 to 1.
Code sample:

Genderize Japanese Full Name code sample for javascript:

const response = await fetch("https://v2.namsor.com/NamSorAPIv2/api2/json/genderJapaneseNameFull/早苗%20山本", {
"method": "GET",
"headers": {
  "X-API-KEY": "your-api-key",
  "Accept": "application/json"
}
});

if (response.ok) {
const data = await response.json(); // Extract JSON data from response
console.log(data); // View data in the console
} else {
console.error("The request failed with status:", response.status, response);
}

The above command produces a JSON structure as follows:

{
    "script": "HAN",
    "id": "8c34c749-279c-4de8-b588-9cda951c9fdd",
    "name": "早苗 山本",
    "likelyGender": "female",
    "genderScale": 0.9824793433203705,
    "score": 26.120365131524423,
    "probabilityCalibrated": 0.9912396716601852
}

Genderize Japanese Full Name code sample for python:

import requests

url = "https://v2.namsor.com/NamSorAPIv2/api2/json/genderJapaneseNameFull/早苗%20山本"

headers = {
"X-API-KEY": "your-api-key",
"Accept": "application/json"
}

response = requests.request("GET", url, headers=headers)

print(response.text)

The above command produces a JSON structure as follows:

{
    "script": "HAN",
    "id": "8c34c749-279c-4de8-b588-9cda951c9fdd",
    "name": "早苗 山本",
    "likelyGender": "female",
    "genderScale": 0.9824793433203705,
    "score": 26.120365131524423,
    "probabilityCalibrated": 0.9912396716601852
}

Genderize Japanese Full Name code sample for shell:

curl --request GET \ 
--url https://v2.namsor.com/NamSorAPIv2/api2/json/genderJapaneseNameFull/早苗%20山本 \
--header 'X-API-KEY: your-api-key' \
--header 'Accept: application/json'

The above command produces a JSON structure as follows:

{
    "script": "HAN",
    "id": "8c34c749-279c-4de8-b588-9cda951c9fdd",
    "name": "早苗 山本",
    "likelyGender": "female",
    "genderScale": 0.9824793433203705,
    "score": 26.120365131524423,
    "probabilityCalibrated": 0.9912396716601852
}

Genderize Japanese Full Name code sample for java:

HttpResponse<String> response = Unirest.get("https://v2.namsor.com/NamSorAPIv2/api2/json/genderJapaneseNameFull/早苗%20山本")
.header("X-API-KEY", "your-api-key")
.header("Accept", "application/json")
.asString();

The above command produces a JSON structure as follows:

{
    "script": "HAN",
    "id": "8c34c749-279c-4de8-b588-9cda951c9fdd",
    "name": "早苗 山本",
    "likelyGender": "female",
    "genderScale": 0.9824793433203705,
    "score": 26.120365131524423,
    "probabilityCalibrated": 0.9912396716601852
}

Admin

The Admin endpoints provide a variety of administrative tools. You can view your API usage records, verify the status and accessibility of Namsor's endpoints, or investigate the enumerators available for a specific classifier. Additionally, you have the option to adjust your privacy settings or deactivate your key.

Software Version

GET
  • Detail: Provides the latest version of the Namsor software.
  • Cost: 1 credit per name.

HTTP request:

http request
GET
https://v2.namsor.com/NamSorAPIv2/api2/json/softwareVersion
Request header:
PropertyRequiredDetail
X-API-KEYRequiredYour API key for Namsor's services.
Response:
NameTypeDetail
softwareNameAndVersionStringAPI name along with its version.
softwareVersionArraySoftware version in array format [major, minor, patch].
Code sample:

Software Version code sample for javascript:

const response = await fetch("https://v2.namsor.com/NamSorAPIv2/api2/json/softwareVersion", {
"method": "GET",
"headers": {
  "X-API-KEY": "your-api-key",
  "Accept": "application/json"
}
});

if (response.ok) {
const data = await response.json(); // Extract JSON data from response
console.log(data); // View data in the console
} else {
console.error("The request failed with status:", response.status, response);
}

The above command produces a JSON structure as follows:

{
    "softwareNameAndVersion": "NamSorAPIv2.0.14B01",
    "softwareVersion": [
        2,
        0,
        14
    ]
}

Software Version code sample for python:

import requests

url = "https://v2.namsor.com/NamSorAPIv2/api2/json/softwareVersion"

headers = {
"X-API-KEY": "your-api-key",
"Accept": "application/json"
}

response = requests.request("GET", url, headers=headers)

print(response.text)

The above command produces a JSON structure as follows:

{
    "softwareNameAndVersion": "NamSorAPIv2.0.14B01",
    "softwareVersion": [
        2,
        0,
        14
    ]
}

Software Version code sample for shell:

curl --request GET \ 
--url https://v2.namsor.com/NamSorAPIv2/api2/json/softwareVersion \
--header 'X-API-KEY: your-api-key' \
--header 'Accept: application/json'

The above command produces a JSON structure as follows:

{
    "softwareNameAndVersion": "NamSorAPIv2.0.14B01",
    "softwareVersion": [
        2,
        0,
        14
    ]
}

Software Version code sample for java:

HttpResponse<String> response = Unirest.get("https://v2.namsor.com/NamSorAPIv2/api2/json/softwareVersion")
.header("X-API-KEY", "your-api-key")
.header("Accept", "application/json")
.asString();

The above command produces a JSON structure as follows:

{
    "softwareNameAndVersion": "NamSorAPIv2.0.14B01",
    "softwareVersion": [
        2,
        0,
        14
    ]
}

Api Status

GET
  • Detail: Provides the existing version of Namsor software and the condition of the classifiers (API services).
  • Cost: 1 credit per name.

HTTP request:

http request
GET
https://v2.namsor.com/NamSorAPIv2/api2/json/apiStatus
Request header:
PropertyRequiredDetail
X-API-KEYRequiredYour API key for Namsor's services.
Response:
NameTypeDetail
softwareVersionObjectDetails about the software's version.
{...}.softwareNameAndVersionStringAPI name along with its version.
{...}.softwareVersionArraySoftware version in array format [major, minor, patch].
classifiersArray of objectsCatalog of accessible classifiers.
[{...}].classifierNameStringService or classifier name.
[{...}].servingBooleanTrue: the classifier is active and processing requests (has achieved minimal learning and is not shutting down).
[{...}].learningBooleanTrue: classifier is learning.
[{...}].shuttingDownBooleanTrue: classifier is shutting down.
[{...}].probabilityCalibratedBooleanTrue: the classifier has completed its initial learning phase and provides calibrated probabilities. When it's in the initial learning stage, calibrated probabilities are set to -1.
Code sample:

Api Status code sample for javascript:

const response = await fetch("https://v2.namsor.com/NamSorAPIv2/api2/json/apiStatus", {
"method": "GET",
"headers": {
  "X-API-KEY": "your-api-key",
  "Accept": "application/json"
}
});

if (response.ok) {
const data = await response.json(); // Extract JSON data from response
console.log(data); // View data in the console
} else {
console.error("The request failed with status:", response.status, response);
}

The above command produces a JSON structure as follows:

{
    "softwareVersion": {
        "softwareNameAndVersion": "NamSorAPIv2.0.28B05",
        "softwareVersion": [
            2,
            0,
            28
        ]
    },
    "classifiers": [
        {
            "classifierName": "personalname_gender",
            "serving": true,
            "learning": true,
            "shuttingDown": false,
            "probabilityCalibrated": true
        },
        {
            "classifierName": "personalfullname_gender",
            "serving": true,
            "learning": true,
            "shuttingDown": false,
            "probabilityCalibrated": true
        }
    ]
}

Api Status code sample for python:

import requests

url = "https://v2.namsor.com/NamSorAPIv2/api2/json/apiStatus"

headers = {
"X-API-KEY": "your-api-key",
"Accept": "application/json"
}

response = requests.request("GET", url, headers=headers)

print(response.text)

The above command produces a JSON structure as follows:

{
    "softwareVersion": {
        "softwareNameAndVersion": "NamSorAPIv2.0.28B05",
        "softwareVersion": [
            2,
            0,
            28
        ]
    },
    "classifiers": [
        {
            "classifierName": "personalname_gender",
            "serving": true,
            "learning": true,
            "shuttingDown": false,
            "probabilityCalibrated": true
        },
        {
            "classifierName": "personalfullname_gender",
            "serving": true,
            "learning": true,
            "shuttingDown": false,
            "probabilityCalibrated": true
        }
    ]
}

Api Status code sample for shell:

curl --request GET \ 
--url https://v2.namsor.com/NamSorAPIv2/api2/json/apiStatus \
--header 'X-API-KEY: your-api-key' \
--header 'Accept: application/json'

The above command produces a JSON structure as follows:

{
    "softwareVersion": {
        "softwareNameAndVersion": "NamSorAPIv2.0.28B05",
        "softwareVersion": [
            2,
            0,
            28
        ]
    },
    "classifiers": [
        {
            "classifierName": "personalname_gender",
            "serving": true,
            "learning": true,
            "shuttingDown": false,
            "probabilityCalibrated": true
        },
        {
            "classifierName": "personalfullname_gender",
            "serving": true,
            "learning": true,
            "shuttingDown": false,
            "probabilityCalibrated": true
        }
    ]
}

Api Status code sample for java:

HttpResponse<String> response = Unirest.get("https://v2.namsor.com/NamSorAPIv2/api2/json/apiStatus")
.header("X-API-KEY", "your-api-key")
.header("Accept", "application/json")
.asString();

The above command produces a JSON structure as follows:

{
    "softwareVersion": {
        "softwareNameAndVersion": "NamSorAPIv2.0.28B05",
        "softwareVersion": [
            2,
            0,
            28
        ]
    },
    "classifiers": [
        {
            "classifierName": "personalname_gender",
            "serving": true,
            "learning": true,
            "shuttingDown": false,
            "probabilityCalibrated": true
        },
        {
            "classifierName": "personalfullname_gender",
            "serving": true,
            "learning": true,
            "shuttingDown": false,
            "probabilityCalibrated": true
        }
    ]
}

Available Services

GET
  • Detail: Provides a roster of API services (classifiers) along with their respective credit charges for usage.
  • Cost: 1 credit per name.

HTTP request:

http request
GET
https://v2.namsor.com/NamSorAPIv2/api2/json/apiServices
Request header:
PropertyRequiredDetail
X-API-KEYRequiredYour API key for Namsor's services.
Response:
NameTypeDetail
apiServicesArray of objectsCatalog of accessible API functions.
[{...}].serviceNameStringService or classifier name.
[{...}].serviceGroupStringCategory to which the service or classifier belong to.
[{...}].costInUnitsNumberService usage fee measured in credits.
Code sample:

Available Services code sample for javascript:

const response = await fetch("https://v2.namsor.com/NamSorAPIv2/api2/json/apiServices", {
"method": "GET",
"headers": {
  "X-API-KEY": "your-api-key",
  "Accept": "application/json"
}
});

if (response.ok) {
const data = await response.json(); // Extract JSON data from response
console.log(data); // View data in the console
} else {
console.error("The request failed with status:", response.status, response);
}

The above command produces a JSON structure as follows:

{
    "apiServices": [
        {
            "serviceName": "personalname_gender",
            "serviceGroup": "gender",
            "costInUnits": 1
        },
        {
            "serviceName": "personalfullname_gender",
            "serviceGroup": "gender",
            "costInUnits": 1
        }
    ]
}

Available Services code sample for python:

import requests

url = "https://v2.namsor.com/NamSorAPIv2/api2/json/apiServices"

headers = {
"X-API-KEY": "your-api-key",
"Accept": "application/json"
}

response = requests.request("GET", url, headers=headers)

print(response.text)

The above command produces a JSON structure as follows:

{
    "apiServices": [
        {
            "serviceName": "personalname_gender",
            "serviceGroup": "gender",
            "costInUnits": 1
        },
        {
            "serviceName": "personalfullname_gender",
            "serviceGroup": "gender",
            "costInUnits": 1
        }
    ]
}

Available Services code sample for shell:

curl --request GET \ 
--url https://v2.namsor.com/NamSorAPIv2/api2/json/apiServices \
--header 'X-API-KEY: your-api-key' \
--header 'Accept: application/json'

The above command produces a JSON structure as follows:

{
    "apiServices": [
        {
            "serviceName": "personalname_gender",
            "serviceGroup": "gender",
            "costInUnits": 1
        },
        {
            "serviceName": "personalfullname_gender",
            "serviceGroup": "gender",
            "costInUnits": 1
        }
    ]
}

Available Services code sample for java:

HttpResponse<String> response = Unirest.get("https://v2.namsor.com/NamSorAPIv2/api2/json/apiServices")
.header("X-API-KEY", "your-api-key")
.header("Accept", "application/json")
.asString();

The above command produces a JSON structure as follows:

{
    "apiServices": [
        {
            "serviceName": "personalname_gender",
            "serviceGroup": "gender",
            "costInUnits": 1
        },
        {
            "serviceName": "personalfullname_gender",
            "serviceGroup": "gender",
            "costInUnits": 1
        }
    ]
}

Taxonomy Classes

GET
  • Detail: Delivers a roster of potential enumerators associated with a specific classifier.
  • Cost: 1 credit per name.

HTTP request:

http request
GET
https://v2.namsor.com/NamSorAPIv2/api2/json/taxonomyClasses/{classifierName}
Request header:
PropertyRequiredDetail
X-API-KEYRequiredYour API key for Namsor's services.
Request parameters
NameTypeRequiredDetail
classifierNameStringRequiredClassifier's name.
Response:
NameTypeDetail
classifierNameStringProvided classifier's name.
taxonomyClassesArrayClassifier's numerators list.
Code sample:

Taxonomy Classes code sample for javascript:

const response = await fetch("https://v2.namsor.com/NamSorAPIv2/api2/json/taxonomyClasses/personalname_gender", {
"method": "GET",
"headers": {
  "X-API-KEY": "your-api-key",
  "Accept": "application/json"
}
});

if (response.ok) {
const data = await response.json(); // Extract JSON data from response
console.log(data); // View data in the console
} else {
console.error("The request failed with status:", response.status, response);
}

The above command produces a JSON structure as follows:

{
    "classifierName": "personalname_gender",
    "taxonomyClasses": ["female", "male"]
}

Taxonomy Classes code sample for python:

import requests

url = "https://v2.namsor.com/NamSorAPIv2/api2/json/taxonomyClasses/personalname_gender"

headers = {
"X-API-KEY": "your-api-key",
"Accept": "application/json"
}

response = requests.request("GET", url, headers=headers)

print(response.text)

The above command produces a JSON structure as follows:

{
    "classifierName": "personalname_gender",
    "taxonomyClasses": ["female", "male"]
}

Taxonomy Classes code sample for shell:

curl --request GET \ 
--url https://v2.namsor.com/NamSorAPIv2/api2/json/taxonomyClasses/personalname_gender \
--header 'X-API-KEY: your-api-key' \
--header 'Accept: application/json'

The above command produces a JSON structure as follows:

{
    "classifierName": "personalname_gender",
    "taxonomyClasses": ["female", "male"]
}

Taxonomy Classes code sample for java:

HttpResponse<String> response = Unirest.get("https://v2.namsor.com/NamSorAPIv2/api2/json/taxonomyClasses/personalname_gender")
.header("X-API-KEY", "your-api-key")
.header("Accept", "application/json")
.asString();

The above command produces a JSON structure as follows:

{
    "classifierName": "personalname_gender",
    "taxonomyClasses": ["female", "male"]
}

Api Usage

GET
  • Detail: Delivers details about your subscription package, billing cycle, and present API consumption.
  • Cost: 1 credit per name.

HTTP request:

http request
GET
https://v2.namsor.com/NamSorAPIv2/api2/json/apiUsage
Request header:
PropertyRequiredDetail
X-API-KEYRequiredYour API key for Namsor's services.
Response:
NameTypeDetail
subscriptionObjectDetails about the subscription.
{...}.apiKeyStringYour API key for Namsor.
{...}.planStartedNumberPlan's beginning date in UNIX timestamp.
{...}.priorPlanStartedNumberThe date when the prior plan was activated.
{...}.planEndedNumberTermination date of the plan in UNIX timestamp.
{...}.taxRateNumberTax rate applied to this subscription.
{...}.planNameStringSubscription plan's name.
{...}.planBaseFeesKeyStringPlan key as per Stripe.
{...}.planStatusStringStatus of the subscription.
{...}.planQuotaNumberOverall credit count linked with this subscription.
{...}.priceUSDNumberAmount in US dollars ($).
{...}.priceOverageUSDNumberAdditional charge in US dollars ($).
{...}.priceNumberAmount in the selected currency of the user.
{...}.priceOverageNumberAdditional charge in the user's selected currency.
{...}.currencyStringThe currency selected by the user.
{...}.currencyFactorNumberFor currencies like USD, GBP, and EUR, the value is 1.
{...}.stripeCustomerIdStringDistinctive identifier for Stripe Customer.
{...}.stripeStatusStringStatus on Stripe.
{...}.stripeSubscriptionStringStripe's unique subscription ID.
{...}.userIdStringUnique user identification code.
billingPeriodObjectInvoice details.
{...}.apiKeyStringYour API key for Namsor.
{...}.subscriptionStartedNumberStart date of the subscription, represented in UNIX timestamp.
{...}.periodStartedNumberBeginning date of the subscription term, in UNIX timestamp.
{...}.periodEndedNumberDate when the subscription ends, in UNIX timestamp.
{...}.stripeCurrentPeriodEndNumberEnd date of the existing plan on Stripe.
{...}.stripeCurrentPeriodStartNumberStart date of the existing plan on Stripe.
{...}.billingStatusStringBilling status for the ongoing period.
{...}.usageNumberTotal credits consumed to date.
{...}.softLimitNumberPresent soft limit for this billing term.
{...}.hardLimitNumberPresent hard limit for this billing term.
overageExclTaxNumberAdditional charges before tax.
overageInclTaxNumberAdditional charges after adding tax (when relevant).
overageCurrencyStringAdditional charges currency type.
overageQuantityNumberExcess amount over the monthly limit for the ongoing subscription, represented in credits.
Code sample:

Api Usage code sample for javascript:

const response = await fetch("https://v2.namsor.com/NamSorAPIv2/api2/json/apiUsage", {
"method": "GET",
"headers": {
  "X-API-KEY": "your-api-key",
  "Accept": "application/json"
}
});

if (response.ok) {
const data = await response.json(); // Extract JSON data from response
console.log(data); // View data in the console
} else {
console.error("The request failed with status:", response.status, response);
}

The above command produces a JSON structure as follows:

{
    "subscription": {
        "apiKey": "v7menlws2yo8r2mnm10f3uai53tmblth",
        "planStarted": 1602705605199,
        "priorPlanStarted": 0,
        "planEnded": 0,
        "taxRate": 0,
        "planName": "BASIC",
        "planBaseFeesKey": "namsorapi_v2_BASIC_usd",
        "planStatus": "OPEN",
        "planQuota": 5000,
        "priceUSD": 0,
        "priceOverageUSD": 0.005,
        "price": 0,
        "priceOverage": 0.005,
        "currency": "usd",
        "currencyFactor": 1,
        "stripeCustomerId": null,
        "stripeStatus": null,
        "stripeSubscription": null,
        "userId": "GYUAUzTKPusJ3aqUH5gQte0dOQCr"
    },
    "billingPeriod": {
        "apiKey": "v7menlws2yo8r2mnm10f3uai53tmblth",
        "subscriptionStarted": 1602705635199,
        "periodStarted": 1618430435199,
        "periodEnded": 0,
        "stripeCurrentPeriodEnd": 0,
        "stripeCurrentPeriodStart": 0,
        "billingStatus": "OPEN",
        "usage": 34,
        "softLimit": 3000,
        "hardLimit": 5000
    },
    "overageExclTax": 0,
    "overageInclTax": 0,
    "overageCurrency": null,
    "overageQuantity": 0
}

Api Usage code sample for python:

import requests

url = "https://v2.namsor.com/NamSorAPIv2/api2/json/apiUsage"

headers = {
"X-API-KEY": "your-api-key",
"Accept": "application/json"
}

response = requests.request("GET", url, headers=headers)

print(response.text)

The above command produces a JSON structure as follows:

{
    "subscription": {
        "apiKey": "v7menlws2yo8r2mnm10f3uai53tmblth",
        "planStarted": 1602705605199,
        "priorPlanStarted": 0,
        "planEnded": 0,
        "taxRate": 0,
        "planName": "BASIC",
        "planBaseFeesKey": "namsorapi_v2_BASIC_usd",
        "planStatus": "OPEN",
        "planQuota": 5000,
        "priceUSD": 0,
        "priceOverageUSD": 0.005,
        "price": 0,
        "priceOverage": 0.005,
        "currency": "usd",
        "currencyFactor": 1,
        "stripeCustomerId": null,
        "stripeStatus": null,
        "stripeSubscription": null,
        "userId": "GYUAUzTKPusJ3aqUH5gQte0dOQCr"
    },
    "billingPeriod": {
        "apiKey": "v7menlws2yo8r2mnm10f3uai53tmblth",
        "subscriptionStarted": 1602705635199,
        "periodStarted": 1618430435199,
        "periodEnded": 0,
        "stripeCurrentPeriodEnd": 0,
        "stripeCurrentPeriodStart": 0,
        "billingStatus": "OPEN",
        "usage": 34,
        "softLimit": 3000,
        "hardLimit": 5000
    },
    "overageExclTax": 0,
    "overageInclTax": 0,
    "overageCurrency": null,
    "overageQuantity": 0
}

Api Usage code sample for shell:

curl --request GET \ 
--url https://v2.namsor.com/NamSorAPIv2/api2/json/apiUsage \
--header 'X-API-KEY: your-api-key' \
--header 'Accept: application/json'

The above command produces a JSON structure as follows:

{
    "subscription": {
        "apiKey": "v7menlws2yo8r2mnm10f3uai53tmblth",
        "planStarted": 1602705605199,
        "priorPlanStarted": 0,
        "planEnded": 0,
        "taxRate": 0,
        "planName": "BASIC",
        "planBaseFeesKey": "namsorapi_v2_BASIC_usd",
        "planStatus": "OPEN",
        "planQuota": 5000,
        "priceUSD": 0,
        "priceOverageUSD": 0.005,
        "price": 0,
        "priceOverage": 0.005,
        "currency": "usd",
        "currencyFactor": 1,
        "stripeCustomerId": null,
        "stripeStatus": null,
        "stripeSubscription": null,
        "userId": "GYUAUzTKPusJ3aqUH5gQte0dOQCr"
    },
    "billingPeriod": {
        "apiKey": "v7menlws2yo8r2mnm10f3uai53tmblth",
        "subscriptionStarted": 1602705635199,
        "periodStarted": 1618430435199,
        "periodEnded": 0,
        "stripeCurrentPeriodEnd": 0,
        "stripeCurrentPeriodStart": 0,
        "billingStatus": "OPEN",
        "usage": 34,
        "softLimit": 3000,
        "hardLimit": 5000
    },
    "overageExclTax": 0,
    "overageInclTax": 0,
    "overageCurrency": null,
    "overageQuantity": 0
}

Api Usage code sample for java:

HttpResponse<String> response = Unirest.get("https://v2.namsor.com/NamSorAPIv2/api2/json/apiUsage")
.header("X-API-KEY", "your-api-key")
.header("Accept", "application/json")
.asString();

The above command produces a JSON structure as follows:

{
    "subscription": {
        "apiKey": "v7menlws2yo8r2mnm10f3uai53tmblth",
        "planStarted": 1602705605199,
        "priorPlanStarted": 0,
        "planEnded": 0,
        "taxRate": 0,
        "planName": "BASIC",
        "planBaseFeesKey": "namsorapi_v2_BASIC_usd",
        "planStatus": "OPEN",
        "planQuota": 5000,
        "priceUSD": 0,
        "priceOverageUSD": 0.005,
        "price": 0,
        "priceOverage": 0.005,
        "currency": "usd",
        "currencyFactor": 1,
        "stripeCustomerId": null,
        "stripeStatus": null,
        "stripeSubscription": null,
        "userId": "GYUAUzTKPusJ3aqUH5gQte0dOQCr"
    },
    "billingPeriod": {
        "apiKey": "v7menlws2yo8r2mnm10f3uai53tmblth",
        "subscriptionStarted": 1602705635199,
        "periodStarted": 1618430435199,
        "periodEnded": 0,
        "stripeCurrentPeriodEnd": 0,
        "stripeCurrentPeriodStart": 0,
        "billingStatus": "OPEN",
        "usage": 34,
        "softLimit": 3000,
        "hardLimit": 5000
    },
    "overageExclTax": 0,
    "overageInclTax": 0,
    "overageCurrency": null,
    "overageQuantity": 0
}
© Gender Guesser Applied Onomastics | NamSor SAS is a French Limited Liability Company, Reg. 81148844400019 - VAT FR84811488444 | Data Protection Reg. 1876223
Visa
Mastercard
California flag
CCPA compliant
European Union flag
GPDR compliant