---
title: "Infer the likely gender of a Chinese name in LATIN (Pinyin)."
method: GET
path: "/api2/json/genderChineseNamePinyin/{chineseSurnameLatin}/{chineseGivenNameLatin}"
tags: ["chinese"]
---

# Infer the likely gender of a Chinese name in LATIN (Pinyin).

`GET /api2/json/genderChineseNamePinyin/{chineseSurnameLatin}/{chineseGivenNameLatin}`

## Request

- Base URL: `https://v2.namsor.com/NamSorAPIv2`
- URL: `https://v2.namsor.com/NamSorAPIv2/api2/json/genderChineseNamePinyin/{chineseSurnameLatin}/{chineseGivenNameLatin}`
- Auth: API key in header `X-API-KEY`

## Path parameters

- `chineseSurnameLatin` string, required
- `chineseGivenNameLatin` string, required

## Response `200`

A genderized name.

- FirstLastNameGenderedOut: Represents the output of inferring the LIKELY gender from a personal name.
  - `script` string
  - `id` string
  - `explanation` string
  - `firstName` string: The first name (also known as given name)
  - `lastName` string: The last name (also known as family name, or surname)
  - `likelyGender` 'male' | 'female' | 'unknown': Most likely gender
  - `genderScale` number, double: Compatibility to NamSor_v1 Gender Scale M[-1..U..+1]F value.
  - `score` number, double: Compatibility to NamSor_v1 Gender score value. Higher score is better, but score is not normalized. Use calibratedProbability if available.
  - `probabilityCalibrated` number, double: The calibrated probability for inferred gender to have been guessed correctly. -1 = still calibrating.

## Other responses

- `401`: Missing or incorrect API Key
- `403`: Email not Verified, or API Limit Reached, or API Key Disabled
- `429`: Too Many Requests

## Changes

- **2025-05-16** `6297d39b756d`: 2 info
  - added the non-success response with the status `429`
  - added the optional property `explanation` to the response with the `200` status

[Operation history](https://skmtc.dev/namsor/apis/namsor-api-v2/changes/api2/json/genderChineseNamePinyin/:chineseSurnameLatin/:chineseGivenNameLatin/get.md)

---

[API](https://skmtc.dev/namsor/apis/namsor-api-v2.md) - [All operations](https://skmtc.dev/namsor/apis/namsor-api-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/namsor/apis/namsor-api-v2/revisions/305e4f6eeaf5?raw)
