Skip to main content
POST
/
api
/
opensanctions
/
datasets
/
search
/opensanctions/datasets/search
curl --request POST \
  --url https://api.anysite.io/api/opensanctions/datasets/search \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "count": 2,
  "timeout": 300,
  "tag": "<string>",
  "query": "<string>"
}
'
[
  {
    "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
count
integer
required

Max number of results

Required range: x >= 1
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
tag
string | null

Filter datasets by an exact tag (e.g. 'list.sanction', 'juris.us').

query
string | null

Filter datasets by a case-insensitive substring of the name or title.

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[]