API Documentation
Download sanctions data as static, read-only files. No API key required. Search and filtering run in your client; these URLs do not accept search or pagination parameters.
Prefer a direct file download? Download the published datasets .
Base URL
https://www.ammitto.org/api/v1OpenAPI contract
Download OpenAPI 3.1 (JSON) for the static file API. File suffixes are required. Available identifiers come from the catalogue and collection indexes; legal instruments use node/legal-instrument/. Snapshot values below are illustrative excerpts, not live totals.
Endpoints
/index.jsonldCatalogue of everything a run published: each file with its media type and byte size, each collection with its members. Start here rather than guessing a path.
curl https://www.ammitto.org/api/v1/index.jsonld{
"@context": "https://ammitto.org/api/v1/context.jsonld",
"@type": "Index",
"slice": "catalogue",
"generated": "2026-10-21T12:00:00Z",
"bulkRelease": {
"tag": "api-v1-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"url": "https://github.com/ammitto/data/releases/tag/api-v1-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"published": "2026-10-20T10:00:00Z"
},
"entries": [
{
"name": "all.jsonld",
"url": "https://github.com/ammitto/data/releases/download/api-v1-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/all.jsonld",
"mediaType": "application/ld+json",
"description": "Every node in one graph",
"bytes": 156423069,
"published": "2026-10-20T10:00:00Z",
"digest": "sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
"releaseTag": "api-v1-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"sourceCommit": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
},
{
"name": "sources",
"url": "sources",
"description": "One aggregate per source",
"members": ["au.jsonld", "ca.jsonld", "ch.jsonld", "..."]
}
]
}/stats.jsonEntity and entry counts per source, and the totals. About 1 KB — read this rather than counting a larger file.
curl https://www.ammitto.org/api/v1/stats.json{
"generated_at": "2026-09-14T11:54:44Z",
"sources": {
"eu": { "entities": 6329, "entries": 6329 },
"us": { "entities": 19410, "entries": 19410 },
"uk": { "entities": 6355, "entries": 6355 }
},
"total_entities": 61332,
"total_entries": 61332,
"total_regimes": 179
}/sources/{source}.jsonldEvery entity and entry from one source, as JSON-LD. The catalogue lists the sources available in the current publication.
curl https://www.ammitto.org/api/v1/sources/eu.jsonld{
"@context": "https://ammitto.org/api/v1/context.jsonld",
"@graph": [
{
"@id": "https://www.ammitto.org/entity/eu/13",
"@type": "PersonEntity",
"entityType": "person",
"names": [
{ "@type": "NameVariant", "fullName": "…", "script": "Latn", "isPrimary": true }
]
}
]
}/node/entity/{source}/{id}.jsonldOne entity on its own. Cheaper than the source aggregate when you already know the identifier; /node/entity/index.jsonld lists them.
curl https://www.ammitto.org/api/v1/node/entity/au/100.jsonld{
"@id": "https://www.ammitto.org/entity/au/100",
"@type": "PersonEntity",
"entityType": "person",
"names": [
{ "@type": "NameVariant", "fullName": "Nazir Mohammad Abdul Basir", "script": "Latn", "isPrimary": true },
{ "@type": "NameVariant", "fullName": "Nazar Mohammad", "script": "Latn", "isPrimary": false }
]
}Bulk downloads via /index.jsonldWhole graph exports in JSON-LD or RDF/Turtle. Discover their immutable GitHub Release URLs in the catalogue and follow redirects. Check each entry’s size, digest and published date; the bulk release can differ from the searchable site snapshot. Prefer a source aggregate or a node document when you only need part of the graph.
curl --fail https://www.ammitto.org/api/v1/index.jsonld > catalogue.json
curl --fail --location "$(jq -r '.entries[] | select(.name == "all.jsonld") | .url' catalogue.json)" -o all.jsonld{
"@context": "https://ammitto.org/api/v1/context.jsonld",
"@graph": [ /* every entity, entry, regime, authority and instrument */ ]
}/ontology/classes.jsonldThe published vocabulary, with properties.jsonld and hierarchy.json beside it. context.jsonld at the root maps the terms every document above uses.
curl https://www.ammitto.org/api/v1/ontology/classes.jsonld{
"@context": "https://ammitto.org/api/v1/context.jsonld",
"@graph": [
{
"@id": "https://www.ammitto.org/ontology/Entity",
"@type": "rdfs:Class",
"label": "Entity",
"comment": "Base class for all sanctionable entities"
}
]
}/facets/{facet}.jsonValue lists for filtering — types, authorities, regimes, list types, countries, statuses — each with a count.
curl https://www.ammitto.org/api/v1/facets/types.json{
"facets": [
{ "code": "person", "name": "Person", "icon": "user", "count": 31318 },
{ "code": "organization", "name": "Organization", "icon": "building", "count": 26946 },
{ "code": "vessel", "name": "Vessel", "icon": "ship", "count": 2726 },
{ "code": "aircraft", "name": "Aircraft", "icon": "plane", "count": 342 }
]
}/search-index/manifest.jsonDiscover source shards for client-side search. Each file is relative to search-index/. The former search-index.json download has been replaced.
curl --fail https://www.ammitto.org/api/v1/search-index/manifest.json{
"metadata": { "generated": "2026-10-14T10:35:08Z", "totalEntities": 61578, "sources": 14 },
"shards": [ { "code": "cn", "file": "cn.json", "count": 323 } ]
}/search-index/{source}.jsonA compact entities array for one source; select the file from the manifest. Its metadata describes only this shard. names are strings here, unlike NameVariant objects in full entity nodes.
curl --fail https://www.ammitto.org/api/v1/search-index/cn.json{
"metadata": { "generated": "2026-10-14T10:35:08Z", "totalEntities": 323, "sources": 1 },
"entities": [ { "id": "https://www.ammitto.org/entity/cn/202510-dedrone-by-axon", "ref": "cn/202510-dedrone-by-axon", "type": "organization", "names": ["Dedrone by Axon", "反无人机技术公司"], "primaryName": "Dedrone by Axon", "authority": "cn", "status": "active" } ]
}/by-authority/{code}.jsonldSanction-entry references, not full entities. Discover codes at by-authority/index.jsonld. by-regime, by-status and by-list work similarly; by-type contains entity references.
curl --fail https://www.ammitto.org/api/v1/by-authority/cn.jsonld{
"@context": "https://ammitto.org/api/v1/context.jsonld",
"@type": "Index",
"slice": "by-authority",
"authority": { "@id": "https://www.ammitto.org/authority/cn" },
"entries": [ { "@id": "https://www.ammitto.org/entry/cn/unreliable-entity-list/202510-dedrone-by-axon" } ]
}/node/entry/{source}/{list}/{id}.jsonldA sanction entry links entityId to its entity and carries authority, regime and status. Discover exact paths in node/entry/index.jsonld; entry identifiers can contain further path segments.
curl --fail https://www.ammitto.org/api/v1/node/entry/cn/unreliable-entity-list/202510-dedrone-by-axon.jsonld{
"@id": "https://www.ammitto.org/entry/cn/unreliable-entity-list/202510-dedrone-by-axon",
"@type": "SanctionEntry",
"entityId": "https://www.ammitto.org/entity/cn/202510-dedrone-by-axon",
"authority": { "@id": "https://www.ammitto.org/authority/cn" },
"status": "active"
}Code Examples
JavaScript
// Ask the catalogue what exists before fetching anything
const index = await (await fetch('https://www.ammitto.org/api/v1/index.jsonld')).json();
for (const entry of index.entries) {
console.log(entry.name, entry.bytes ?? `${entry.members?.length ?? 0} members`);
}
// Then take one source
const data = await (await fetch('https://www.ammitto.org/api/v1/sources/eu.jsonld')).json();
// The graph holds entity AND sanction-entry nodes; entries carry no names
for (const node of data['@graph']) {
if (!node['@id'].includes('/entity/')) continue;
console.log(node.names?.[0]?.fullName);
}Search one source locally
// Filter a downloaded shard; this is a local substring query, not FlexSearch.
async function getJson(path) {
const response = await fetch('https://www.ammitto.org/api/v1/' + path);
if (!response.ok) throw new Error('HTTP ' + response.status + ': ' + path);
return response.json();
}
const manifest = await getJson('search-index/manifest.json');
const shard = manifest.shards.find(s => s.code === 'cn');
if (!shard) throw new Error('CN is not in this publication');
const data = await getJson('search-index/' + shard.file);
const query = 'dedrone';
const matches = data.entities.filter(entity =>
entity.status === 'active' &&
entity.names.some(name => name.toLowerCase().includes(query.toLowerCase()))
);
console.log(matches.map(entity => entity.ref));Follow a sanction-entry reference
// Resolve a slice reference to its entry, then to its entity.
// Uses getJson from the preceding example.
function nodePath(iri) {
const url = new URL(iri);
if (url.origin !== 'https://www.ammitto.org') throw new Error('Unexpected IRI');
return 'node' + url.pathname + '.jsonld';
}
const slice = await getJson('by-authority/cn.jsonld');
const first = slice.entries[0];
if (first) {
const entry = await getJson(nodePath(first['@id']));
const entity = await getJson(nodePath(entry.entityId));
console.log(entry.status, entity.names.find(n => n.isPrimary)?.fullName);
}Ruby
require 'net/http'
require 'json'
stats = JSON.parse(Net::HTTP.get(URI('https://www.ammitto.org/api/v1/stats.json')))
# The totals are top-level keys, not nested under "totals"
puts "Entities: #{stats['total_entities']} across #{stats['sources'].size} sources"
stats['sources'].each { |code, c| puts " #{code}: #{c['entities']}" }Python
import requests
BASE = 'https://www.ammitto.org/api/v1'
# One entity, by identifier — far cheaper than the source aggregate
node = requests.get(f'{BASE}/node/entity/au/100.jsonld').json()
print(node['@type'], node['names'][0]['fullName'])
# Or a whole source
data = requests.get(f'{BASE}/sources/eu.jsonld').json()
for n in data['@graph']:
if '/entity/' not in n['@id']:
continue
for name in n.get('names', [])[:1]:
if name.get('fullName'):
print(name['fullName'])SPARQL: query a local dataset
Ammitto publishes Turtle downloads; it currently has no hosted SPARQL endpoint. Load sources/cn.ttl or all.ttl into your own RDF tool or SPARQL store. The queries use the default graph and the Turtle exporter’s ontology predicates. An entity’s names are blank nodes reached through ammitto:hasName.
With Ruby and the rdf-turtle and sparql gems already available, download a source and run the query locally:
curl --fail --location --compressed https://www.ammitto.org/api/v1/sources/cn.ttl -o cn.ttl
curl --fail --location https://www.ammitto.org/queries/active-cn-entries.rq -o active-cn-entries.rq
sparql execute --dataset cn.ttl --format json active-cn-entries.rqActive CN entries with primary names
PREFIX ammitto: <https://www.ammitto.org/ontology/>
PREFIX authority: <https://www.ammitto.org/authority/>
SELECT DISTINCT ?entry ?entity ?name ?regime
WHERE {
?entry a ammitto:SanctionEntry ;
ammitto:hasAuthority authority:cn ;
ammitto:status "active" ;
ammitto:entityId ?entity ;
ammitto:hasRegime ?regime .
?entity ammitto:hasName ?nameNode .
?nameNode ammitto:fullName ?name ;
ammitto:isPrimary true .
}
ORDER BY ?entity ?entry
LIMIT 20
Count distinct entities by type
PREFIX ammitto: <https://www.ammitto.org/ontology/>
SELECT ?type (COUNT(DISTINCT ?entity) AS ?count)
WHERE {
?entity ammitto:entityType ?type .
}
GROUP BY ?type
ORDER BY ?type
Counts cover only the loaded dataset. For a store you operate, import Turtle into its default graph and use its query interface. A named-graph import needs GRAPH <your-import-graph-iri> { ... } around the query patterns. Follow that store’s authentication and network setup instructions; the static API cannot execute SPARQL. See the local and self-hosting guide for details.
Caching and bulk access
No service quota is specified here; hosting limits may apply. Cache snapshots and use compressed downloads. For repeated or high-volume queries, download the relevant data and query it locally.