# Sanctions screening

> POST /sanctions screens a person or company name against the OFAC, EU and UK sanctions lists with fuzzy matching and returns scored matches with source links.

`POST https://api.qelka.com/v1/sanctions`

Screen the name of a person or a company against the OFAC, EU and UK sanctions lists, refreshed every day, and get back the listed entries that resemble it, scored, with a link to each official source. Each screening costs 2 credits, match or no match; errors and test keys are never billed.

> **Warning: A match is a lead, not a verdict**
>
> A possible match means a name resembles a listed entry. Review it against the official list before you act. No match is not a clearance either: lists change, and names can be written in ways no matching anticipates.

## Request

Send the name, and a country or a 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 |
|---|---|---|---|---|
| `name` | string | Yes | none | Name of a person or an entity, 2 to 200 characters, in any word order. Case, accents and apostrophes are ignored; Cyrillic and Greek letters are transliterated to Latin. |
| `country` | string | No | none | ISO 3166-1 alpha-2 code tied to the name: nationality, citizenship, residence or registration. Compared with the countries of each entry. |
| `birth_date` | string | No | none | Date of birth of a person, `YYYY-MM-DD` or `YYYY`. Compared with the dates of birth of each entry. |
| `entity_type` | string | No | `any` | `any`, `person` for individuals only, or `entity` for every other entry: organizations, vessels, aircraft and entries of unknown type. |
| `min_score` | number | No | `0.85` | Lowest score an entry needs to be returned, from 0.7 to 1. |
| `fresh` | boolean | No | `false` | Accepted so that every endpoint takes the same fields. Screenings are never cached, so it changes nothing here. |

A name with no word of two letters or more in Latin, Cyrillic or Greek script is a `422 unprocessable_input`.

