Browse all documentation

Sanctions screening API reference

Match and search the US, EU, UK and United Nations sanctions lists

Overview

Screen people and companies against official sanctions lists, search the lists and read one listed entity, by REST and MCP. REST and MCP draw on one credit balance.

Routes, parameters and answers follow OpenSanctions' API under /v1/sanctions/, with FollowTheMoney schema and property names. To move code written for that API, change the base URL and the key.

The data comes from the official files of the US Treasury, the European Commission, the UK government and the United Nations Security Council. We read each file about once a day, and the catalogue says when.

Entries on different lists become one entity only when they share a strong identity number, such as a passport or IMO number. So one person or body can appear as more than one entity.

A match scores how alike the names are, then lowers the score when birth dates or countries disagree. A result has match true when its score reaches threshold, 0.7 unless you set it.

Send your key as Authorization: Bearer <key> or Authorization: ApiKey <key>.

`dataset`ListPublisher
defaultAll five listsEvery publisher below
sanctionsAll five listsEvery publisher below
us_ofac_sdnSpecially Designated Nationals and Blocked PersonsUS Treasury, OFAC
us_ofac_consConsolidated list of the other US Treasury lists (non-SDN)US Treasury, OFAC
eu_fsfConsolidated list of EU financial sanctionsEuropean Commission
gb_fcdo_sanctionsUK Sanctions ListUK Foreign, Commonwealth and Development Office
un_sc_sanctionsSecurity Council Consolidated ListUnited Nations Security Council

Base URL: https://api.narwhalapi.com. Each route below is an MCP tool of its own, with the same parameters.

What every account gets

WhatEvery account
A match10 calls for each query
A searchOne call, with or without results
One entityOne call
The catalogue and the algorithmFree

See pricing for what a call costs. A request is charged at the price of its API unless a route says otherwise.

  • A match is a reason to check, not proof of identity. Compare the date of birth, country and identifiers, and check the publisher's list before you act.
  • No match is not clearance. A name spelled or transliterated very differently can be missed.
  • Only the five lists above are covered. Politically exposed persons and other lists are not.
  • A body owned or controlled by a listed party is returned only if a list names it.
  • Scores come from our own matcher, so they differ from OpenSanctions' scores.
  • The matcher compares names, birth dates and countries. Other properties are accepted and not scored.
  • A match takes 1 to 100 queries in a body of at most 1 MB, with 1 to 10 names for each query.
  • The only topic is sanction.
  • Search does not take sort, filter or filter_op.
  • An entity removed from every list is still answered by id, with target false. Its sanctions carry endDate, the day we first read a file without it.
  • first_seen is when we first read the entry. Entries removed before that are not held.
  • A file that would remove more than a tenth of a list at once is held back for a check. The catalogue then shows the last file we used.
  • If a list a request needs was not read in the last 72 hours, match, search and entity answer 503 and the catalogue shows the list as outdated. An entity also needs every list that names it.
  • Each name in include_dataset, exclude_dataset and datasets must be a dataset, and the filters must leave a list to search. Otherwise the answer is 400.
  • These lists are republished from public sources, for screening and analysis, not legal advice.

Endpoints

Each route is marked GET or POST. A POST route takes a JSON body, and its parameters below are the fields of that body. Every route needs your key in the Authorization: Bearer header. The examples show the shape of an answer, not live data.

Match people and companies against the sanctions lists

POST /v1/sanctions/match/{dataset}

Send 1 to 100 queries, each a FollowTheMoney schema with names and, if known, birth date and country. Each answer ranks listed entities with a score from 0 to 1, match at the threshold, and what each feature compared. A match is a reason to check, not proof of identity. 10 calls for each query; a refused request costs nothing.

responses holds one answer for each query key: status, results, total and query. Each result is an entity as in search, with score, match, features and explanations added.

In the MCP tool, queries and weights are arguments, and the filters that only this page lists are not.

MCP: tool sanctions_match.

Parameters

