# EU DSA Transparency Database Scraper (`xyrelith-data/eu-dsa-transparency-database`) Actor

Search the EU DSA Transparency Database of content-moderation statements of reasons. Filter by platform, date, category, decision, language and automation; look up exact UUIDs; or index daily full/light archive files. All official fields, cookieless.

- **URL**: https://apify.com/xyrelith-data/eu-dsa-transparency-database.md
- **Developed by:** [Xyrelith Data](https://apify.com/xyrelith-data) (community)
- **Categories:** Automation, Developer tools, Social media
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.49 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## EU DSA Transparency Database Scraper

Scrape the European Commission's **DSA Transparency Database** — the official register where online platforms file a statement of reasons for every content-moderation decision in the EU. Search the last six months of statements by platform, date, category, decision type, content language or automation level, pull exact statements by UUID, or index the daily full/light archive files with submission counts and sizes. Public data, no login, no API key, no cookies.

### What this actor does

- **Four modes:** `search`, `byStatementIds`, `dailyArchives`, `platformDirectory`
- **Every official field:** all 38 columns of the public statement schema, plus readable labels for coded values
- **Deep filters:** 396 platforms, 16 categories, 69 category keywords, 30 EU/EEA countries, 184 content languages, every decision and automation enum
- **Goes past the CSV cap:** when a query hits the 1,000-row export limit, the actor slices it by day and platform
- **Archive index:** one row per day and platform with statement count, full/light download links, SHA-1 links and file sizes
- **Empty fields are omitted** — every record contains only real, non-empty values

### Output per statement (modes `search` and `byStatementIds`)

- `uuid`, `statementUrl` — official statement identifier and public page
- `platformName`, `platformUid` — platform display name and platform-side record ID
- `createdAt` — when the database received the statement (UTC, ISO 8601)
- `decisionVisibility[]`, `decisionVisibilityLabels[]`, `decisionVisibilityOther`
- `endDateVisibilityRestriction`
- `decisionMonetary[]`, `decisionMonetaryLabels[]`, `decisionMonetaryOther`, `endDateMonetaryRestriction`
- `decisionProvision[]`, `decisionProvisionLabels[]`, `endDateServiceRestriction`
- `decisionAccount[]`, `decisionAccountLabels[]`, `endDateAccountRestriction`
- `accountType`, `accountTypeLabel`
- `decisionGround`, `decisionGroundLabel`, `decisionGroundReferenceUrl`
- `illegalContentLegalGround`, `illegalContentExplanation`
- `incompatibleContentGround`, `incompatibleContentExplanation`, `incompatibleContentIllegal`
- `category`, `categoryLabel`, `categoryAddition[]`
- `categorySpecification[]`, `categorySpecificationLabels[]`, `categorySpecificationOther`
- `contentType[]`, `contentTypeLabels[]`, `contentTypeOther`
- `contentLanguage`, `contentLanguageLabel`, `contentDate`, `contentIdEan`
- `territorialScope[]` (ISO 3166-1 alpha-2), `territorialScopeLabels[]`
- `applicationDate`, `decisionFacts`
- `sourceType`, `sourceTypeLabel`, `sourceIdentity`
- `automatedDetection` (boolean), `automatedDecision`, `automatedDecisionLabel`
- `recordType: "statement"`, `sourceUrl`, `scrapedAt`

### Output per archive day (mode `dailyArchives`)

- `date` — the submission day
- `platformId`, `platformName` — omitted for the all-platforms global archive
- `statementCount` — statements received that day
- `archiveFileId`
- `fullArchiveUrl`, `fullSha1Url`, `fullCsvSize`, `fullZipSize`, `fullCsvBytes`, `fullZipBytes`
- `lightArchiveUrl`, `lightSha1Url`, `lightCsvSize`, `lightZipSize`, `lightCsvBytes`, `lightZipBytes`
- `archivePageUrl`, `recordType: "archiveDay"`, `sourceUrl`, `scrapedAt`

Light archives omit long free-text explanations and the territorial scope; full archives contain the complete schema. The download links point at the European Commission's own files — the actor indexes them and does not rehost multi-gigabyte archives.

### Output per platform (mode `platformDirectory`)

- `platformId`, `platformName`
- `searchUrl`, `archiveUrl` — pre-filtered public search and download pages
- `recordType: "platform"`, `sourceUrl`, `scrapedAt`

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `mode` | string | `search` | `search` / `byStatementIds` / `dailyArchives` / `platformDirectory` |
| `searchQuery` | string | `""` | Free-text keyword searched inside the statement text (mode=search) |
| `platforms` | array | – | One or more of the 396 active platforms; empty = all (mode=search, dailyArchives) |
| `createdFrom` | string | – | Received on/after this day, `YYYY-MM-DD` or `DD-MM-YYYY` |
| `createdTo` | string | – | Received on/before this day, `YYYY-MM-DD` or `DD-MM-YYYY` |
| `decisionGround` | array | – | Illegal content / incompatible with terms |
| `sourceType` | array | – | Article 16 notice, trusted flagger, other notification, own initiative |
| `category` | array | – | Violation category (16 official values) |
| `categorySpecification` | array | – | Category keyword (69 official values) |
| `territorialScope` | array | – | EU/EEA country codes (30 values) |
| `contentType` | array | – | App, audio, image, product, synthetic media, text, video, other |
| `contentLanguage` | array | – | Content language (184 official values) |
| `decisionVisibility` | array | – | Visibility restrictions (7 values) |
| `decisionMonetary` | array | – | Monetary restrictions (3 values) |
| `decisionProvision` | array | – | Service restrictions (4 values) |
| `decisionAccount` | array | – | Account restrictions (2 values) |
| `accountType` | array | – | Business / private |
| `automatedDetection` | array | – | `Yes` / `No` |
| `automatedDecision` | array | – | Fully / partially / not automated |
| `statementIds` | array | – | UUIDs or statement URLs (mode=byStatementIds) |
| `maxItems` | int | `20` | Hard cap (1–10,000) |
| `autoSlice` | bool | `true` | Split capped searches by day/platform to fetch more rows |
| `maxRequests` | int | `60` | HTTP request budget for slicing and archive pagination |

#### Example: recent counterfeit removals on TikTok and AliExpress

```json
{
  "mode": "search",
  "searchQuery": "counterfeit",
  "platforms": ["TikTok", "AliExpress"],
  "createdFrom": "2026-11-01",
  "createdTo": "2026-11-14",
  "decisionGround": ["DECISION_GROUND_ILLEGAL_CONTENT"],
  "maxItems": 200
}
```

#### Example: every automated decision in Germany last week

```json
{
  "mode": "search",
  "platforms": ["YouTube"],
  "createdFrom": "2026-11-08",
  "createdTo": "2026-11-14",
  "territorialScope": ["DE"],
  "automatedDecision": ["AUTOMATED_DECISION_FULLY"],
  "maxItems": 500
}
```

#### Example: look up exact statements

```json
{
  "mode": "byStatementIds",
  "statementIds": [
    "595bd359-dbd1-4885-8f90-8db5e0b1e3f9",
    "https://transparency.dsa.ec.europa.eu/statement/cfc4360b-93c9-4a5f-b5e1-f8d7c0757f07"
  ]
}
```

#### Example: daily archive index for Airbnb

```json
{
  "mode": "dailyArchives",
  "platforms": ["Airbnb"],
  "createdFrom": "2026-11-01",
  "createdTo": "2026-11-14",
  "maxItems": 20
}
```

### Use cases

- **Trust & safety teams** — benchmark takedown volumes and automation rates against peer platforms
- **Policy researchers** — export statements by category, country and decision ground for empirical DSA studies
- **Journalists** — find individual moderation decisions and quote the platform's own facts and explanations
- **Compliance monitoring** — track a platform's daily statement volume and archive availability
- **Data teams** — join official statement fields to internal moderation records through `uuid` and `platformUid`
- **Marketplace sellers** — see how often counterfeit or product-safety decisions are automated per platform

### FAQ

**What exactly is a "statement of reasons"?** Article 17 of the Digital Services Act requires platforms to explain every content restriction: what was restricted, why, on what legal or contractual ground, in which countries, and whether automation was involved. The database stores those statements.

**Why does a search stop at 10,000 results?** The public search page paginates only the first 10,000 matches and the CSV export returns at most the first 1,000 for a filter combination. This actor slices a capped query by day and platform to collect more, within the `maxRequests` budget. For exhaustive bulk work, use the EU's daily archive files, which this actor indexes.

**How fresh is the data?** The Commission updates the database once per day. Statements are retained for six months; older statements are not available through public search or the downloads page.

**Why are some fields missing on a direct UUID lookup?** The public statement page shows the decision fields in human-readable form, while four CSV-only fields — `platformUid`, `contentIdEan`, `sourceIdentity` and `categoryAddition` — are not printed there. The actor first tries the public CSV sample and falls back to the statement page, so those four appear whenever the statement is in the CSV sample.

**What is the difference between full and light daily archives?** Full files contain every public statement attribute. Light files drop the long free-text fields (`illegalContentExplanation`, `incompatibleContentExplanation`, `decisionFacts`) and `territorialScope`, which makes them much smaller.

**Are the archive files downloaded by this actor?** No. The archive index emits the official download URLs, sizes and SHA-1 links. The files are multi-gigabyte zips that belong in your own storage, not in a scraper run.

**Why do territorial-scope filters return statements covering more countries than I selected?** A statement can apply to several countries. The filter matches statements whose scope includes the selected country, not only that country.

**Can I filter by platform ID instead of name?** Yes. The API accepts either the exact platform name or the numeric ID in the `platforms` array.

**Is this affiliated with the European Commission?** No. It is a third-party actor that reads the publicly accessible DSA Transparency Database. The data is factual and public; it is not legal advice.

# Actor input Schema

## `mode` (type: `string`):

What to fetch: filtered statement search, direct statement IDs/URLs, the daily-archive index, or the platform directory.

## `searchQuery` (type: `string`):

Searches the free-text fields of statements (decision facts, explanations, legal/contractual grounds). Official search covers the last 6 months. Leave empty to browse the latest statements.

## `platforms` (type: `array`):

Filter by one or more of the 396 active platforms. Leave empty for all platforms. Names or numeric IDs are accepted by the API.

## `createdFrom` (type: `string`):

Only statements received on/after this day. Accepts YYYY-MM-DD or DD-MM-YYYY. Leave empty for the full 6-month window.

## `createdTo` (type: `string`):

Only statements received on/before this day. Accepts YYYY-MM-DD or DD-MM-YYYY. Leave empty for the newest data.

## `decisionGround` (type: `array`):

Illegal content vs content incompatible with the platform's terms and conditions.

## `sourceType` (type: `array`):

How the platform learned about the content (Article 16 notice, trusted flagger, other notification, own initiative).

## `category` (type: `array`):

The violation category reported in the statement.

## `categorySpecification` (type: `array`):

Additional keywords used by platforms to specify the category.

## `territorialScope` (type: `array`):

EU/EEA countries where the decision applies.

## `contentType` (type: `array`):

Type of content or product affected by the decision.

## `contentLanguage` (type: `array`):

Language of the affected content.

## `decisionVisibility` (type: `array`):

Visibility restrictions imposed by the decision.

## `decisionMonetary` (type: `array`):

Monetary restrictions imposed by the decision.

## `decisionProvision` (type: `array`):

Service-provision restrictions imposed by the decision.

## `decisionAccount` (type: `array`):

Account restrictions imposed by the decision.

## `accountType` (type: `array`):

Business or private account.

## `automatedDetection` (type: `array`):

Whether the content was detected/identified by automated means.

## `automatedDecision` (type: `array`):

Whether the decision itself was fully, partially or not automated.

## `statementIds` (type: `array`):

One or more official statement UUIDs or statement URLs, e.g. `595bd359-dbd1-4885-8f90-8db5e0b1e3f9` or `https://transparency.dsa.ec.europa.eu/statement/<uuid>`.

## `maxItems` (type: `integer`):

Hard cap on emitted records. The official public search paginates at 10,000 rows; the CSV export returns at most 1,000 rows per filter combination.

## `autoSlice` (type: `boolean`):

When a search hits the 1,000-row CSV cap and maxItems is higher, split the query by day and platform to fetch more rows (subject to maxRequests).

## `maxRequests` (type: `integer`):

Safety budget for search slicing and archive pagination. Stops the run early when reached.

## Actor input object example

```json
{
  "mode": "search",
  "searchQuery": "counterfeit",
  "platforms": [],
  "decisionGround": [],
  "sourceType": [],
  "category": [],
  "categorySpecification": [],
  "territorialScope": [],
  "contentType": [],
  "contentLanguage": [],
  "decisionVisibility": [],
  "decisionMonetary": [],
  "decisionProvision": [],
  "decisionAccount": [],
  "accountType": [],
  "automatedDetection": [],
  "automatedDecision": [],
  "statementIds": [],
  "maxItems": 1,
  "autoSlice": true,
  "maxRequests": 60
}
```

# Actor output Schema

## `results` (type: `string`):

Dataset containing statements, archive days or platform records for this run.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "mode": "search",
    "searchQuery": "counterfeit",
    "platforms": [],
    "decisionGround": [],
    "sourceType": [],
    "category": [],
    "categorySpecification": [],
    "territorialScope": [],
    "contentType": [],
    "contentLanguage": [],
    "decisionVisibility": [],
    "decisionMonetary": [],
    "decisionProvision": [],
    "decisionAccount": [],
    "accountType": [],
    "automatedDetection": [],
    "automatedDecision": [],
    "statementIds": [],
    "maxItems": 1,
    "autoSlice": true,
    "maxRequests": 60
};