```bash title="cURL"
curl https://api.qelka.com/v1/sanctions \
  --max-time 10 \
  -H "Authorization: Bearer $QELKA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "Vladimir Putin", "birth_date": "1952-10-07"}'
```
```javascript title="Node.js"
const response = await fetch('https://api.qelka.com/v1/sanctions', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.QELKA_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({ name: 'Vladimir Putin', birth_date: '1952-10-07' }),
  signal: AbortSignal.timeout(10_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/sanctions",
    headers={"Authorization": f"Bearer {api_key}"},
    json={"name": "Vladimir Putin", "birth_date": "1952-10-07"},
    timeout=10,
)
result = response.json()
print(result)
```
```php title="PHP"
<?php
$ch = curl_init('https://api.qelka.com/v1/sanctions');
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(['name' => 'Vladimir Putin', 'birth_date' => '1952-10-07']),
    CURLOPT_TIMEOUT => 10,
]);
$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{"name": "Vladimir Putin", "birth_date": "1952-10-07"})
	request, _ := http.NewRequest(http.MethodPost, "https://api.qelka.com/v1/sanctions", bytes.NewReader(payload))
	request.Header.Set("Authorization", "Bearer "+os.Getenv("QELKA_API_KEY"))
	request.Header.Set("Content-Type", "application/json")

	client := &http.Client{Timeout: 10 * 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/sanctions')
request = Net::HTTP::Post.new(uri)
request['Authorization'] = "Bearer #{ENV.fetch('QELKA_API_KEY')}"
request['Content-Type'] = 'application/json'
request.body = JSON.generate({ name: 'Vladimir Putin', birth_date: '1952-10-07' })

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

## Response

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

| Field | Type | Description |
|---|---|---|
| `id` | string | Identifier of this screening: `lkp_` followed by 26 characters. |
| `object` | string | Always `sanctions`. |
| `input` | string | The `name` you sent, without surrounding spaces. |
| `query` | object | What was compared. |
| `query.name` | string | The name as compared: lower case, accents removed, transliterated, legal forms and titles such as LLC, GmbH or Mr left out. |
| `query.country` | string or null | The `country` you sent. |
| `query.birth_date` | string or null | The `birth_date` you sent. |
| `query.entity_type` | string | `any`, `person` or `entity`. |
| `query.min_score` | number | The `min_score` used. |
| `status` | string | `possible_match` when at least one entry scores `min_score` or more, `no_match` otherwise. |
| `matches` | array of objects | Up to 10 entries, best first. Empty when `status` is `no_match`. |
| `matches.id` | string | The list and the reference of the entry, such as `ofac_sdn:35096`. |
| `matches.list` | string | `ofac_sdn`, `ofac_consolidated`, `eu` or `uk`. |
| `matches.reference` | string | The identifier the publisher gives the entry: OFAC entity number, EU reference or UK unique ID. Search it on the publisher's site to read the full record. |
| `matches.type` | string | `person`, `entity`, `vessel`, `aircraft` or `unknown`. |
| `matches.name` | string | The primary name, as published. |
| `matches.matched_name` | string | The name or alias that matched best, as published. |
| `matches.score` | number | From 0 to 1: `name_score` adjusted by the country and date of birth checks. |
| `matches.name_score` | number | From 0 to 1: similarity of the names alone. |
| `matches.strength` | string | `strong` from 0.95, `medium` from 0.9, `weak` under 0.9. |
| `matches.checks` | object | How the details you sent compare with the entry. |
| `matches.checks.country` | string | `match` when the entry lists the country you sent, `mismatch` when it lists others, `unknown` when either side has none. |
| `matches.checks.birth_date` | string | `match` when a date of birth of the entry agrees with yours (the same year is enough when one side gives only a year or a month), `mismatch` when none does, `unknown` when either side has none or the entry is not a person. |
| `matches.aliases` | array of strings | Other names of the entry, as published, up to 20. |
| `matches.programs` | array of strings | Sanctions programs or regimes, as the list names them. |
| `matches.countries` | array of strings | ISO 3166-1 alpha-2 codes of the nationalities, citizenships, addresses and places of birth the list gives. |
| `matches.birth_dates` | array of strings | `YYYY-MM-DD`, `YYYY-MM` or `YYYY`. A range such as 1960 to 1962 is given as each year. |
| `matches.listed_on` | string or null | The designation date, when the list publishes it: the EU and UK lists do, the OFAC files do not. |
| `matches.source_url` | string | The OFAC record, the EU legal act in the Official Journal (else the EU list page), or the UK list page. |
| `lists` | array of objects | The lists the name was compared with. |
| `lists.id` | string | `ofac_sdn`, `ofac_consolidated`, `eu` or `uk`. |
| `lists.entries` | integer | Entries loaded from the list. |
| `lists.published` | string or null | The date the publisher gives the file, when it gives one. |
| `lists.loaded_at` | string | When the list was loaded, ISO 8601. |
| `legal_determination` | boolean | Always `false`: the screening is an aid, not a legal decision. |
| `credits_used` | integer | Credits debited for this call: 2 with a live key, `0` with a test key. |
| `cached` | boolean | Always `false`: screenings are never cached. |

```json title="Response"
{
  "id": "lkp_01M8774F7YEVAEMJBB38RVQYQ9",
  "object": "sanctions",
  "input": "Vladimir Putin",
  "query": { "name": "vladimir putin", "country": null, "birth_date": "1952-10-07", "entity_type": "any", "min_score": 0.85 },
  "status": "possible_match",
  "matches": [
    {
      "id": "ofac_sdn:35096",
      "list": "ofac_sdn",
      "reference": "35096",
      "type": "person",
      "name": "PUTIN, Vladimir Vladimirovich",
      "matched_name": "PUTIN, Vladimir",
      "score": 1,
      "name_score": 1,
      "strength": "strong",
      "checks": { "country": "unknown", "birth_date": "match" },
      "aliases": ["PUTIN, Vladimir"],
      "programs": ["RUSSIA-EO14024"],
      "countries": ["RU"],
      "birth_dates": ["1952-10-07"],
      "listed_on": null,
      "source_url": "https://sanctionssearch.ofac.treas.gov/Details.aspx?id=35096"
    },
    {
      "id": "uk:RUS0251",
      "list": "uk",
      "reference": "RUS0251",
      "type": "person",
      "name": "Vladimir Vladimirovich PUTIN",
      "matched_name": "Vladimir Putin",
      "score": 1,
      "name_score": 1,
      "strength": "strong",
      "checks": { "country": "unknown", "birth_date": "match" },
      "aliases": ["Vladimir Putin"],
      "programs": ["The Russia (Sanctions) (EU Exit) Regulations 2019"],
      "countries": ["RU"],
      "birth_dates": ["1952-10-07"],
      "listed_on": "2022-02-25",
      "source_url": "https://www.gov.uk/government/publications/the-uk-sanctions-list"
    },
    {
      "id": "eu:135909",
      "list": "eu",
      "reference": "EU.7510.16",
      "type": "person",
      "name": "Vladimir Vladimirovich PUTIN",
      "matched_name": "Vladimir Vladimirovich PUTIN",
      "score": 0.987,
      "name_score": 0.967,
      "strength": "strong",
      "checks": { "country": "unknown", "birth_date": "match" },
      "aliases": ["Vladimir Vladimirovich POUTINE", "Vladimir Vladimirovitj PUTIN"],
      "programs": ["UKR"],
      "countries": ["RU"],
      "birth_dates": ["1952-10-07"],
      "listed_on": "2022-02-25",
      "source_url": "https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=uriserv%3AOJ.L_.2022.053.01.0001.01.ENG&toc=OJ%3AL%3A2022%3A053%3ATOC"
    }
  ],
  "lists": [
    { "id": "ofac_sdn", "entries": 19629, "published": null, "loaded_at": "2026-11-24T17:04:51.613Z" },
    { "id": "ofac_consolidated", "entries": 486, "published": null, "loaded_at": "2026-11-24T17:04:51.613Z" },
    { "id": "eu", "entries": 6303, "published": "2026-11-20", "loaded_at": "2026-11-24T17:04:51.613Z" },
    { "id": "uk", "entries": 6457, "published": "2026-11-24", "loaded_at": "2026-11-24T17:04:51.613Z" }
  ],
  "legal_determination": false,
  "credits_used": 2,
  "cached": false
}
```

## Review a possible match

| `status` | What it means | What to do |
|---|---|---|
| `possible_match` | At least one listed entry resembles the name closely enough to reach `min_score`. | Review each match: compare `matched_name`, `birth_dates`, `countries` and `programs` with what you know, open `source_url` or search `reference` on the publisher's site, then decide. Never block on the score alone. |
| `no_match` | No entry reaches `min_score`. | Go ahead, and keep `lists` with your records: it shows which lists, loaded when, the name was compared with. It is not a clearance. |

| `strength` | Score | What to do |
|---|---|---|
| `strong` | 0.95 or more | Review first: the names are the same or nearly so. Confirm with the date of birth, the countries and the identifiers on the official record. |
| `medium` | 0.9 to under 0.95 | Review: a spelling variant, a missing middle name or a partial name. |
| `weak` | under 0.9, down to `min_score` | Review when the other details agree: it may be a different person or company with a similar name. |

The checks move the score: a date of birth that agrees adds 0.02 and one that disagrees removes 0.15; a country that agrees adds 0.01 and one that disagrees removes 0.05.

## Which lists are screened

| `list` | List | Publisher | Licence |
|---|---|---|---|
| `ofac_sdn` | Specially Designated Nationals and Blocked Persons List | U.S. Treasury, OFAC | U.S. Government work, public domain |
| `ofac_consolidated` | Consolidated Sanctions List (non-SDN lists) | U.S. Treasury, OFAC | U.S. Government work, public domain |
| `eu` | Consolidated list of persons, groups and entities subject to EU financial sanctions | European Commission | European Commission reuse notice |
| `uk` | UK Sanctions List | FCDO | Open Government Licence v3.0 |

Each list is downloaded from its publisher every day. When a download fails, the list loaded before stays in use, and `lists.loaded_at` tells you how recent it is. See the [data sources page](https://qelka.com/data-sources).

## How the score is computed

1. Both names are normalized: lower case, accents and apostrophes removed, Cyrillic and Greek transliterated, legal forms and titles such as LLC, GmbH or Mr left out.
2. Candidates are found through the words of the name and a phonetic key of each word, so spelling variants such as Mohammed, Muhammad and Mohamed meet.
3. Each word of the shorter name is paired with the most similar word of the other name ([Jaro-Winkler](https://en.wikipedia.org/wiki/Jaro%E2%80%93Winkler_distance) similarity of at least 0.8, 0.85 for words of four letters and 0.9 for shorter ones; a single letter matches as an initial). Word order does not matter. The share of the shorter name that is matched gives the score, lowered by 10% of the share of unmatched words of the longer name (35% when the shorter name has one word).
4. The best score over the primary name and every alias is kept, then the country and date of birth checks adjust it.

A one-word name, such as a surname alone, rarely reaches the default `min_score` against an entry with several names: send the full name, or lower `min_score`.

## What the API keeps

Screenings are never cached. The request log keeps only the initials of the name (`V. P.`), never the name, the date of birth or the country.

## Examples

### Screen a company

Send `entity_type: "entity"` to leave individuals out. Test keys screen against two fictional entries, `Test Sanctioned Person` and `Test Sanctioned Company`, and bill nothing. With a test key in `QELKA_API_KEY`, this request returns:

```bash title="cURL"
curl https://api.qelka.com/v1/sanctions \
  --max-time 10 \
  -H "Authorization: Bearer $QELKA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "Test Sanctioned Company", "entity_type": "entity"}'
