---
title: "[USES 10 UNITS PER NAME] Infer a US resident's likely race/ethnicity according to US Census taxonomy W_NL (white, non latino), HL (hispano latino),  A (asian, non latino), B_NL (black, non latino). Optionally add header X-OPTION-USRACEETHNICITY-TAXONOMY: USRACEETHNICITY-6CLASSES for two additional classes, AI_AN (American Indian or Alaskan Native) and PI (Pacific Islander)."
method: GET
path: "/api2/json/usRaceEthnicity/{firstName}/{lastName}"
tags: ["personal"]
---

# [USES 10 UNITS PER NAME] Infer a US resident's likely race/ethnicity according to US Census taxonomy W_NL (white, non latino), HL (hispano latino),  A (asian, non latino), B_NL (black, non latino). Optionally add header X-OPTION-USRACEETHNICITY-TAXONOMY: USRACEETHNICITY-6CLASSES for two additional classes, AI_AN (American Indian or Alaskan Native) and PI (Pacific Islander).

`GET /api2/json/usRaceEthnicity/{firstName}/{lastName}`

## Path parameters

- `firstName` string, required
- `lastName` string, required

## Response `200`

a US resident's likely race/ethnicity : W_NL (white, non latino), HL (hispano latino),  A (asian, non latino), B_NL (black, non latino), AI_AN (American Indian or Alaskan Native*) and PI (Pacific Islander*). *optionally

- FirstLastNameUSRaceEthnicityOut — Represents the output of inferring the LIKELY US 'race/ethnicity' from a personal name, given US country of residence and (optionally) a ZIP5 code.
  - `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)
  - `raceEthnicityAlt` 'W_NL' | 'HL' | 'A' | 'B_NL' | 'AI_AN' | 'PI' — Second most likely US 'race'/ethnicity
  - `raceEthnicity` 'W_NL' | 'HL' | 'A' | 'B_NL' | 'AI_AN' | 'PI' — Most likely US 'race'/ethnicity
  - `score` number, double — Higher score is better, but score is not normalized. Use calibratedProbability if available.
  - `raceEthnicitiesTop` string[] — List 'race'/ethnicities
  - `probabilityCalibrated` number, double — The calibrated probability for raceEthnicity to have been guessed correctly. -1 = still calibrating.
  - `probabilityAltCalibrated` number, double — The calibrated probability for raceEthnicity OR raceEthnicityAlt 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

---

[API](https://skmtc.net/namsor/apis/namsor-api-v2.md) · [All operations](https://skmtc.net/namsor/apis/namsor-api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/namsor/namsor-api-v2/revisions/305e4f6eeaf5/schema)
