Sanctions Collection API
Retrieve the top-level sanctions data collections. Use the returned `id` as `datasourceId` in the search, page and filter endpoints with `datasourceType=1`.
ENDPOINTS
POST /api/v1/sanctions/collection
Request parameters
No request body required.
curl https://api.tradedata.io/api/v1/sanctions/collection \
-H "Authorization: Bearer yourTokenHere" \
-H "Content-Type: application/json" \
-d '{}'
import requests
response = requests.post(
"https://api.tradedata.io/api/v1/sanctions/collection",
headers={
"Authorization": "Bearer yourTokenHere",
"Content-Type": "application/json",
},
json={},
)
print(response.json())
const response = await fetch("https://api.tradedata.io/api/v1/sanctions/collection", {
method: "POST",
headers: {
"Authorization": "Bearer yourTokenHere",
"Content-Type": "application/json",
},
body: JSON.stringify({}),
});
const data = await response.json();
<?php
$ch = curl_init("https://api.tradedata.io/api/v1/sanctions/collection");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => [
"Authorization: Bearer yourTokenHere",
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS => json_encode([]),
]);
echo curl_exec($ch);
Response parameters
data
array
Collection list.
data.id
string
Collection ID. Use as datasourceId.
- Example:
default
data.name
string
Collection name.
- Example:
OpenSanctions Default
Response Example
{
"code": 200,
"success": true,
"data": [
{
"id": "default",
"name": "OpenSanctions Default"
}
],
"msg": "success",
"total": 0,
"pageSize": 0,
"current": 0,
"sumResult": null
}