> ## Documentation Index
> Fetch the complete documentation index at: https://docs.repdata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Duplicate Entrance Score

> Learn how the Duplicate Entrance Score detects duplicate survey entrants using IP and/or demographics.

## What is the Duplicate Entrance Score?

The **Duplicate Entrance Score (DES)** detects whether a respondent is likely a duplicate of another entrant in the same survey. It compares **IP address** against earlier respondents in the survey, and/or **demographics** against peers who entered shortly before. You can run it as an IP-only check, a demographics check, or both.

DES is available in the **Quick Import** and on **API v3**. It is not supported on v1/v2 `addRespondent` requests.

## High-level checks performed

* Needs **either** an IP **or** at least **4** demographic fields to compute a valid score. IP-only is enough for the IP duplicate check. No IP and fewer than 4 demographics is accepted but scored as invalid (`N/A`).
* Accepts **up to 10** demographics. Each demographic `type` must be unique (use custom type strings instead of repeating `"other"`).
* IP is compared against earlier respondents in the same survey. If any share the same IP, the score is **0** (`DUPLICATE_IP`) and matching respondent IDs are returned.
* Demographics are compared against peers from the last **15 minutes** (up to a minimum of **10** peers when available; fewer peers still compared).
* If no peers exist (first entrant in the window), the score is **100** (`VALID_ENTRANT`).
* Otherwise, demographics are compared per peer. Exact matches keep a low (duplicate-like) score; similar age / year of birth can add a limited penalty; any hard mismatch treats that peer as different. The final score is the **minimum** over peers.
* Scores **below 40** are categorized as `DUPLICATE_ENTRANT`; otherwise `VALID_ENTRANT`.
* After a **Quick Import**, ReDem also flags the **first respondent** in a `DUPLICATE_ENTRANT` chain. Previously that original entrant stayed `VALID_ENTRANT` even though later respondents listed them as a duplicate.

## Demographic types

`type` is a free-form string. Any custom label is allowed and compared with **exact** match (case-insensitive after trim), except the age-like types below.

**Recommended `type` values**

| `type` | Notes |
| - | - |
| `age` | Age-like similarity (see below) |
| `yearOfBirth` | Age-like similarity (see below) |
| `ageRange` | Exact match |
| `gender` | Exact match |
| `country` | Exact match |
| `city` | Exact match |
| `zip` | Exact match |
| `ethnicity` | Exact match |
| `salaryRange` | Exact match |
| `jobTitle` | Exact match |
| `other` | Exact match; prefer a specific custom type string when possible |

**Age-like types (`age`, `yearOfBirth`)**

These are the only types that use similarity instead of exact match:

* Numeric answers within **±3** count as **similar** (adds a limited score penalty once per peer, even if both `age` and `yearOfBirth` are similar)
* Exact numeric matches count as **same**
* Non-numeric or larger differences count as **different** (that peer is treated as fully different)

All other types — including recommended values above and any custom string — always use exact match.

## Categories

| Category | Meaning |
| - | - |
| `VALID_ENTRANT` | No strong evidence of a duplicate entrance |
| `DUPLICATE_ENTRANT` | Demographics look highly similar to a recent peer |
| `DUPLICATE_IP` | Same IP as an earlier respondent in the survey |
| `N/A` | Score could not be computed (for example no IP and fewer than 4 demographics, or the check was unavailable) |

## Default cleaning

When cleaning is enabled with recommended settings:

* Exclude respondents with a DES score **below 40**
* Category-based DES exclusions (`DUPLICATE_IP`, `DUPLICATE_ENTRANT`) are **off** by default

## How to use the DES?

### Quick Import

In the Quick Import, add the **Duplicate Entrance Score** quality check and map an **IP** column, demographic columns (at least **4**, up to **10**), or both. IP-only is enough for the IP duplicate check. Column pickers show **Header ID** and **Question Text**, and both are searchable.

When you select DES, ReDem recommends which demographic questions to use. Review and adjust the suggestions as needed. Your mapping is kept when you change quality checks, add respondents, or reuse a previous survey’s setup. See [Quick Import](https://docs.repdata.com/redem/features/quick-import.md).

### API

Send a single DES data point on [`POST /v3/addRespondent`](https://docs.repdata.com/redem/api-reference/endpoints/v3/addRespondent) with optional `entranceTime` (defaults to the current timestamp if omitted), optional `ip`, and an optional `demographics` array. Provide an IP, at least 4 demographics, or both. Only **one** DES data point is allowed per respondent (`dataPointId` defaults to `"DES"`).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.