Getting started with the API

You're using the API? How exciting! This page will get you started by linking to all the relevant resources.

The OpenSanctions API does three things: /match screens people and companies against the database, /search provides full-text search, and /entities returns the complete record for a single entity.

Don't have an API key yet?

Sign up to create one. If you sign up with a business email address, you start with a free trial. We also issue free API keys for public-interest work: journalism, civil-society advocacy, and academic research.

Make your first request 

The endpoints 

  • The matching API (/match) is the core of a screening workflow: you describe an entity in as much detail as you can, and it returns scored candidates from the database. Deep dives on the request and the response explain every field.
  • The entities API (/entities/<id>) returns everything we know about one entity, with related records nested inline.
  • The search API (/search) is full-text search, like the search box on this website. It's built for user-facing search interfaces, not for screening.

Understand the results 

  • The data dictionary lists all the entity types, properties, and relationships used in the data.
  • Risk topics and sanctions programs tell you why an entity is listed: whether a match is sanctioned, sanction-linked, a PEP, or some other category of risk.
  • Nested entities explains how related records such as sanction details, family relationships, and business relationships are embedded in API responses.

Build a screening process 

Commercials 

The OpenSanctions API is paid from prepaid credit bundles. One credit covers one metered operation (what counts), and larger bundles cost less per query. Credits are valid for a year, and there is no subscription or contract lock-in.

  • Find more details in the commercial FAQ.
  • Screening more than a million entities a year? Talk to sales for a custom bundle.
  • Visit your customer portal to buy credits, view usage, manage your API keys, and configure auto-recharge.