Skip to content
OSINTtools.io

OpenSanctions API

Open database of sanctioned entities, politically exposed persons and other watchlists, merged from hundreds of sources.

Base URL
https://api.opensanctions.org
Sign-in
API key
Free tier
Free trial
Pricing
Credits
Format
REST
Endpoints
2

Compiled by OSINTtools.io editors from opensanctions.org · updated Nov 29, 2026Work on this API? Claim it to keep these docs currentReport a mistake

Introduction

OpenSanctions publishes a database of sanctioned people and companies, politically exposed persons and related entities, merged from many source lists. Its API screens a name (with optional birth date, nationality and so on) against that data and returns scored candidates, and returns the full record of an entity by ID.

The /match endpoint takes query-by-example entities: a FollowTheMoney schema such as Person or Company and a properties object whose values are always lists. Each result carries a score from 0 to 1; by default 0.7 or above counts as a match. The score measures how likely the result is the entity queried, not a risk score. /entities/{id} returns the record with related entities nested.

The key goes in the Authorization header as ApiKey <key>. The API is paid from prepaid credit bundles; business-email sign-ups start with a free trial, and free keys are available for journalism, civil-society advocacy and academic research. The API also has a /search endpoint, which is not described here because its parameters are not documented on the pages read.

Quick start

  1. Get a key

    Create an account with OpenSanctions and copy your api key (free trial). Where to get it

  2. Make your first request

    Full record of one entity, with related entities nested.. Replace YOUR_API_KEY and run it in a terminal, or use Try it on the endpoint.

    curl 'https://api.opensanctions.org/entities/NK-example0000000000000000' \
      -H 'Authorization: ApiKey YOUR_API_KEY'
  3. Read the response

    A 200 response looks like this, shortened.

    {
      "id": "NK-example0000000000000000",
      "schema": "Person",
      "properties": {
        "name": [
          "Jane Example"
        ],
        "birthDate": [
          "1970-01-01"
        ],
        "country": [
          "xx"
        ],
        "sanctions": [
          {
            "id": "example-sanction-0001",
            "schema": "Sanction",
            "properties": {
              "authority": [
                "Example Authority"
              ],
              "program": [
                "EXAMPLE-PROGRAM"
              ],
    …

Authentication

Send your API key in the Authorization header of every request, after ApiKey.

The key is sent after the word ApiKey in the Authorization header.

Get a key from OpenSanctions

Try it on this page keeps your key in your browser; it is never sent to OSINTtools.io.

Rate limits and pricing

Not stated in the docs

Free trial. Pricing: credits.

Screening

The dataset in the path sets which sources are queried; default covers all data. Filters in one parameter are combined with OR, across parameters with AND. Property values must be lists of strings even for a single value; country names are normalised to codes. The response normalises the input and may add fields you did not provide, so compare query with what you sent.

Path parameters

datasetstringrequired

Dataset scope, such as default, us_ofac_sdn or eu_sanctions

Example: default

Query parameters

topicsstring

Only candidates with at least one listed topic; repeatable

Example: sanction
include_datasetstring

Only candidates in at least one listed dataset; repeatable

Example: us_ofac_sdn
exclude_datasetstring

Exclude candidates that appear only in the listed datasets; repeatable

Example: eu_sanctions
algorithmstring

Matching algorithm; the docs suggest pinning it

Example: logic-v2Default: best
thresholdnumber

Minimum score to count as a match

Example: 0.8Default: 0.7
limitinteger

Maximum results per query; higher values make queries slower

Example: 5Default: 5
Request body (JSON) · 3Show

queriesobjectalways present

Map of query IDs to query objects

schemastringalways present

Matchable schema such as Person, Company, Vessel or LegalEntity

propertiesobjectalways present

Property names mapped to lists of string values

Response fields · 13Show

statusinteger

HTTP status of that query

totalinteger

Total candidates evaluated

queryobject

How the API parsed the input

idstring

Entity ID, usable with /entities/{id}

captionstring

Display name

schemastring

Entity type

propertiesobject

Aggregated values from all source datasets; each key maps to a list

datasets[]string

Sources mentioning the entity

targetboolean

True if the entity has risk topics

scorenumber

0 to 1 confidence that this is the queried entity; not a risk score

matchboolean

True when the score meets the threshold

explanationsobject

Per-feature breakdown of the score

limitinteger

Maximum results per query

curl -X POST 'https://api.opensanctions.org/match/default' \
  -H 'Authorization: ApiKey YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"queries":{"q":{"schema":"Person","properties":{"name":["Jane Example"],"birthDate":["1970"],"nationality":["Ruritania"]}}}}'
Replace YOUR_API_KEY with your key
Response
{
  "responses": {
    "q": {
      "status": 200,
      "total": 1,
      "query": {
        "schema": "Person",
        "properties": {
          "name": [
            "Jane Example"
          ]
        }
      },
      "results": [
        {
          "id": "NK-example0000000000000000",
          "caption": "Jane Example",
          "schema": "Person",
          "properties": {
            "name": [
              "Jane Example"
            ],
            "birthDate": [
              "1970-01-01"
            ],
            "country": [
              "xx"
            ]
          },
          "datasets": [
            "example_sanctions"
          ],
          "referents": [
            "example-0001"
          ],
          "target": true,
          "first_seen": "2024-01-01T00:00:00",
          "last_seen": "2026-01-01T00:00:00",
          "score": 0.92,
          "match": true
        }
      ]
    }
  },
  "limit": 5
}

Entities

  • Passive: the target is not contacted

An ID that appears in the referents of a merged entity returns a 308 redirect to the new canonical ID for six months; after that the API returns 404. Check stored IDs every three months and follow the redirect.

Path parameters

idstringrequired

Entity ID

Example: NK-example0000000000000000

Query parameters

nestedboolean

Set false for flat properties holding entity IDs instead of nested objects

Example: false
Response fields · 8Show

idstring

Canonical entity ID

schemastring

Entity type, such as Person or Company

propertiesobject

Entity attributes; related entities such as ownershipOwner and sanctions appear here

datasets[]string

Sources that mention the entity

referents[]string

Source-specific and old IDs that map to this ID

targetboolean

Whether the entity is a sanctioned target

first_seenstring

First appearance in the data

last_seenstring

Most recent appearance in the data

curl 'https://api.opensanctions.org/entities/NK-example0000000000000000' \
  -H 'Authorization: ApiKey YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "id": "NK-example0000000000000000",
  "schema": "Person",
  "properties": {
    "name": [
      "Jane Example"
    ],
    "birthDate": [
      "1970-01-01"
    ],
    "country": [
      "xx"
    ],
    "sanctions": [
      {
        "id": "example-sanction-0001",
        "schema": "Sanction",
        "properties": {
          "authority": [
            "Example Authority"
          ],
          "program": [
            "EXAMPLE-PROGRAM"
          ],
          "country": [
            "xx"
          ]
        }
      }
    ]
  },
  "datasets": [
    "example_sanctions"
  ],
  "referents": [
    "example-0001"
  ],
  "target": true,
  "first_seen": "2024-01-01T00:00:00",
  "last_seen": "2026-01-01T00:00:00"
}