curl --request POST \
--url https://api.aisa.one/apis/v1/sanctionssearch-ofac-treas-gov/sanctions/source-status \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"list": "consolidated"
}
'import requests
url = "https://api.aisa.one/apis/v1/sanctionssearch-ofac-treas-gov/sanctions/source-status"
payload = { "list": "consolidated" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({list: 'consolidated'})
};
fetch('https://api.aisa.one/apis/v1/sanctionssearch-ofac-treas-gov/sanctions/source-status', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/sanctionssearch-ofac-treas-gov/sanctions/source-status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'list' => 'consolidated'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/sanctionssearch-ofac-treas-gov/sanctions/source-status"
payload := strings.NewReader("{\n \"list\": \"consolidated\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/sanctionssearch-ofac-treas-gov/sanctions/source-status")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"list\": \"consolidated\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/sanctionssearch-ofac-treas-gov/sanctions/source-status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"list\": \"consolidated\"\n}"
response = http.request(request)
puts response.read_bodySource status
Before records_list or records_changes, to decide whether the list moved (compare publication_id / sha256 with the last run) and to hand the SDN bulk file to a downloader.
curl --request POST \
--url https://api.aisa.one/apis/v1/sanctionssearch-ofac-treas-gov/sanctions/source-status \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"list": "consolidated"
}
'import requests
url = "https://api.aisa.one/apis/v1/sanctionssearch-ofac-treas-gov/sanctions/source-status"
payload = { "list": "consolidated" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({list: 'consolidated'})
};
fetch('https://api.aisa.one/apis/v1/sanctionssearch-ofac-treas-gov/sanctions/source-status', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/sanctionssearch-ofac-treas-gov/sanctions/source-status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'list' => 'consolidated'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/sanctionssearch-ofac-treas-gov/sanctions/source-status"
payload := strings.NewReader("{\n \"list\": \"consolidated\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/sanctionssearch-ofac-treas-gov/sanctions/source-status")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"list\": \"consolidated\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/sanctionssearch-ofac-treas-gov/sanctions/source-status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"list\": \"consolidated\"\n}"
response = http.request(request)
puts response.read_bodyRequest contract
- Method and path: POST /apis/v1/sanctionssearch-ofac-treas-gov/sanctions/source-status
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/sanctionssearch-ofac-treas-gov/sanctions/source-status
{
"operationId": "sanctionssearch-ofac-treas-gov.sanctions.source-status",
"method": "POST",
"path": "/apis/v1/sanctionssearch-ofac-treas-gov/sanctions/source-status",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"examples": {
"provider": {
"summary": "Official provider example; checked against AIsa request constraints",
"value": {
"list": "consolidated"
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"list": {
"description": "Which OFAC list: `sdn` (Specially Designated Nationals, export files SDN_ENHANCED.XML / SDN.XML) or `consolidated` (the Consolidated non-SDN list: SSI, FSE, CAPTA, PLC, MBS, CMIC..., export files CONS_ENHANCED.XML / CONSOLIDATED.XML).\n\nProvider reference: allowed values [\"sdn\", \"consolidated\"].",
"type": "string"
}
},
"required": [
"list"
],
"type": "object"
}
}
},
"required": true
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Cost and request rules
Usage-based pricing. Default request estimate: $0.0005 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.Authorizations
Body
Which OFAC list: sdn (Specially Designated Nationals, export files SDN_ENHANCED.XML / SDN.XML) or consolidated (the Consolidated non-SDN list: SSI, FSE, CAPTA, PLC, MBS, CMIC..., export files CONS_ENHANCED.XML / CONSOLIDATED.XML).
Provider reference: allowed values ["sdn", "consolidated"].
Response
Cheap version check of one OFAC list for collectors: the latest publication (GET /changes/history/{year}: publicationID and datePublished), the export catalogue (POST /api/PublicationPreview/SdnList or /ConsolidatedList: every file with size, lastUpdated and OFAC's posted SHA-256 / SHA-384 / SHA-512, the hashes shown under 'File Signatures' on sanctionslist.ofac.treas.gov), the legacy XML header read with a 2 KB Range request (publshInformation Publish_Date and Record_Count) and the Enhanced XML object's S3 metadata read with a 4 KB Range request (x-amz-meta-publication-id, ETag, byte size, dataAsOf). bulk_file is the hand-off for the SDN list (110 MB, above the 32 MiB fetch cap): URL, size, posted SHA-256, publication id; fits_single_fetch says whether one fetch can read it. Four requests, no file download.
The response contains the tool result directly.
| Documented field | Provider type | Description |
|---|---|---|
bulk_file | object | |
content_hash | string | sha256:<hex>: OFAC's posted SHA-256 of the Enhanced XML export. |
data_as_of | string | publicationInfo/dataAsOf of the Enhanced XML export. |
files | object[] | Every artefact in the list's catalogue (XML, ZIP, CSV, FF, PDF, XSD) as published. |
list | string | |
list_last_updated | string | The catalogue's lastUpdated for the list's files (date only). |
list_name | string | SDN List or Consolidated List (the sanctionsList vocabulary names). |
observed_at_ms | number | |
publication_id | number | The newest publicationID in /changes/history for the current year (previous year when the current year has none yet). |
publish_date | string | publshInformation/Publish_Date of the legacy XML (MM/DD/YYYY). |
published_at | string | datePublished of that publication, the service's naive US Eastern timestamp. |
record_count | number | publshInformation/Record_Count of the legacy XML: the number of entries on the list. |
retrieved_at | string | |
source_url | string |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.