Screen one or more people or companies against a dataset and get scored candidates.
POST/match/{dataset}
- Takes: Name
- Passive: the target is not contacted
The dataset in the path sets which sources are queried; default covers all data. Filters in one parameter are combined with OR, across parameters with AND. Property values must be lists of strings even for a single value; country names are normalised to codes. The response normalises the input and may add fields you did not provide, so compare query with what you sent.
Path parameters
datasetDataset scope, such as default, us_ofac_sdn or eu_sanctions
Query parameters
topicsOnly candidates with at least one listed topic; repeatable
include_datasetOnly candidates in at least one listed dataset; repeatable
exclude_datasetExclude candidates that appear only in the listed datasets; repeatable
algorithmMatching algorithm; the docs suggest pinning it
thresholdMinimum score to count as a match
limitMaximum results per query; higher values make queries slower
Request body (JSON) · 3ShowHide
queries
Map of query IDs to query objects
schema
Matchable schema such as Person, Company, Vessel or LegalEntity
properties
Property names mapped to lists of string values
Response fields · 13ShowHide
status
HTTP status of that query
total
Total candidates evaluated
query
How the API parsed the input
id
Entity ID, usable with /entities/{id}
caption
Display name
schema
Entity type
properties
Aggregated values from all source datasets; each key maps to a list
datasets[]
Sources mentioning the entity
target
True if the entity has risk topics
score
0 to 1 confidence that this is the queried entity; not a risk score
match
True when the score meets the threshold
explanations
Per-feature breakdown of the score
limit
Maximum results per query
curl -X POST 'https://api.opensanctions.org/match/default' \
-H 'Authorization: ApiKey YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"queries":{"q":{"schema":"Person","properties":{"name":["Jane Example"],"birthDate":["1970"],"nationality":["Ruritania"]}}}}'{
"responses": {
"q": {
"status": 200,
"total": 1,
"query": {
"schema": "Person",
"properties": {
"name": [
"Jane Example"
]
}
},
"results": [
{
"id": "NK-example0000000000000000",
"caption": "Jane Example",
"schema": "Person",
"properties": {
"name": [
"Jane Example"
],
"birthDate": [
"1970-01-01"
],
"country": [
"xx"
]
},
"datasets": [
"example_sanctions"
],
"referents": [
"example-0001"
],
"target": true,
"first_seen": "2024-01-01T00:00:00",
"last_seen": "2026-01-01T00:00:00",
"score": 0.92,
"match": true
}
]
}
},
"limit": 5
}