OpenSanctions API
Overview
OpenSanctions provides open access to a consolidated database of sanctioned individuals, criminal entities, and politically exposed persons (PEPs) from over 100 official sources worldwide. No API key is needed for basic searches, making it easy to get started immediately. It is a valuable tool for compliance checks, investigative journalism, and anti-money-laundering (AML) applications.
Beginner Tip
Search for an entity by name using https://api.opensanctions.org/search/default?q=PERSON_NAME and parse the results array for matches. The free API works without authentication, though commercial use requires a license.
Available Data
Example Response
{
"name": "Japan",
"capital": "Tokyo",
"population": 125800000,
"region": "Asia",
"languages": [
"Japanese"
],
"flag": "https://flagcdn.com/jp.svg",
"currencies": [
{
"code": "JPY",
"name": "Japanese yen"
}
]
} Field Reference
results List of matched entity objects from the sanctions database results[].id Unique OpenSanctions identifier for the entity results[].caption Primary display name of the entity results[].schema Entity type classification, e.g., "Person", "Organization", "Vessel" results[].properties.country List of country codes associated with the entity results[].datasets List of source dataset names where this entity appears (e.g., "us_ofac_sdn") Implementation Example
// ⚠️ Note: This URL may be a documentation page. Check official docs for actual API endpoint.
const url = "https://www.opensanctions.org/docs/api/";
const response = await fetch(url);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
Common Errors & Troubleshooting
Matrix Score Breakdown
Fully tested on Apr 5, 2026
Technical Specifications
Related Tags
Similar APIs
View All →18F
18F provides programmatic access to unofficial us federal government api development via REST API.
API Setu
API Setu is an Indian Government platform that aggregates a wide variety of official APIs covering KYC verification, business registration, education records, and employment data.
Archive.org
⭐ Beginner's PickThe Internet Archive API gives you programmatic access to the Wayback Machine and one of the world's largest digital libraries, containing archived websites, books, audio, video, and software.
BotsArchive
⭐ Beginner's PickBotsArchive provides a public database of Telegram bots with details returned in JSON format.
Callook.info
⭐ Beginner's PickCallook.info is a free API that lets you look up United States amateur (ham) radio callsigns.