---
title: "[USES 10 UNITS PER NAME] Infer the likely religion of a personal first/last name. NB: only for INDIA (as of current version)."
method: GET
path: "/api2/json/religion/{countryIso2}/{subDivisionIso31662}/{firstName}/{lastName}"
tags: ["personal"]
---

# \[USES 10 UNITS PER NAME\] Infer the likely religion of a personal first/last name. NB: only for INDIA (as of current version).

`GET /api2/json/religion/{countryIso2}/{subDivisionIso31662}/{firstName}/{lastName}`

## Request

- Base URL: `https://v2.namsor.com/NamSorAPIv2`
- URL: `https://v2.namsor.com/NamSorAPIv2/api2/json/religion/{countryIso2}/{subDivisionIso31662}/{firstName}/{lastName}`
- Auth: API key in header `X-API-KEY`

## Path parameters

- `countryIso2` string, required
- `subDivisionIso31662` string, required
- `firstName` string, required
- `lastName` string, required

## Response `200`

A religion-coded name.

- FirstLastNameReligionedOut: Represents the output of inferring the LIKELY religion from a personal Indian first/last 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)
  - `religion` string: Most likely religion
  - `religionAlt` string: Second best alternative : religion
  - `religionsTop` string[]: List countries (top 10)
  - `score` number, double: Compatibility to NamSor_v1 Origin score value. Higher score is better, but score is not normalized. Use calibratedProbability if available.
  - `probabilityCalibrated` number, double: The calibrated probability for caste to have been guessed correctly. -1 = still calibrating.
  - `probabilityAltCalibrated` number, double: The calibrated probability for caste OR casteAlt 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

- **2026-06-08** `e3204014b530`: 1 info
  - api operation id `religion_1` removed and replaced with `religion_2`
- **2026-02-08** `1bd8e24ffd8d`: 1 info
  - api operation id `religion_2` removed and replaced with `religion_1`
- **2025-05-16** `6297d39b756d`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/namsor/apis/namsor-api-v2/changes/api2/json/religion/:countryIso2/:subDivisionIso31662/:firstName/:lastName/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)
