UK Sanctions List API Guide with Apify
Stream the official FCDO XML through a filterable Apify Actor for controlled exports and schedules.

Stream the official FCDO XML through a filterable Apify Actor for controlled exports and schedules. The UK Sanctions List Scraper turns each public UK designation into a bounded Apify dataset row and preserves a direct source URL for verification.
Start with a reviewable sample
{"designationType":"Entity","queries":[],"regimes":[],"maxResults":500}Begin with ten to one hundred records, not a full archive. Inspect identifier stability, date formats, nulls, arrays, free-text fields, and source links. Run a small sample, validate list semantics, then archive snapshots using stable Unique IDs. Once the sample matches the intended workflow, raise the result limit deliberately and save the input as a named Apify Task.
Design the dataset around source truth
Keep UK Unique ID, OFSI group ID, UN reference, primary name, aliases, designation type, regime, measures, dates, reasons, addresses, and source URL together in the raw landing table. Do not replace missing values with zero, invent status labels, or silently collapse aliases. Use the publisher's stable identifier as the upsert key where one exists; otherwise combine the canonical source URL and observed identifier. Add a downstream collection timestamp so analysts can distinguish a revised record from a newly published record.
A useful pipeline has three layers. The raw layer stores the Actor output without lossy transformations. The review layer adds normalized dates, currencies, or matching candidates while preserving original fields. The application layer contains only decisions that have passed the organization's validation rules. This separation makes source changes auditable and prevents a convenient spreadsheet formula from becoming an undocumented business rule.
Schedule changes without creating alert noise
Run the Task on a cadence appropriate to how often UK government changes. Compare stable keys and material fields rather than array order or page position. Send alerts only for additions, removals, deadline changes, status changes, or other changes relevant to the workflow. Store the previous snapshot in a table or object store and make the diff reproducible.
For operational use, log the Actor run ID, dataset ID, input, source URL, and collection time. Use retries for transient network failures, but fail visibly when the publisher returns no records for a query that normally has coverage. Silent empty datasets are more dangerous than explicit failures because they can look like a legitimate all-clear.
Validate before acting
A name or alias match alone is never a confirmed sanctions match. Verify identifiers, regime, measures, dates, and the current official UK record; use qualified human review for every high-stakes decision. The Actor is a collection tool, not a substitute for due diligence, legal interpretation, financial analysis, or publisher methodology. Reviewers should open the source URL, confirm that the record is current, and document the evidence used for any material conclusion.
This workflow is designed for sanctions analysts, compliance teams, maritime researchers, and auditors. It is an independent integration and is not affiliated with or endorsed by UK government.
Stream XML instead of downloading spreadsheets
The FCDO provides static XML, CSV, spreadsheet, text, and other formats. CSV expands aliases into many rows and is currently much larger than the XML, which complicates deduplication. The Actor streams XML because one Designation naturally contains its names, addresses, indicators, reasons, and identifiers.
The parser strips XML namespaces by local tag name, handles optional children, and emits one row per designation. Query, regime, and type filters run before dataset writes, so users pay only for saved matches. The default ten-row run costs at most three cents at the FREE tier and is suitable for schema review.
For API integration, call a saved Task rather than constructing ad hoc inputs in every application. Store the Task name, Actor build, run ID, and official source link. UK list semantics can change independently of the transport format, so application owners still need a legal and data-governance review process.
Why use an Apify Task
A Task makes the exact input repeatable across schedules, webhooks, the API, Make, Zapier, n8n, and MCP clients. Keep one Task per business question instead of one enormous catch-all export. Small Tasks are easier to test, cheaper to rerun, and clearer when a source field or filter changes. The Thirdwatch Actor on Apify provides JSON, CSV, Excel, RSS, and API access to the resulting dataset.
Frequently asked questions
Does this workflow require a private source API key?
No. It uses data the source publisher makes publicly available.
Can I schedule the export?
Yes. Save the validated input as an Apify Task and attach a schedule or webhook.