Sanctions Search API
Examples

Examples

The examples below demonstrate various use cases for the Sanctions Search API. The examples are in the form of JSON request bodies which may be sent to the API via HTTP POST requests.

Example Request Code

curl 
-X POST https://api.ofac-api.com/v4/search
-d '{"apiKey": "your-api-key", "source": ["SDN", "EU"], "cases": [{"name": "Abu Abbas"}]}' 
-H "Content-Type: application/json"

Example API Requests

  1. Search a single name against the US OFAC SDN and European sanctions lists.
Request JSON
{
    "apiKey": "your-api-key",
    "sources": ["sdn", "nonsdn", "eu"],
    "cases": [
        {
            "name": "Abu Abbas"
        }
    ]
}
  1. Search multiple names (batch) against the US OFAC SDN and European sanctions lists.
Request JSON
{
    "apiKey": "your-api-key",
    "sources": ["sdn", "nonsdn", "eu"],
    "cases": [
        {
          "name": "Abu Abbas"
        }, 
        {
          "name": "Sergei Vladilenovich"
        }
    ]
}
  1. Search for an individual and their passport.
Request JSON
{
    "apiKey": "your-api-key",
    "sources": ["sdn", "nonsdn", "eu"],
    "cases": [
        {
            "name": "Ayman Al Zawahiri",
            "identification": [
                {
                    "type": "passport",
                    "idNumber": "19820215"
                }
            ]
        }
    ]
}
  1. Screen a vessel by IMO number, filtering results to only vessels. Note that id.type is not required.
Request JSON
{
    "apiKey": "your-api-key",
    "sources": ["sdn"],
    "cases": [
        {
            "name": "Client Vessel",
            "identification": [
                {
                    "idNumber": "9167291"
                }
            ]
        }
    ]
}