Skip to main content
POST
/
api
/
opensanctions
/
datasets
/opensanctions/datasets
curl --request POST \
  --url https://api.anysite.io/api/opensanctions/datasets \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "dataset": "<string>",
  "timeout": 300
}
'
[
  {
    "name": "<string>",
    "@type": "@opensanctions_catalog_dataset",
    "title": "<string>",
    "summary": "<string>",
    "description": "<string>",
    "url": "<string>",
    "updated_at": "<string>",
    "version": "<string>",
    "entity_count": 123,
    "thing_count": 123,
    "target_count": 123,
    "tags": [],
    "publisher": {
      "name": "<string>",
      "@type": "@opensanctions_dataset_publisher",
      "acronym": "<string>",
      "url": "<string>",
      "description": "<string>",
      "country": "<string>",
      "is_official": true
    },
    "resources": []
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
dataset
string
required

OpenSanctions dataset name (e.g. 'default', 'us_ofac_sdn', 'eu_fsf').

Minimum string length: 1
Examples:

"default"

"us_ofac_sdn"

timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500

Response

Successful Response

name
string
required
@type
string
default:@opensanctions_catalog_dataset
title
string | null
summary
string | null
description
string | null
url
string | null
updated_at
string | null
version
string | null
entity_count
integer | null
thing_count
integer | null
target_count
integer | null
tags
string[]
publisher
OpensanctionsDatasetPublisher · object
resources
OpensanctionsDatasetResource · object[]