Practical guide

OFAC API: add sanctions screening to your application

Connect to the OFAC screening API, choose SDN or non-SDN coverage, and send matches to your review team. Start with a working sandbox example.

API integration8 min read
250 free live screenings. One lifetime allowance. No credit card required.
On this page

What does an OFAC API do?

An OFAC API lets your application check a person or company against selected U.S. sanctions lists. It returns possible matches for a person to review. OFAC stands for the Office of Foreign Assets Control, the U.S. Treasury office that publishes these lists.

With SanctionsKit, your application sends the name and any known identity details. The API returns a screening ID, the sources checked, and any matching records. Save that ID with your customer or supplier record so your team can find the same check later.

The screening API and included dashboard work together. Reviewers can open retained API results, compare possible matches, record their reasons, and monitor ongoing relationships. OFAC is one part of the available sanctions and risk coverage.

Start with 250 free live screenings when you create a workspace. They are shared by the API and dashboard for the life of your workspace, with no monthly reset or credit card needed. Check which sources are available before sending a request. The synthetic request below and interactive demo use made-up records. Sandbox testing is optional.

OFAC list downloads and a screening API do different jobs

OFAC publishes list files through its Sanctions List Service. Those files give you the source records. A screening API compares your customer details with those records and returns candidates you can review. SanctionsKit is a commercial service; using it does not mean OFAC endorses the provider or approves a result.

Your application sends a subject and its required coverage to SanctionsKit; you do not need to download, parse, or refresh OFAC files to use this integration. If an existing job works from downloaded lists, use the migration guide to replace that screening step while keeping your customer references and review workflow.

Scroll horizontally to compare every column.

Compare the work required for an OFAC screening workflow
CapabilityOfficial list downloadsSanctionsKit screening workflow
Source dataOFAC publishes sanctions list files.Select available OFAC sources and retain their list identity.
Name and identifier matchingYour application implements and tests comparison logic.The API returns candidate evidence, matched fields, and conflicts.
Analyst reviewYour team supplies the review interface and decision history.Retained API results open in the included dashboard review workflow.
Continuing checksYour team manages refreshes and rescreening jobs.Monitoring supports selected relationships and consumes the shared production allowance.
Business decisionYour organization evaluates the applicable restrictions and evidence.Your organization still owns the decision; a score or no-match result is not legal clearance.

Choose the OFAC lists your check needs

OFAC's SDN List and non-SDN lists can carry different restrictions. Keep the authority and list name with each candidate. First decide whether the record refers to the same person or company. Then review the restriction that applies to that record.

Choose specific source IDs or a package with a fixed version. Call GET /api/v1/sources with a key that has sources:read to check what is available. The OFAC source IDs include ofac-sdn and ofac-non-sdn. Follow the source-selection guide when building the request. The sandbox uses invented records, not these production lists.

The OFAC screening guide collection covers search procedure, SDN versus non-SDN restrictions, ownership, and match handling. Use it to define what the integration must support before selecting sources.

Keep dates and name labels as the source provides them. A birth date may contain only a year, and different name fields may mean different things. Our analysis of OFAC and UK identity fields explains these gaps with source examples.

Start with one synthetic sandbox request

Keep the credential on a trusted backend. Save the request body and a persistent operation ID before calling POST /api/v1/screenings. The example below uses an invented subject and synthetic sandbox coverage. Set SANCTIONSKIT_API_KEY and SCREENING_OPERATION_ID in the trusted process environment; never commit a real key.

Start with one synthetic sandbox request code example
curl --fail-with-body --max-time 25 --request POST \
  https://www.sanctionskit.com/api/v1/screenings \
  --header "Authorization: Bearer $SANCTIONSKIT_API_KEY" \
  --header "Content-Type: application/json" \
  --header "Idempotency-Key: $SCREENING_OPERATION_ID" \
  --data '{"subject":{"name":"Mira Calder","entityType":"person","birthDate":"1984"},"package":"sandbox@1","retention":"standard"}'

Handle a match, a no-match, and an error separately

Check that the response has a screening ID, a known status, and a matches collection. Send potential_match results to your review process. A no_match means the completed check returned no candidates for the sources you chose. Your policy may still require other checks before the customer can proceed.

A lost connection, unavailable source, invalid response, or unknown status leaves the check incomplete. Retry the same operation with the same idempotency key and unchanged body. If you correct the person's details, create a new operation with a new key so the earlier result cannot be reused by mistake.

Download the Python workflow example and run instructions to practice these outcomes offline with fictional records. It makes no network requests, needs no account or API key, and does not screen against live sanctions lists.

Connect the request to your backend

Use the Node.js integration or Python integration to call the same endpoint from your backend. Pass verified subject details from your application, keep the operation ID for retries, and store the returned screening ID with your own customer reference. Keep the API key and full evidence out of browser code and routine logs.

Once your sandbox flow works, create a production key with screenings:write, results:read, and sources:read. Check the current source catalog. Replace package: sandbox@1 with a sources array containing the available OFAC IDs your process requires.

