curl --request POST \
--url https://api.aisa.one/apis/v1/sanctionssearch-ofac-treas-gov/sanctions/record \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"entity_id": "30042"
}
'import requests
url = "https://api.aisa.one/apis/v1/sanctionssearch-ofac-treas-gov/sanctions/record"
payload = { "entity_id": "30042" }
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({entity_id: '30042'})
};
fetch('https://api.aisa.one/apis/v1/sanctionssearch-ofac-treas-gov/sanctions/record', 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/record",
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([
'entity_id' => '30042'
]),
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/record"
payload := strings.NewReader("{\n \"entity_id\": \"30042\"\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/record")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"entity_id\": \"30042\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/sanctionssearch-ofac-treas-gov/sanctions/record")
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 \"entity_id\": \"30042\"\n}"
response = http.request(request)
puts response.read_bodyRecord
You have an entity_id from search (or an SLS entity id) and want the human-readable record as OFAC’s search tool shows it.
curl --request POST \
--url https://api.aisa.one/apis/v1/sanctionssearch-ofac-treas-gov/sanctions/record \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"entity_id": "30042"
}
'import requests
url = "https://api.aisa.one/apis/v1/sanctionssearch-ofac-treas-gov/sanctions/record"
payload = { "entity_id": "30042" }
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({entity_id: '30042'})
};
fetch('https://api.aisa.one/apis/v1/sanctionssearch-ofac-treas-gov/sanctions/record', 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/record",
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([
'entity_id' => '30042'
]),
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/record"
payload := strings.NewReader("{\n \"entity_id\": \"30042\"\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/record")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"entity_id\": \"30042\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/sanctionssearch-ofac-treas-gov/sanctions/record")
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 \"entity_id\": \"30042\"\n}"
response = http.request(request)
puts response.read_bodyRequest contract
- Method and path: POST /apis/v1/sanctionssearch-ofac-treas-gov/sanctions/record
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/sanctionssearch-ofac-treas-gov/sanctions/record
{
"operationId": "sanctionssearch-ofac-treas-gov.sanctions.record",
"method": "POST",
"path": "/apis/v1/sanctionssearch-ofac-treas-gov/sanctions/record",
"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": {
"entity_id": "30042"
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"entity_id": {
"description": "OFAC entity id as digits ('17250') or a pasted Details.aspx?id= URL.",
"type": "string"
}
},
"required": [
"entity_id"
],
"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
Response
The Sanctions List Search Details page of one OFAC record (Details.aspx?id=): type, list, name (entity name, or last and first name for individuals), title, nationality, citizenship, date and place of birth, programs, remarks, any further labelled field the page shows (vessel and aircraft layouts), the identifications table (type, ID number, country, issue and expire dates; also features such as secondary sanctions risk and directive determinations), the aliases table and the addresses table. Dates are kept as printed ('19 Jan 1960'). Fails with not_found when the site redirects an unknown id to its error page.
The response contains the tool result directly.
| Documented field | Provider type | Description |
|---|---|---|
addresses | object[] | |
aliases | object[] | |
citizenship | string | |
date_of_birth | string | As printed, e.g. '19 Jan 1960' or 'circa 1960'. |
detail_url | string | |
entity_id | number | |
first_name | string | |
identifications | object[] | |
last_name | string | Individuals only; null for entities, vessels and aircraft. |
list | string | |
name | string | Entity name as printed; for individuals 'LAST NAME, First Name'. |
nationality | string | |
non_sdn_list_updated | string | |
observed_at_ms | number | |
other_fields | object[] | Labelled fields of the details header not mapped above (vessel / aircraft attributes), as printed. |
place_of_birth | string | |
programs | string[] | |
remarks | string | |
sdn_list_updated | string | |
title | string | |
type | string |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.