ParameterWhereRequiredTypeMeaning
datasetpathYesone of default, sanctions, us_ofac_sdn, us_ofac_cons, eu_fsf, gb_fcdo_sanctions, un_sc_sanctionsThe lists to look in: default or sanctions (all five), us_ofac_sdn, us_ofac_cons, eu_fsf, gb_fcdo_sanctions or un_sc_sanctions.
limitqueryNointegerMost results per query, 1 to 500.
thresholdqueryNonumberA result at this score or above has match: true.
cutoffqueryNonumberLeave out results under this score. Default 0.7, or the threshold if lower.
algorithmqueryNostringThe matcher; there is one, so both name it.
include_datasetqueryNolist of stringKeep these lists of the dataset only. Repeat it for more than one. Each name must be a dataset, and one list must be left to search, or the answer is 400.
exclude_datasetqueryNolist of stringLeave these lists out. Repeat it for more than one. Each name must be a dataset, and one list must be left to search, or the answer is 400.
exclude_schemaqueryNolist of stringLeave out entities of these FollowTheMoney schemas.
exclude_entity_idsqueryNolist of stringLeave out these entity ids, up to 500.
topicsqueryNolist of stringKeep entities with one of these topics. The only topic here is sanction.
changed_sincequeryNostringKeep entities changed on or after this date or time, such as 2026-11-01.
queriesbodyYesobject1 to 100 queries, each under a key of your own. Each query is 10 calls.
queries.<key>.idbodyNostringYour own id, echoed back.
queries.<key>.schemabodyYesone of Thing, Person, Organization, Company, LegalEntity, Vessel, Airplane, VehicleWhat the party is: Person, Organization, Company, LegalEntity, Vessel, Airplane, Vehicle or Thing (any).
queries.<key>.propertiesbodyYesobjectFollowTheMoney properties, each a string or a list of strings. Give 1 to 10 names (name, alias, or firstName and lastName). birthDate (YYYY or YYYY-MM-DD) and nationality, country or flag (code or English name) lower the score of entities that disagree. Other properties are accepted and not scored.
weightsbodyNoobjectReplace the weight of a feature by its name; see /v1/sanctions/algorithms.

Response fields

FieldTypeSentMeaning
responsesobjectAlwaysOne answer per query key.
limitintegerAlwaysThe most results per query.
Request
curl -X POST -H "Authorization: Bearer $NARWHAL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"queries":{"q1":{"schema":"Person","properties":{"birthDate":["1955-12-26"],"name":["Dawood Ibrahim"],"nationality":["in"]}}}}' \
  "https://api.narwhalapi.com/v1/sanctions/match/default?limit=1"
Example response
{
  "responses": {
    "q1": {
      "status": 200,
      "results": [
        {
          "id": "unsc-112138",
          "caption": "DAWOOD IBRAHIM KASKAR",
          "schema": "Person",
          "properties": {
            "address": [
              "Karachi, Pakistan",
              "House Nu 37 - 30th Street - defence, Housing Authority, Karachi, Pakistan"
            ],
            "addressEntity": [
              "addr-unsc-112138-3c78896e6b",
              "addr-unsc-112138-ffcf2cce3f"
            ],
            "alias": [
              "Dawood Ebrahim",
              "Sheikh Dawood Hassan"
            ],
            "birthDate": [
              "1955-12-26",
              "1955-12-31"
            ],
            "country": [
              "in",
              "pk"
            ],
            "createdAt": [
              "2003-11-03"
            ],
            "modifiedAt": [
              "2020-11-24",
              "2016-08-27"
            ],
            "name": [
              "DAWOOD IBRAHIM KASKAR",
              "Dawood IBRAHIM"
            ],
            "nationality": [
              "in",
              "ae"
            ],
            "passportNumber": [
              "A-333602",
              "M110522"
            ],
            "topics": [
              "sanction"
            ],
            "weakAlias": [
              "Ibrahim Shaikh Mohd Anis",
              "Shaikh Ismail Abdul"
            ]
          },
          "datasets": [
            "un_sc_sanctions",
            "us_ofac_sdn",
            "eu_fsf"
          ],
          "referents": [
            "ofac-9758",
            "eu-fsf-eu-3510-20"
          ],
          "target": true,
          "first_seen": "2026-11-29T00:00:00",
          "last_seen": "2026-11-29T00:00:00",
          "last_change": "2026-11-29T00:00:00",
          "score": 1,
          "match": true,
          "features": {
            "dob_year_disjoint": 0,
            "name_match": 1
          },
          "explanations": {
            "name_match": {
              "detail": "The closest listed name.",
              "score": 1,
              "query": "Dawood Ibrahim",
              "candidate": "Dawood IBRAHIM"
            },
            "dob_year_disjoint": {
              "detail": "No birth year is contradicted.",
              "score": 0,
              "query": null,
              "candidate": null
            }
          }
        }
      ],
      "total": {
        "value": 2,
        "relation": "eq"
      },
      "query": {
        "schema": "Person",
        "properties": {
          "birthDate": [
            "1955-12-26"
          ],
          "name": [
            "Dawood Ibrahim"
          ],
          "nationality": [
            "in"
          ]
        }
      }
    }
  },
  "limit": 1
}