```
```javascript title="Node.js"
const response = await fetch('https://api.qelka.com/v1/sanctions', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.QELKA_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({ name: 'Test Sanctioned Company', entity_type: 'entity' }),
  signal: AbortSignal.timeout(10_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/sanctions",
    headers={"Authorization": f"Bearer {api_key}"},
    json={"name": "Test Sanctioned Company", "entity_type": "entity"},
    timeout=10,
)
result = response.json()
print(result)
```

```json title="Response"
{
  "id": "lkp_01M8714N8N8P5S6FMCKQSCTKYG",
  "object": "sanctions",
  "input": "Test Sanctioned Company",
  "query": { "name": "test sanctioned", "country": null, "birth_date": null, "entity_type": "entity", "min_score": 0.85 },
  "status": "possible_match",
  "matches": [
    {
      "id": "eu:test-2",
      "list": "eu",
      "reference": "EU.0.0",
      "type": "entity",
      "name": "Test Sanctioned Company",
      "matched_name": "Test Sanctioned Company",
      "score": 1,
      "name_score": 1,
      "strength": "strong",
      "checks": { "country": "unknown", "birth_date": "unknown" },
      "aliases": [],
      "programs": ["TEST"],
      "countries": [],
      "birth_dates": [],
      "listed_on": "2020-01-01",
      "source_url": "https://data.europa.eu/"
    }
  ],
  "lists": [
    { "id": "ofac_sdn", "entries": 1, "published": null, "loaded_at": "2026-01-01T00:00:00.000Z" },
    { "id": "ofac_consolidated", "entries": 0, "published": null, "loaded_at": "2026-01-01T00:00:00.000Z" },
    { "id": "eu", "entries": 1, "published": null, "loaded_at": "2026-01-01T00:00:00.000Z" },
    { "id": "uk", "entries": 0, "published": null, "loaded_at": "2026-01-01T00:00:00.000Z" }
  ],
  "legal_determination": false,
  "credits_used": 0,
  "cached": false
}
```

### Get no match

A name no entry resembles returns `no_match` and an empty `matches`. With a test key in `QELKA_API_KEY`, this request returns:

```bash title="cURL"
curl https://api.qelka.com/v1/sanctions \
  --max-time 10 \
  -H "Authorization: Bearer $QELKA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "Jane Example"}'
```
```javascript title="Node.js"
const response = await fetch('https://api.qelka.com/v1/sanctions', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.QELKA_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({ name: 'Jane Example' }),
  signal: AbortSignal.timeout(10_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/sanctions",
    headers={"Authorization": f"Bearer {api_key}"},
    json={"name": "Jane Example"},
    timeout=10,
)
result = response.json()
print(result)
```

```json title="Response"
{
  "id": "lkp_01M8714P5YREPXPAGGBPKJMXND",
  "object": "sanctions",
  "input": "Jane Example",
  "query": { "name": "jane example", "country": null, "birth_date": null, "entity_type": "any", "min_score": 0.85 },
  "status": "no_match",
  "matches": [],
  "lists": [
    { "id": "ofac_sdn", "entries": 1, "published": null, "loaded_at": "2026-01-01T00:00:00.000Z" },
    { "id": "ofac_consolidated", "entries": 0, "published": null, "loaded_at": "2026-01-01T00:00:00.000Z" },
    { "id": "eu", "entries": 1, "published": null, "loaded_at": "2026-01-01T00:00:00.000Z" },
    { "id": "uk", "entries": 0, "published": null, "loaded_at": "2026-01-01T00:00:00.000Z" }
  ],
  "legal_determination": false,
  "credits_used": 0,
  "cached": false
}
```

## Errors

| Status | Type | When |
|---|---|---|
| 400 | [invalid_request](https://qelka.com/docs/errors#invalid_request) | `name` is missing, shorter than 2 or longer than 200 characters, `country` is not two letters, `birth_date` is not `YYYY` or `YYYY-MM-DD`, `entity_type` is not `any`, `person` or `entity`, `min_score` is outside 0.7 to 1, the body is not a JSON object, or it has 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 2 credits (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 name has no word of two letters or more in Latin, Cyrillic or Greek script |
| 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) | No sanctions list is loaded yet: retry later |

No error is billed. A name without match is not an error: it is a `200` with `status: "no_match"`, billed 2 credits.

## Related

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