# OIG exclusion screening

> POST /oig/exclusion screens an NPI or a name against the HHS OIG List of Excluded Individuals/Entities (LEIE) and returns scored matches with the exclusion type and date.

`POST https://api.qelka.com/v1/oig/exclusion`

Screen a health care provider, an employee or a supplier against the List of Excluded Individuals/Entities (LEIE) of the HHS Office of Inspector General (OIG): the people and businesses excluded from Medicare, Medicaid and the other federal health care programs. Send an NPI for an exact check, or a name for a fuzzy one, and get back the matching entries with the exclusion type, its legal basis and its date. Each screening costs 1 credit, match or no match; errors and test keys are never billed.

> **Warning: A match is a lead, not a verdict**
>
> OIG asks that a match be confirmed on its [online search](https://exclusions.oig.hhs.gov/) with the person's Social Security Number or the business's Employer Identification Number, which the downloadable list does not include. Every response links to that search in `verify_url`, and `legal_determination` is always `false`.

## Request

Send either `npi` or `name`, never both. With a name, add the state and the date of birth when you have them: a detail that agrees with an entry raises its score, and one that disagrees lowers it.

| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| `npi` | string | One of `npi` or `name` | none | NPI to look for, sent as 1 to 20 characters: spaces and dashes are removed, and it must have 10 digits, start with 1 or 2 and pass the check digit test. |
| `name` | string | One of `npi` or `name` | none | Name of a person, first and last name in any order, or of a business, 2 to 200 characters. Case, accents and legal forms such as Inc or LLC are ignored. |
| `state` | string | No | none | Two-letter US state code of the address you know. Compared with the state of each entry. |
| `birth_date` | string | No | none | Date of birth of a person, `YYYY-MM-DD` or `YYYY`. Compared with the date of birth of each individual entry. |
| `min_score` | number | No | `0.88` | Name screening: lowest score an entry needs to be returned, from 0.75 to 1. An NPI match always scores 1. |
| `fresh` | boolean | No | `false` | Accepted so that every endpoint takes the same fields. Screenings are never cached, so it changes nothing here. |

A body with both `npi` and `name`, or with neither, is a `400 invalid_request`. The screening reads the copy of the list the API keeps, so it does not wait for OIG; every snippet still sets a 30-second client timeout.

```bash title="cURL"
curl https://api.qelka.com/v1/oig/exclusion \
  --max-time 30 \
  -H "Authorization: Bearer $QELKA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"npi": "1972902351"}'
```
```javascript title="Node.js"
const response = await fetch('https://api.qelka.com/v1/oig/exclusion', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.QELKA_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({ npi: '1972902351' }),
  signal: AbortSignal.timeout(30_000),
})
const result = await response.json()
console.log(result)
```
```python title="Python"
import os

import requests

api_key = os.environ["QELKA_API_KEY"]
response = requests.post(
    "https://api.qelka.com/v1/oig/exclusion",
    headers={"Authorization": f"Bearer {api_key}"},
    json={"npi": "1972902351"},
    timeout=30,
)
result = response.json()
print(result)
```
```php title="PHP"
<?php
$ch = curl_init('https://api.qelka.com/v1/oig/exclusion');
curl_setopt_array($ch, [
    CURLOPT_POST => true,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        'Authorization: Bearer ' . getenv('QELKA_API_KEY'),
        'Content-Type: application/json',
    ],
    CURLOPT_POSTFIELDS => json_encode(['npi' => '1972902351']),
    CURLOPT_TIMEOUT => 30,
]);
$result = json_decode(curl_exec($ch), true);
print_r($result);
```
```go title="Go"
package main

import (
	"bytes"
	"encoding/json"
	"fmt"
	"net/http"
	"os"
	"time"
)

func main() {
	payload, _ := json.Marshal(map[string]any{"npi": "1972902351"})
	request, _ := http.NewRequest(http.MethodPost, "https://api.qelka.com/v1/oig/exclusion", bytes.NewReader(payload))
	request.Header.Set("Authorization", "Bearer "+os.Getenv("QELKA_API_KEY"))
	request.Header.Set("Content-Type", "application/json")

	client := &http.Client{Timeout: 30 * time.Second}
	response, err := client.Do(request)
	if err != nil {
		panic(err)
	}
	defer response.Body.Close()

	var result map[string]any
	if err := json.NewDecoder(response.Body).Decode(&result); err != nil {
		panic(err)
	}
	fmt.Println(result)
}
```
```ruby title="Ruby"
require 'json'
require 'net/http'

uri = URI('https://api.qelka.com/v1/oig/exclusion')
request = Net::HTTP::Post.new(uri)
request['Authorization'] = "Bearer #{ENV.fetch('QELKA_API_KEY')}"
request['Content-Type'] = 'application/json'
request.body = JSON.generate({ npi: '1972902351' })

response = Net::HTTP.start(uri.host, uri.port, use_ssl: true, read_timeout: 30) do |http|
  http.request(request)
end
result = JSON.parse(response.body)
puts result
```

## Response

Every screening gets a `200`. Read `status`: `match`, `possible_match` or `no_match`.

| Field | Type | Description |
|---|---|---|
| `id` | string | Identifier of this screening: `lkp_` followed by 26 characters. |
| `object` | string | Always `oig_exclusion`. |
| `input` | string | The `npi` or `name` you sent. |
| `query` | object | What was compared. |
| `query.npi` | string or null | The NPI compared, spaces and dashes removed. `null` for a name screening. |
| `query.name` | string or null | The name as compared: lower case, accents removed, legal forms and titles such as Inc, LLC or Mr left out. `null` for an NPI screening. |
| `query.state` | string or null | The `state` you sent, upper case. |
| `query.birth_date` | string or null | The `birth_date` you sent. |
| `query.min_score` | number | The `min_score` used. |
| `status` | string | `match` when the NPI is on an entry of the list, `possible_match` when at least one entry's name scores `min_score` or more, `no_match` otherwise. |
| `matches` | array of objects | Up to 10 entries: for an NPI, every entry that carries it, most recent exclusion first; for a name, best score first. Empty when `status` is `no_match`. |
| `matches.id` | string | Identifier of the entry, `leie-` followed by letters and digits. It stays the same from one load of the list to the next while the entry does not change. |
| `matches.type` | string | `individual` or `entity`. |
| `matches.name` | string | First, middle and last name of an individual, or the business name of an entity, as OIG wrote it. |
| `matches.first_name` | string or null | Individuals only. |
| `matches.middle_name` | string or null | Individuals only. |
| `matches.last_name` | string or null | Individuals only. |
| `matches.business_name` | string or null | Business name. |
| `matches.category` | string or null | General category as OIG records it, such as `IND- LIC HC SERV PRO` or `OTHER BUSINESS`. |
| `matches.specialty` | string or null | Specialty as OIG records it, such as `NURSING PROFESSION` or `PHARMACY`. |
| `matches.npi` | string or null | The NPI on the entry, or `null` when it has none. |
| `matches.city` | string or null | City of the address at the time of the exclusion. |
| `matches.state` | string or null | State code of that address. |
| `matches.zip` | string or null | ZIP code of that address. |
| `matches.birth_year` | integer or null | Year of birth of an individual. The full date is compared with `birth_date` but never returned. |
| `matches.exclusion` | object | The exclusion. |
| `matches.exclusion.code` | string | Exclusion type as OIG codes it, such as `1128b4`. |
| `matches.exclusion.authority` | string | Section of the Social Security Act behind it, such as `1128(b)(4)`. |
| `matches.exclusion.description` | string or null | What the section covers, such as `License revocation, suspension or surrender`. |
| `matches.exclusion.mandatory` | boolean or null | `true` for the mandatory exclusions of section 1128(a), `false` for exclusions that are not mandatory, `null` when that is not known for the type. |
| `matches.exclusion.date` | string or null | Date the exclusion took effect, `YYYY-MM-DD`. |
| `matches.waiver` | object or null | A waiver OIG recorded for the exclusion. `null` when there is none. |
| `matches.waiver.date` | string or null | Date of the waiver. |
| `matches.waiver.state` | string or null | State the waiver applies to. |
| `matches.matched_by` | string | `npi` or `name`. |
| `matches.score` | number | From 0 to 1: `1` for an NPI match; for a name, the similarity of the names adjusted by the state and date of birth checks. |
| `matches.strength` | string | `strong` from 0.97, `medium` from 0.92, `weak` below. |
| `matches.checks` | object | How the details you sent compare with the entry. |
| `matches.checks.state` | string | `match`, `mismatch`, or `unknown` when you sent no state or the entry has none. |
| `matches.checks.birth_date` | string | `match`, `mismatch`, or `unknown` when you sent no date, the entry has none or it is a business. With `YYYY`, only the year is compared. |
| `list` | object | The LEIE file compared. |
| `list.entries` | integer | Number of entries in it. |
| `list.published` | string or null | Date OIG last updated the file, `YYYY-MM-DD`. |
| `list.loaded_at` | string | When the API loaded it, ISO 8601. |
| `verify_url` | string | OIG's online search, where a match is confirmed with an SSN or an EIN. |
| `legal_determination` | boolean | Always `false`: a screening aid, not a determination. |
| `credits_used` | integer | Credits debited for this call: 1 with a live key, `0` with a test key. |
| `cached` | boolean | Always `false`: screenings are never cached. |

```json title="Response"
{
  "id": "lkp_01M8CFQ9KB060BPP3GQMQP02X3",
  "object": "oig_exclusion",
  "input": "1972902351",
  "query": { "npi": "1972902351", "name": null, "state": null, "birth_date": null, "min_score": 0.88 },
  "status": "match",
  "matches": [
    {
      "id": "leie-3hyzx9i2cqpi",
      "type": "entity",
      "name": "101 FIRST CARE PHARMACY INC",
      "first_name": null,
      "middle_name": null,
      "last_name": null,
      "business_name": "101 FIRST CARE PHARMACY INC",
      "category": "OTHER BUSINESS",
      "specialty": "PHARMACY",
      "npi": "1972902351",
      "city": "NEW YORK",
      "state": "NY",
      "zip": "10040",
      "birth_year": null,
      "exclusion": {
        "code": "1128b8",
        "authority": "1128(b)(8)",
        "description": "Entity controlled by a sanctioned individual",
        "mandatory": false,
        "date": "2022-03-20"
      },
      "waiver": null,
      "matched_by": "npi",
      "score": 1,
      "strength": "strong",
      "checks": { "state": "unknown", "birth_date": "unknown" }
    }
  ],
  "list": { "entries": 84181, "published": "2026-11-10", "loaded_at": "2026-11-26T17:45:56.910Z" },
  "verify_url": "https://exclusions.oig.hhs.gov/",
  "legal_determination": false,
  "credits_used": 1,
  "cached": false
}
```

## Act on the status

| `status` | What it means | What to do |
|---|---|---|
| `match` | An entry of the list carries the NPI you sent. | Confirm on OIG's online search (`verify_url`) with the SSN or EIN before you act, and keep `list.published` with your records. |
| `possible_match` | At least one entry's name resembles the one you sent closely enough to reach `min_score`. | Review each match: compare `checks`, `birth_year`, `city`, `state` and `specialty` with what you know, then confirm on OIG's online search. Never decide on the score alone. |
| `no_match` | No entry carries the NPI, or no name reaches `min_score`. | Go ahead, and keep `list` with your records: it shows which file was compared. It is not a clearance. |

An NPI screening only finds the entries that carry that NPI, and most entries of the list carry none. To screen a provider thoroughly, screen the NPI and the name.

| `strength` | Score | What to do |
|---|---|---|
| `strong` | 0.97 or more | Review first: the NPI matched, or the names are the same or nearly so. Confirm with the date of birth and the address. |
| `medium` | 0.92 to under 0.97 | Review: a spelling variant, a missing middle name or a partial name. |
| `weak` | under 0.92, down to `min_score` | Review when the other details agree: it may be a different person or business with a similar name. |

For a name, the checks move the score: a date of birth that agrees adds 0.02 and one that disagrees removes 0.15; a state that agrees adds 0.01 and one that disagrees removes 0.05. Names are compared the way [sanctions screening](https://qelka.com/docs/api-reference/sanctions#how-the-score-is-computed) compares them: word by word, in any order, with spelling variants and initials.

Every status is billed 1 credit, because the screening ran.

Test keys screen against two fictional entries, and bill nothing: `TEST SAMPLE EXCLUDED`, an individual in Springfield, IL, born in 1970, with NPI `1234567893` and a `1128b4` exclusion, and `TEST EXCLUDED PHARMACY INC`, a business in Springfield, IL, with a `1128a1` exclusion. `list.entries` is then `2`.

## What the list covers

The LEIE lists the individuals and entities currently excluded by OIG. No federal health care program pays for items or services that an excluded party furnishes, orders or prescribes, which is why employers and health plans screen against it. Mandatory exclusions (section 1128(a)) follow convictions such as program-related crimes or patient abuse; permissive ones (section 1128(b)) follow events such as the loss of a license. OIG removes a party from the list when it is reinstated.

## What the API keeps

Screenings are never cached. The request log keeps the NPI with its middle digits hidden, or only the initials of a name, never the name, the state or the date of birth.

## Where the data comes from

The list is the LEIE downloadable database ([UPDATED.csv](https://oig.hhs.gov/exclusions/exclusions_list.asp)), published by the HHS Office of Inspector General and updated monthly. It is a work of the U.S. Government, in the public domain. The API checks the file for changes at most every 20 hours and loads a changed file as a new version; when a download fails, the version loaded before stays in use, and `list.loaded_at` tells you how recent it is. When this page was built, the file in use was published on 2026-11-10 and had 84,181 entries; `list` in each response gives the figures of the file actually compared. See the [data sources page](https://qelka.com/data-sources).

## Examples

### Screen a name with its state

Send the name and the state you know. With a test key in `QELKA_API_KEY`, this request returns both fictional entries: the pharmacy, whose name matches every word sent, and the individual, whose name shares two of them.

```bash title="cURL"
curl https://api.qelka.com/v1/oig/exclusion \
  --max-time 30 \
  -H "Authorization: Bearer $QELKA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "Test Excluded Pharmacy", "state": "IL"}'
```
```javascript title="Node.js"
const response = await fetch('https://api.qelka.com/v1/oig/exclusion', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.QELKA_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({ name: 'Test Excluded Pharmacy', state: 'IL' }),
  signal: AbortSignal.timeout(30_000),
})
const result = await response.json()
console.log(result)
```
```python title="Python"
import os

import requests

api_key = os.environ["QELKA_API_KEY"]
response = requests.post(
    "https://api.qelka.com/v1/oig/exclusion",
    headers={"Authorization": f"Bearer {api_key}"},
    json={"name": "Test Excluded Pharmacy", "state": "IL"},
    timeout=30,
)
result = response.json()
print(result)
```

```json title="Response"
{
  "id": "lkp_01M8CGA5R1KD9W4C7HZT0QX6MV",
  "object": "oig_exclusion",
  "input": "Test Excluded Pharmacy",
  "query": {
    "npi": null,
    "name": "test excluded pharmacy",
    "state": "IL",
    "birth_date": null,
    "min_score": 0.88
  },
  "status": "possible_match",
  "matches": [
    {
      "id": "leie-test-2",
      "type": "entity",
      "name": "TEST EXCLUDED PHARMACY INC",
      "first_name": null,
      "middle_name": null,
      "last_name": null,
      "business_name": "TEST EXCLUDED PHARMACY INC",
      "category": "OTHER BUSINESS",
      "specialty": "PHARMACY",
      "npi": null,
      "city": "SPRINGFIELD",
      "state": "IL",
      "zip": "62702",
      "birth_year": null,
      "exclusion": {
        "code": "1128a1",
        "authority": "1128(a)(1)",
        "description": "Conviction of program-related crimes",
        "mandatory": true,
        "date": "2023-02-20"
      },
      "waiver": null,
      "matched_by": "name",
      "score": 1,
      "strength": "strong",
      "checks": { "state": "match", "birth_date": "unknown" }
    },
    {
      "id": "leie-test-1",
      "type": "individual",
      "name": "TEST SAMPLE EXCLUDED",
      "first_name": "TEST",
      "middle_name": "SAMPLE",
      "last_name": "EXCLUDED",
      "business_name": null,
      "category": "IND- LIC HC SERV PRO",
      "specialty": "NURSING PROFESSION",
      "npi": "1234567893",
      "city": "SPRINGFIELD",
      "state": "IL",
      "zip": "62701",
      "birth_year": 1970,
      "exclusion": {
        "code": "1128b4",
        "authority": "1128(b)(4)",
        "description": "License revocation, suspension or surrender",
        "mandatory": false,
        "date": "2024-06-20"
      },
      "waiver": null,
      "matched_by": "name",
      "score": 0.977,
      "strength": "strong",
      "checks": { "state": "match", "birth_date": "unknown" }
    }
  ],
  "list": { "entries": 2, "published": "2026-01-01", "loaded_at": "2026-01-01T00:00:00.000Z" },
  "verify_url": "https://exclusions.oig.hhs.gov/",
  "legal_determination": false,
  "credits_used": 0,
  "cached": false
}
```

## Errors

| Status | Type | When |
|---|---|---|
| 400 | [invalid_request](https://qelka.com/docs/errors#invalid_request) | Both or neither of `npi` and `name`, `npi` empty or longer than 20 characters, `name` shorter than 2 or longer than 200 characters, `state` not two letters, `birth_date` not `YYYY` or `YYYY-MM-DD`, `min_score` outside 0.75 to 1, a body that is not a JSON object, or a field the request table does not list |
| 401 | [invalid_api_key](https://qelka.com/docs/errors#invalid_api_key) | The key is missing, unknown or revoked |
| 402 | [insufficient_credits](https://qelka.com/docs/errors#insufficient_credits) | Your balance is less than 1 credit (live keys only) |
| 403 | [forbidden](https://qelka.com/docs/errors#forbidden) | The key is restricted to other endpoints |
| 405 | [invalid_request](https://qelka.com/docs/errors#invalid_request) | The method is not `POST` |
| 422 | [unprocessable_input](https://qelka.com/docs/errors#unprocessable_input) | The NPI does not have 10 digits starting with 1 or 2, or fails the check digit test; or the name has no word of two letters or more |
| 429 | [rate_limited](https://qelka.com/docs/errors#rate_limited) | Too many requests: wait `Retry-After` seconds |
| 500 | [internal_error](https://qelka.com/docs/errors#internal_error) | Unexpected error on our side: retry with backoff |
| 502 | [upstream_unavailable](https://qelka.com/docs/errors#upstream_unavailable) | The LEIE is not loaded yet: retry later |

No error is billed. An NPI or a name without match is not an error: it is a `200` with `status: "no_match"`, billed 1 credit. To check that an NPI is well formed without screening it, use the [NPI lookup](https://qelka.com/docs/api-reference/npi), which answers a mistyped NPI with `status: "invalid"`.

## Related

- [OIG exclusion screening API](https://qelka.com/products/oig-exclusion-screening)
- Free tool: [OIG exclusion check](https://qelka.com/tools/oig-exclusion-check)
- [NPI lookup](https://qelka.com/docs/api-reference/npi) and [sanctions screening](https://qelka.com/docs/api-reference/sanctions)
- [Batch](https://qelka.com/docs/api-reference/batch): up to 100 screenings in one call, each item with `type: "oig_exclusion"`
- [Bulk](https://qelka.com/docs/api-reference/bulk): a whole file of NPIs or names with `type=oig_exclusion`
- [Errors](https://qelka.com/docs/errors), [Test mode](https://qelka.com/docs/test-mode), [Data and privacy](https://qelka.com/docs/data-and-privacy)
