https://api.compliapi.com/api/v2. It runs the same screening as v1, against the same lists. Authentication, request costs, x402 prices, the audit trail, rate limits and the meanings of sanctioned and flagged are all the same. What changes is the shape. The OpenAPI spec at compliapi.com/openapi.json describes v2. v1’s spec is at https://api.compliapi.com/api/v1/openapi.json.
Endpoints
Every screen takes
value, an optional ref (your own id for the subject, echoed and audited) and, except pep, an optional lists filter. name also takes party_type, birth_date, country, id_number, threshold and limit; pep takes birth_date, country and limit. Percent-encode value as in any query string (+ is %2B).
The envelope
Every screen — PEP and country included — returns the same object:valueis what was screened.inputis what you sent, reported only when the screen changed it (an ENS name resolved to an address).sanctionedis true only for a match on a government sanctions list;flaggedfor any match. A PEP match setsflagged, neversanctioned.- Every match has the same fields.
matchisexact,partialorfuzzy(a scored name or PEP match).scoreis 0–100, andnullfor a partial identifier match, which is not scored.partyis the listed party, when the list names one. candidatesholds PEP results that fell below OpenSanctions’ match threshold, for review; they are not matches.excludedcounts name matches dropped because every listed birth date disagreed.
Search
GET /search is one endpoint with two modes:
- Without a token it is free and stores nothing. It is rate-limited per client IP and returns up to 25 results.
- With an API token it costs one request and is written to your audit trail. It is rate-limited per organization and returns up to 50 results.
metered in the response says which mode ran. Results are ranked candidates (each with a 0–100 score), never a verdict.
IP
/vpn and /geo). vpn is null when there is no privacy data for the address, and country_screen honours lists.
Errors
Errors are RFC 9457 problem details (application/problem+json), with v1’s error codes in code:
422 adds errors, one {field, detail} per invalid parameter. A quota 429 adds resets_at and upgrade_url. The x402 402 is unchanged: it is the x402 protocol’s challenge.
From v1
v2 has no whole-list downloads; the v1 ones are retired.
The MCP tools switch to the v2 envelope on 26 February 2027, with 90 days’ notice.