// Run the Actor and wait for it to finish
const run = await client.actor("xyrelith-data/eu-dsa-transparency-database").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "mode": "search",
    "searchQuery": "counterfeit",
    "platforms": [],
    "decisionGround": [],
    "sourceType": [],
    "category": [],
    "categorySpecification": [],
    "territorialScope": [],
    "contentType": [],
    "contentLanguage": [],
    "decisionVisibility": [],
    "decisionMonetary": [],
    "decisionProvision": [],
    "decisionAccount": [],
    "accountType": [],
    "automatedDetection": [],
    "automatedDecision": [],
    "statementIds": [],
    "maxItems": 1,
    "autoSlice": True,
    "maxRequests": 60,
}

# Run the Actor and wait for it to finish
run = client.actor("xyrelith-data/eu-dsa-transparency-database").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "mode": "search",
  "searchQuery": "counterfeit",
  "platforms": [],
  "decisionGround": [],
  "sourceType": [],
  "category": [],
  "categorySpecification": [],
  "territorialScope": [],
  "contentType": [],
  "contentLanguage": [],
  "decisionVisibility": [],
  "decisionMonetary": [],
  "decisionProvision": [],
  "decisionAccount": [],
  "accountType": [],
  "automatedDetection": [],
  "automatedDecision": [],
  "statementIds": [],
  "maxItems": 1,
  "autoSlice": true,
  "maxRequests": 60
}' |
apify call xyrelith-data/eu-dsa-transparency-database --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,xyrelith-data/eu-dsa-transparency-database"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/WBleIf0uUEY0FaCgd/builds/p76qcbCfevPj7YUKe/openapi.json
