---
title: "[USES 20 UNITS PER NAME] Infer the likely ethnicity/diaspora of up to 100 personal names, given a country of residence ISO2 code (ex. US, CA, AU, NZ etc.)"
method: POST
path: "/api2/json/diasporaFullBatch"
tags: ["personal"]
---

# [USES 20 UNITS PER NAME] Infer the likely ethnicity/diaspora of up to 100 personal names, given a country of residence ISO2 code (ex. US, CA, AU, NZ etc.)

`POST /api2/json/diasporaFullBatch`

## Request body

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

## Response `200`

A list of diaspora / ethnicity given a name and residency.

- BatchPersonalNameDiasporaedOut — Represents the output of inferring the LIKELY ethnicity from a personal name, given an country of residence.
  - `personalNames` PersonalNameDiasporaedOut[] — Classified diaspora names
    - `script` string
    - `id` string
    - `explanation` string
    - `name` string — The input name.
    - `score` number, double — Compatibility to NamSor_v1 Diaspora score value. Higher score is better, but score is not normalized. Use calibratedProbability if available.
    - `ethnicityAlt` string — The second best alternative ethnicity
    - `ethnicity` string — The most likely ethnicity
    - `lifted` boolean — Indicates if the output ethnicity is based on machine learning only, or further lifted as a known fact by a country-specific rule. Let us know if you believe ethnicity is incorrect on a specific case where lifted is true.
    - `countryIso2` string — From input data, the countryIso2 of geographic context (US,CA etc.)
    - `ethnicitiesTop` string[] — List most likely ethnicities (top 10)
    - `probabilityCalibrated` number, double — The calibrated probability for ethnicity to have been guessed correctly. -1 = still calibrating.
    - `probabilityAltCalibrated` number, double — The calibrated probability for ethnicity OR ethnicityAlt to have been guessed correctly. -1 = still calibrating.
    - `religionStats` ReligionStatOut[] — Geographic religious statistics, assuming ethnicity is correctly predicted.
      - `religion` string
      - `pct` number, double
    - `religionStatsAlt` ReligionStatOut[] — Geographic religious statistics, for country best alternative.
      - `religion` string
      - `pct` number, double

## 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)