One sanctioned entity

GET /v1/sanctions/entities/{id}

An entity by its id, with its addresses and sanctions. An id that was merged into another answers 308 with the new address. An entity taken off every list has target false. One call.

An id that was merged into another entity answers 308 with the new address in Location. A 308 is not charged.

MCP: tool sanctions_get_entity.

Parameters

ParameterWhereRequiredTypeMeaning
idpathYesstringThe id of an entity from a match or a search, such as unsc-112138.
nestedqueryNobooleanGive addresses and sanctions as whole entities inside the answer.

Response fields

FieldTypeSentMeaning
idstringAlwaysThe entity's id.
captionstringAlwaysIts main name.
schemastringAlwaysIts FollowTheMoney schema, such as Person or Company.
propertiesobjectAlwaysFollowTheMoney properties, each a list: name, alias, weakAlias, birthDate, country, nationality, address, passportNumber, registrationNumber, imoNumber, topics and others. addressEntity holds address ids; in a nested answer it and sanctions hold whole entities.
datasetslist of stringAlwaysThe lists that name it.
referentslist of stringAlwaysOther ids of the same entity.
targetbooleanAlwaysTrue while at least one list names it.
first_seenstringAlwaysWhen we first read it on a list, UTC, such as 2026-11-29T00:00:00.
last_seenstringAlwaysWhen we last read it on a list, UTC, such as 2026-11-29T00:00:00.
last_changestringAlwaysWhen its entry last changed, UTC, such as 2026-11-29T00:00:00.
Request
curl -H "Authorization: Bearer $NARWHAL_API_KEY" \
  "https://api.narwhalapi.com/v1/sanctions/entities/unsc-690735"
Example response
{
  "id": "unsc-690735",
  "caption": "KOREA MINING DEVELOPMENT TRADING CORPORATION",
  "schema": "LegalEntity",
  "properties": {
    "address": [
      "Central District, Pyongyang, Democratic People's Republic of Korea"
    ],
    "addressEntity": [
      {
        "id": "addr-unsc-690735-ab0c2519b0",
        "caption": "Central District, Pyongyang, Democratic People's Republic of Korea",
        "schema": "Address",
        "properties": {
          "city": [
            "Pyongyang"
          ],
          "country": [
            "kp"
          ],
          "full": [
            "Central District, Pyongyang, Democratic People's Republic of Korea"
          ],
          "street": [
            "Central District"
          ]
        },
        "datasets": [
          "un_sc_sanctions"
        ],
        "referents": [],
        "target": false,
        "first_seen": "2026-11-29T00:00:00",
        "last_seen": "2026-11-29T00:00:00",
        "last_change": "2026-11-29T00:00:00"
      }
    ],
    "alias": [
      "CHANGGWANG SINYONG CORPORATION"
    ],
    "country": [
      "kp"
    ],
    "createdAt": [
      "2009-04-24"
    ],
    "name": [
      "KOREA MINING DEVELOPMENT TRADING CORPORATION"
    ],
    "sanctions": [
      {
        "id": "sanction-un_sc_sanctions-unsc-690735",
        "caption": "DPRK",
        "schema": "Sanction",
        "properties": {
          "authority": [
            "United Nations Security Council"
          ],
          "authorityId": [
            "KPe.001"
          ],
          "country": [
            "un"
          ],
          "entity": [
            "unsc-690735"
          ],
          "listingDate": [
            "2009-04-24"
          ],
          "program": [
            "DPRK"
          ],
          "sourceUrl": [
            "https://main.un.org/securitycouncil/en/content/un-sc-consolidated-list"
          ],
          "startDate": [
            "2009-04-24"
          ],
          "unscId": [
            "KPe.001"
          ]
        },
        "datasets": [
          "un_sc_sanctions"
        ],
        "referents": [],
        "target": false,
        "first_seen": "2026-11-29T00:00:00",
        "last_seen": "2026-11-29T00:00:00",
        "last_change": "2026-11-29T00:00:00"
      }
    ],
    "topics": [
      "sanction"
    ]
  },
  "datasets": [
    "un_sc_sanctions"
  ],
  "referents": [],
  "target": true,
  "first_seen": "2026-11-29T00:00:00",
  "last_seen": "2026-11-29T00:00:00",
  "last_change": "2026-11-29T00:00:00"
}

