API reference
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.
https://api.qelka.com/v1/oig/exclusionScreen 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.
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.
npistringnamestringstatestringbirth_datestringYYYY-MM-DD or YYYY. Compared with the date of birth of each individual entry.min_scorenumberDefault 0.88freshbooleanDefault falseA 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.
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"}'
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)
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
$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);
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)
}
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.
idstringlkp_ followed by 26 characters.objectstringoig_exclusion.inputstringnpi or name you sent.queryobjectquery.npistring or nullnull for a name screening.query.namestring or nullnull for an NPI screening.query.statestring or nullstate you sent, upper case.query.birth_datestring or nullbirth_date you sent.query.min_scorenumbermin_score used.statusstringmatch 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.matchesarray of objectsstatus is no_match.matches.idstringleie- 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.typestringindividual or entity.matches.namestringmatches.first_namestring or nullmatches.middle_namestring or nullmatches.last_namestring or nullmatches.business_namestring or nullmatches.categorystring or nullIND- LIC HC SERV PRO or OTHER BUSINESS.matches.specialtystring or nullNURSING PROFESSION or PHARMACY.matches.npistring or nullnull when it has none.matches.citystring or nullmatches.statestring or nullmatches.zipstring or nullmatches.birth_yearinteger or nullbirth_date but never returned.matches.exclusionobjectmatches.exclusion.codestring1128b4.matches.exclusion.authoritystring1128(b)(4).matches.exclusion.descriptionstring or nullLicense revocation, suspension or surrender.matches.exclusion.mandatoryboolean or nulltrue 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.datestring or nullYYYY-MM-DD.matches.waiverobject or nullnull when there is none.matches.waiver.datestring or nullmatches.waiver.statestring or nullmatches.matched_bystringnpi or name.matches.scorenumber1 for an NPI match; for a name, the similarity of the names adjusted by the state and date of birth checks.matches.strengthstringstrong from 0.97, medium from 0.92, weak below.matches.checksobjectmatches.checks.statestringmatch, mismatch, or unknown when you sent no state or the entry has none.matches.checks.birth_datestringmatch, mismatch, or unknown when you sent no date, the entry has none or it is a business. With YYYY, only the year is compared.listobjectlist.entriesintegerlist.publishedstring or nullYYYY-MM-DD.list.loaded_atstringverify_urlstringlegal_determinationbooleanfalse: a screening aid, not a determination.credits_usedinteger0 with a test key.cachedbooleanfalse: screenings are never cached.{
"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 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), 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.
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.
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"}'
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)
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)
{
"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 | 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 | The key is missing, unknown or revoked |
| 402 | insufficient_credits | Your balance is less than 1 credit (live keys only) |
| 403 | forbidden | The key is restricted to other endpoints |
| 405 | invalid_request | The method is not POST |
| 422 | 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 | Too many requests: wait Retry-After seconds |
| 500 | internal_error | Unexpected error on our side: retry with backoff |
| 502 | 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, which answers a mistyped NPI with status: "invalid".
Related
- OIG exclusion screening API
- Free tool: OIG exclusion check
- NPI lookup and sanctions screening
- Batch: up to 100 screenings in one call, each item with
type: "oig_exclusion" - Bulk: a whole file of NPIs or names with
type=oig_exclusion - Errors, Test mode, Data and privacy