Everything you need to integrate the OFAC Search API
Explore and test the API interactively via Swagger:
Swagger allows you to try live requests using your API Key and OFAC ID. Make sure to authorize before sending requests.
{
"OFAC ID": 12345,
"API Key": "your-api-key",
"word1": "John",
"word2": "Doe",
"city": "New York",
"country": "USA",
"postalCode": "10001",
"searchComments": "Initial screening"
}
Minimum 3 characters required across all fields. ofacId is mandatory.
You may include additional fields such as state, address, or dateOfBirth NOTE: This fields will not always change search results as the OFAC/Other lists do not always include this type of data. These fields are included on the reports/XML Output.
Use your OFAC ID and API Key from Settings Page.
These credentials must be included in every request. If either is missing or invalid, the API will return a 400 error OR Invalid Search Key.
Select the list(s) to search using the following codes:
Use 0 for the broadest search coverage unless your use case requires a specific jurisdiction.
Specify the type of data being searched:
Use 3 if you're unsure whether the subject is a person or entity. For specific search, use types 41–45.
Split the search term into up to five components:
Example 1:
Input: "John Smith"
Output: word1 = John, word2 = Smith, word3–5 = blank
Example 2:
Input: "IRAN PETROCHEMICAL COMMERCIAL COMPANY"
Output: word1 = IRAN, word2 = PETROCHEMICAL, word3 = COMMERCIAL, word4 = COMPANY, word5 = blank
Avoid including punctuation or special characters in name fields. Use uppercase or lowercase freely—matching is case-insensitive.
NOTE: These fields will not always change search results as the OFAC/Other lists do not always include this type of data. These fields are included on the reports/XML Output.
Include date of birth in the format MM-DD-YYYY.
Partial dates (e.g., year only) are supported supported.
NOTE: This field will not always change search results as the OFAC/Other lists do not always include Date of Birth. These fields are included on the reports/XML Output.
Optional comments for internal use. This is not searched but will appear in the generated report Data.
Use this field to track the purpose of the search or associate it with a case ID.
The Found value indicates the number of potential matches. Use the OFAC ID and Search Key to retrieve full reports.
Use the returned OFAC ID and Search Key to retrieve reports:
https://api.ofac-analyzer.com/reportViewXml.aspx?rptId=S1&ofacId=12345&searchKey=118408677&rptType=Xhttps://api.ofac-analyzer.com/reportView.aspx?rptId=S1&ofacId=12345&searchKey=118408677&rptType=Rhttps://api.ofac-analyzer.com/reportView.aspx?rptId=S1&ofacId=12345&searchKey=118408677&rptType=Phttps://api.ofac-analyzer.com/reportView.aspx?rptId=S1&ofacId=12345&searchKey=118408677&rptType=EThese links are dynamically generated. Replace the ofacId and searchKey with values from your response.