The sanctions datasets

GET /v1/sanctions/catalog

Each list and collection, with its counts and when we last read it. Free.

MCP: tool sanctions_get_catalog.

Parameters

ParameterWhereRequiredTypeMeaning
formatqueryNoone of json, csvjson (default) or csv. CSV is the same answer as a table: UTF-8, one header row, one row per entry. The charge is the same as for JSON, and a refused call is the same free JSON problem. Every field of the JSON answer is a column; a field beside the list repeats on each row, and one that holds its own list of objects is on the first row only.

Response fields

FieldTypeSentMeaning
datasetslist of objectAlwaysEach list, then each collection.
datasets[].namestringAlwaysThe name the match and search paths take.
datasets[].titlestringAlwaysThe dataset's title.
datasets[].licensestringAlwaysNull.
datasets[].summarystringAlwaysOne line on what it holds.
datasets[].descriptionstringAlwaysThe same text.
datasets[].urlstringAlwaysThe publisher's page of the list.
datasets[].updated_atstringAlwaysWhen we last read it, UTC, such as 2026-11-29T00:00:00. Null: not yet.
datasets[].last_exportstringAlwaysThe same as updated_at.
datasets[].entity_countintegerAlwaysEntities, their list entries and their addresses.
datasets[].thing_countintegerAlwaysPeople, bodies, vessels and aircraft listed now.
datasets[].versionstringAlwaysThe file's publication date and a mark of its text.
datasets[].categorystringAlwaysNull.
datasets[].tagslist of stringAlwayslist.sanction for a list.
datasets[].publisherobjectAlwaysWho publishes it. Null for a collection.
datasets[].publisher.namestringAlwaysThe publisher's name.
datasets[].publisher.urlstringAlwaysIts website.
datasets[].publisher.name_enstringAlwaysIts name in English.
datasets[].publisher.acronymstringAlwaysIts short name.
datasets[].publisher.descriptionstringAlwaysWhat it is.
datasets[].publisher.countrystringAlwaysIts code, such as us.
datasets[].publisher.officialbooleanAlwaysTrue: every list here comes from its official publisher.
datasets[].publisher.logo_urlstringAlwaysEmpty.
datasets[].publisher.country_labelstringAlwaysThe country in words.
datasets[].coverageobjectAlwaysHow often it is read.
datasets[].coverage.startstringAlwaysNull.
datasets[].coverage.endstringAlwaysNull.
datasets[].coverage.countrieslist of stringAlwaysEmpty.
datasets[].coverage.frequencystringAlwaysHow often we read the list.
datasets[].coverage.schedulestringAlwaysNull.
datasets[].resourceslist of stringAlwaysEmpty.
datasets[].childrenlist of stringAlwaysThe lists a collection holds.
datasets[].deprecationstringAlwaysNull.
datasets[].deprecatedbooleanAlwaysFalse.
datasets[].loadbooleanAlwaysTrue for a list.
datasets[].entities_urlstringAlwaysNull.
datasets[].delta_urlstringAlwaysNull.
datasets[].namespacebooleanAlwaysFalse.
datasets[].index_versionstringAlwaysThe same as version.
datasets[].index_currentbooleanAlwaysTrue once it has been read.
currentlist of stringAlwaysDatasets read in the last 72 hours.
outdatedlist of stringAlwaysDatasets not read in the last 72 hours.
index_stalebooleanAlwaysFalse.
Request
curl -H "Authorization: Bearer $NARWHAL_API_KEY" \
  "https://api.narwhalapi.com/v1/sanctions/catalog"
