# EU Recall Scraper: Safety Gate Weekly Reports (`plainkitbin/pd-eu-recall`) Actor

Extract the EU Safety Gate weekly report list from the European Commission XML download as JSON rows: reference, publication date, week and report URL. Not affiliated with the European Commission.

- **URL**: https://apify.com/plainkitbin/pd-eu-recall.md
- **Developed by:** [PlainKit bin](https://apify.com/plainkitbin) (community)
- **Categories:** Business, Developer tools
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.35 / 1,000 eu safety gate weekly report rows

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
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 Safety Gate Recalls Scraper: Weekly Report List

`plainkitbin/pd-eu-recall`: EU recall reports from the Safety Gate (RAPEX) weekly list. Rows are weekly report list entries, not the individual recall item bodies.

### Introduction

The EU Safety Gate Recalls Scraper turns the RAPEX weekly report list of the European Commission into JSON rows. It is for product compliance teams, online sellers, importers and monitoring pipelines that need to know which Safety Gate weekly reports exist, when each one was published and where its detail XML is. One run reads the XML list once and returns one row per weekly report, newest first, in the order of the source.

Each row is an index entry for one weekly report. It does **not** contain the individual product alerts, brands, barcodes, risks or measures. Follow the `URL` field of a row to read that report at the source.

This Actor is an independent tool and is not affiliated with EU Safety Gate weekly report list (European Commission, XML).

Typical uses:

- Detect a newly published weekly report and start your own follow-up job.
- Keep a dated archive index of weekly report references and links.
- List the reports published inside an audit period.

### Tutorial

1. Open the Actor and leave the text filter empty to get the newest reports.
2. Set `max_items` to the number of rows you want.
3. Optionally set `date_from` and `date_to` to keep one publication period.
4. Start the run and download the dataset as JSON, CSV or Excel.

### Input and output examples

#### Example output

```json
{
  "reference": "Report-2026-46",
  "publicationDate": "20/11/2026",
  "year": "2026",
  "month": "11",
  "day": "20",
  "week": "46",
  "report_language": "en",
  "URL": "https://ec.europa.eu/safety-gate-alerts/api/download/weeklyReport/detail/xml/10000332?language=en&search=WEB_REPORT%7C:%7C10000332,"
}
```

#### Output fields

All values are text copied from the source element of the same name. An empty source element gives an empty string.

| Field | Meaning |
| --- | --- |
| `reference` | Report reference, for example `Report-2026-46` |
| `publicationDate` | Publication date as the source writes it (DD/MM/YYYY) |
| `year` | Year element of the report |
| `month` | Month element of the report |
| `day` | Day element of the report |
| `week` | Week number element of the report |
| `report_language` | Language of the list (`en`) |
| `URL` | Link to the detail XML of that weekly report |

#### Example input

```json
{
  "date_from": "2025-01-01",
  "date_to": "2025-12-31",
  "max_items": 5
}
```

#### Input parameters

| Field | Type | Description | Default |
| --- | --- | --- | --- |
| `search` | String | Text that must occur in the reference or the publication date (DD/MM/YYYY or YYYY-MM-DD). Product names are not in this list. | `""` |
| `date_from` | String | Earliest publication date, `YYYY-MM-DD`. | `""` |
| `date_to` | String | Latest publication date, `YYYY-MM-DD`. | `""` |
| `max_items` | Integer (1-2000) | Maximum number of rows. | `10` |

### Pricing

- Event name: `eu-recall-report`
- Pricing model: Apify Pay-Per-Event
- Tier prices:
  - FREE: $0.0005 per event
  - BRONZE: $0.00045 per event
  - SILVER: $0.0004 per event
  - GOLD: $0.0003484 per event
  - PLATINUM: $0.0003484 per event
  - DIAMOND: $0.0003334 per event

Each row is pushed first to the dataset and charged right after a successful push. A refused charge or a reached spending limit stops the run; the row that was already pushed stays in the dataset. A failed request pushes no row and charges nothing. If the source refuses the call (HTTP 401, 403 or 429), the run ends with one uncharged row whose `reference` is `STATUS_SOURCE_REFUSED`. If the platform restarts a run, rows that are already in the dataset are not pushed or charged again.

### Actor recommendations

Use a recall data source that returns individual product records if you need brands, barcodes or hazard descriptions. For United States enforcement reports, the FDA Recalls Scraper returns one row per recall.

### FAQ and support

#### Where does the data come from?

From the XML download `https://ec.europa.eu/safety-gate-alerts/api/download/weeklyReport/list/xml/en`. No key or login is needed. The source document says that a new weekly report is published every Friday.

#### How may I reuse the data?

Source: European Union, Safety Gate. The European Commission legal notice (`https://commission.europa.eu/legal-notice_en`) states that content owned by the EU on its website is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0) unless otherwise indicated. Give appropriate credit and indicate changes when you reuse it. This Actor changes the format from XML to dataset rows and may filter rows; the field values are copied.

#### Are redirects followed?

No. A redirect answer stops the run without a row and without a charge. Server errors are retried a limited number of times.

#### How do I report a problem?

Open an issue on the Issues tab of the Actor and include the run ID. Do not post personal data.

### Use as an MCP Tool (AI Agents)

Local (stdio):

```bash
APIFY_TOKEN=<YOUR_APIFY_TOKEN> npx -y @apify/actors-mcp-server --actors plainkitbin/pd-eu-recall
```

Hosted (streamable HTTP): connect to `https://mcp.apify.com?tools=plainkitbin/pd-eu-recall` using OAuth or the header `Authorization: Bearer <YOUR_APIFY_TOKEN>`.

Example tool input:

```json
{"max_items": 5}
```

# Actor input Schema

## `search` (type: `string`):

Keep reports whose reference or publication date contains this text, for example Report-2026 or 2026-11. Product names are not part of this list. Leave empty for no text filter.

## `date_from` (type: `string`):

Keep reports published on or after this date (format: YYYY-MM-DD). Leave empty for no lower bound.

## `date_to` (type: `string`):

Keep reports published on or before this date (format: YYYY-MM-DD). Leave empty for no upper bound.

## `max_items` (type: `integer`):

Maximum number of weekly report rows to output (default 10, upper bound 2000).

## Actor input object example

```json
{
  "search": "",
  "date_from": "",
  "date_to": "",
  "max_items": 10
}
```

# Actor output Schema

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

Dataset items produced by 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 = {
    "search": "",
    "date_from": "",
    "date_to": "",
    "max_items": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("plainkitbin/pd-eu-recall").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 = {
    "search": "",
    "date_from": "",
    "date_to": "",
    "max_items": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("plainkitbin/pd-eu-recall").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 '{
  "search": "",
  "date_from": "",
  "date_to": "",
  "max_items": 10
}' |
apify call plainkitbin/pd-eu-recall --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,plainkitbin/pd-eu-recall"
        }
    }
}
```

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/386iOYL7VMz414Ien/builds/VPgaL7pNfByxY45F8/openapi.json