If your organization requires a published screening policy, include its ID and version and select the coverage it permits. A request must use either sources or package; do not send both.

Open the saved result in Screening history. If a case needs attention, continue in Review queue. Test this step with a reviewer: they should be able to find the customer reference, read the evidence, and understand what needs a decision.

Preserve partial identity information

A populated date-of-birth field does not always contain a full date. In our 30 September 2026 OFAC SDN snapshot, 898 of 7,565 individual source records had structured birth-date information without a full calendar value. This measures field format, not missed matches or screening accuracy. The source-data study provides the definitions, aggregate results and analysis code.

Keep a year-only value as a year; do not invent a day and month. Preserve source-defined aliases, identifiers and list identity for review. Additional information can help a reviewer assess a candidate, but the application must retain incomplete and unresolved outcomes until the required workflow is finished.

How the API and dashboard work together

Save the screening ID with your customer or supplier reference. API and dashboard screenings appear in the same workspace history while retained. A potential match enters the case-review queue. Reviewers can compare source facts, assign the case, add notes, and record whether each candidate is the same identity. They record the business action separately and seek another review when the policy requires it.

Your policy can require review even after a no-match. Show the original screening status and the later analyst decision as separate fields. Your retention settings control how long the input and evidence remain available. Use evidence exports when your recordkeeping process calls for a copy.

Use batch screening for a list of customers or suppliers, and check each failed row. Use monitoring to save selected subjects for scheduled rechecks and eligible source-change checks. Completed API, dashboard, batch, and monitoring checks share your production allowance. Opening a saved result does not use another screening.

Choose a language implementation

The developer guide directory includes Node.js, Python, PHP, Ruby, Go, Rust, Swift, Java, and C# HTTP examples, plus source-specific tutorials. For maintained SDKs, API collections, and the OpenAPI contract, start with the developer center.

  • Validate the exact contract against the published OpenAPI document.
  • Test potential matches, no matches, malformed responses, and API errors.
  • Keep credentials, identity details, and raw evidence out of routine logs.
  • Verify required sources and subject-type compatibility before going live.
  • Retain identity and business decisions separately from the original screening outcome.

Keep the API call in one part of your backend

Put the API call in a backend module that accepts the customer's known details and required source selection. Return the screening ID and outcome to the rest of your application. Give incomplete checks their own state. Your onboarding or payment workflow can then wait until all required checks and reviews are complete.

Save the operation ID and request before calling the API. If the connection breaks, retry that saved request with its original key. This is what idempotency protects: one intended check can survive a network retry without becoming two checks. A changed subject needs a new key; reusing the old one can replay an earlier result or cause a conflict.

Is the API free, and what should I budget for?

Your first workspace gets 250 free live screenings, shared by the API and dashboard. This is one lifetime allowance, with no monthly reset or credit card needed. Check available OFAC sources before sending a request. The optional sandbox uses made-up records for testing. See current pricing for paid plans when you need more checks.

Estimate completed subjects across your API, dashboard, batches, and recurring monitors. Include analyst review and retention needs in the comparison. The screening API cost guide provides worked planning examples without treating requests, subjects, and review cases as the same billing unit.

Test the full OFAC screening flow

Use synthetic requests and a controlled transport in development. Validate what your application does with each result, not just whether it can reach the endpoint. Production source availability and the organization’s review process need separate verification.

  • A valid no_match preserves its selected-source scope and screening ID.
  • A potential_match reaches the review workflow with a stable customer reference.
  • Malformed or inconsistent result fields keep the operation incomplete.
  • Unavailable required coverage cannot become an empty matches success.
  • A corrected identity creates a new operation linked to the earlier record.
  • Routine logs omit credentials, submitted identities and raw evidence.

Sources and references

Frequently asked questions

Is the SanctionsKit OFAC API an official government service?

No. OFAC publishes the official list data. SanctionsKit is a commercial screening service that compares your inputs with selected sources and gives your team a review workflow. OFAC does not endorse the service or approve individual screening results.

Can I test an OFAC API integration for free?

Yes. Your first workspace gets 250 free live screenings to share across the API and dashboard. They last for the life of the workspace and do not reset each month. No credit card is needed. Check which OFAC sources are available before sending a live request. You can also use the optional sandbox to test with made-up records.

Does selecting ofac-sdn also search the non-SDN lists?

No. ofac-sdn and ofac-non-sdn are separate source IDs. Check their current availability, then include the sources your policy requires. Keep each returned list name with the candidate because restrictions differ across the underlying lists.

What should my application save after an OFAC screening?

Save the screening ID with your customer reference and operation ID. Keep the outcome, selected coverage, and version information available to the review workflow. Store identity details and evidence only where authorized, and keep them out of routine logs. Use the saved ID to retrieve retained evidence instead of running another check just to view it.

Does an OFAC no-match mean I can approve the customer?

It means the completed screening returned no candidates under the selected coverage and matching rules. It does not decide whether ownership rules, other restrictions, or your own review requirements apply. Your organization makes the final decision after completing the checks its policy requires.