---
title: "[USES 10 UNITS PER NAME] Infer up-to 100 US resident's likely race/ethnicity according to US Census taxonomy. Output is 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: POST
path: "/api2/json/usRaceEthnicityFullBatch"
tags: ["personal"]
---

# [USES 10 UNITS PER NAME] Infer up-to 100 US resident's likely race/ethnicity according to US Census taxonomy. Output is 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).

`POST /api2/json/usRaceEthnicityFullBatch`

## Request body

- BatchPersonalNameGeoIn
  - `personalNames` PersonalNameGeoIn[]
    - `id` string
    - `name` string
    - `countryIso2` string

## Response `200`

A list of 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

- BatchPersonalNameUSRaceEthnicityOut — Represents the output of inferring the LIKELY US race/ethnicity from a list of personal names.
  - `personalNames` PersonalNameUSRaceEthnicityOut[] — Classified origined names
    - `script` string
    - `id` string
    - `explanation` string
    - `name` string — The input name.
    - `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

- `400` — Bad request (ex. too many names)
- `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/versions/305e4f6eeaf5/schema)
