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, we generate a free trial key for you. 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 uses simple, transparent pay-as-you-go metering: matching and reconciliation are billed per logical query, while search is billed per request. There is no contract lock-in.