Example response
{
  "datasets": [
    {
      "name": "un_sc_sanctions",
      "title": "UN Security Council Consolidated Sanctions",
      "license": null,
      "summary": "Everyone and everything on a United Nations Security Council sanctions list.",
      "description": "Everyone and everything on a United Nations Security Council sanctions list.",
      "url": "https://main.un.org/securitycouncil/en/content/un-sc-consolidated-list",
      "updated_at": "2026-11-29T00:00:00",
      "last_export": "2026-11-29T00:00:00",
      "entity_count": 2775,
      "thing_count": 1008,
      "version": "2026-11-29-2f6c132a",
      "category": null,
      "tags": [
        "list.sanction"
      ],
      "publisher": {
        "name": "United Nations Security Council",
        "url": "https://www.un.org/en/sc/",
        "name_en": "United Nations Security Council",
        "acronym": "UNSC",
        "description": "The United Nations body that imposes international sanctions.",
        "country": "un",
        "official": true,
        "logo_url": "",
        "country_label": "United Nations"
      },
      "coverage": {
        "start": null,
        "end": null,
        "countries": [],
        "frequency": "daily",
        "schedule": null
      },
      "resources": [],
      "children": [],
      "deprecation": null,
      "deprecated": false,
      "load": true,
      "entities_url": null,
      "delta_url": null,
      "namespace": false,
      "index_version": "2026-11-29-2f6c132a",
      "index_current": true
    }
  ],
  "current": [
    "un_sc_sanctions"
  ],
  "outdated": [],
  "index_stale": false
}

The matching algorithm

GET /v1/sanctions/algorithms

The features a match scores and their weights. Free.

MCP: tool sanctions_get_algorithms.

Parameters

ParameterWhereRequiredTypeMeaning
formatqueryNoone of json, csvjson (default) or csv. CSV is the same answer as a table: UTF-8, one header row, one row per entry. The charge is the same as for JSON, and a refused call is the same free JSON problem. Every field of the JSON answer is a column; a field beside the list repeats on each row, and one that holds its own list of objects is on the first row only.

Response fields

FieldTypeSentMeaning
algorithmslist of objectAlwaysThe one matcher.
algorithms[].namestringAlwaysThe algorithm's name.
algorithms[].descriptionstringAlwaysHow it scores.
algorithms[].featuresobjectAlwaysEach feature by name.
algorithms[].docsobjectAlwaysThe same, as documentation.
algorithms[].docs.namestringAlwaysThe algorithm's name.
algorithms[].docs.descriptionstringAlwaysHow it scores.
algorithms[].docs.configobjectAlwaysEmpty: it has no settings.
algorithms[].docs.featuresobjectAlwaysThe same features.
defaultstringAlwaysbest.
beststringAlwaysThe name best stands for.
Request
curl -H "Authorization: Bearer $NARWHAL_API_KEY" \
  "https://api.narwhalapi.com/v1/sanctions/algorithms"
Example response
{
  "algorithms": [
    {
      "name": "logic-v2",
      "description": "Narwhal's own rule based matcher, in the manner of logic-v2: it scores how alike the names are, then lowers the score when birth dates or countries disagree. Scores differ from other matchers'.",
      "features": {
        "name_match": {
          "description": "How alike a name asked for and a listed name are, word by word.",
          "coefficient": 1,
          "url": "https://narwhalapi.com/docs/api/sanctions#sanctions-match"
        },
        "dob_year_disjoint": {
          "description": "The birth years asked for and the listed birth years have none in common.",
          "coefficient": -0.15,
          "url": "https://narwhalapi.com/docs/api/sanctions#sanctions-match"
        }
      },
      "docs": {
        "name": "logic-v2",
        "description": "Narwhal's own rule based matcher, in the manner of logic-v2: it scores how alike the names are, then lowers the score when birth dates or countries disagree. Scores differ from other matchers'.",
        "config": {},
        "features": {
          "name_match": {
            "description": "How alike a name asked for and a listed name are, word by word.",
            "coefficient": 1,
            "url": "https://narwhalapi.com/docs/api/sanctions#sanctions-match"
          },
          "dob_year_disjoint": {
            "description": "The birth years asked for and the listed birth years have none in common.",
            "coefficient": -0.15,
            "url": "https://narwhalapi.com/docs/api/sanctions#sanctions-match"
          }
        }
      }
    }
  ],
  "default": "best",
  "best": "logic-v2"
}

Errors

Errors use the shared problem shape with a request_id. See Errors and credits for the shape and the credit headers. Failed requests are not charged.

CodeStatusMeaning
invalid_query400A parameter or the body is missing, unknown or outside its range. Not charged.
insufficient_credits402Your credit balance is less than the request costs.
not_found404No such dataset, or no entity has this id. Not charged.
sanctions_unavailable503A list the request needs was not read in the last 72 hours. Not charged.
invalid_api_key401The Bearer key is missing, malformed, unknown, or inactive.
rate_limit_exceeded429The network or account per-minute limit was reached. Retry after the time in the Retry-After header.

Was this page helpful?