DEV Community

DataForge
DataForge

Posted on

Get EU Safety Gate (RAPEX) product alerts as JSON in Python

Every week the European Commission publishes the Safety Gate (formerly RAPEX) report: dangerous non-food products that EU and EEA countries found on the market, with the risk and what was done about it. If you sell toys, electronics or cosmetics into the EU, or you run marketplace compliance, this is the list to watch. The Commission lists the weekly reports as open data, as one XML file per week.

Disclosure: I built the Actor used below. It reads the official weekly XML files and returns the alerts as rows you can filter. It is a monitoring helper, not legal or compliance advice.

Run it

from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("dataforge_api/eu-safety-gate-rapex-alerts-ppe").call(run_input={
    "categories": ["toys"],
    "maxWeeklyReports": 3,   # newest weekly reports first
    "maxResults": 5,
})
for r in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(r["publication_date"], r["product"], "|", r["risk_type"], "|", r["risk_level"],
          "|", r.get("notifying_country"), "|", r.get("country_of_origin"))
Enter fullscreen mode Exit fullscreen mode

Real output from this run (brand names and listing IDs left out on purpose):

2026-11-24 Toy water gun       Environment  Serious risk  Sweden                                          Unknown
2026-11-18 Bow toy set         Choking      Serious risk  France                                          People's Republic of China
2026-11-24 Fancy-dress mask    Suffocation  Serious risk  United Kingdom in respect of Northern Ireland   People's Republic of China
2026-11-24 Slime toy           Chemical     Serious risk  Cyprus                                          Unknown
2026-11-18 Keyring with soft toy  Choking   Serious risk  Austria                                         People's Republic of China
Enter fullscreen mode Exit fullscreen mode

Each alert also has danger (the full text, for example which standard such as EN 71-1 or EN 71-3 was not met and the measured value), measures (for example an import rejected at the border, a recall from end users, or removal of a listing by an online marketplace), case_number, alert_url, recall_url where one exists, and online_trader when the product was sold online.

Where this is useful

  • Sellers and importers who want a weekly list of alerts in their own product category.
  • Marketplace and compliance teams who match alerts against their own catalog by product type, brand or barcode (barcode and batch number are returned when the alert has them).
  • Researchers who count alerts by risk type or origin country.

Filters

  • categories (for example toys, electrical, cosmetics), keywords, riskTypes, riskLevels, countriesOfOrigin, notifyingCountries.
  • dateFrom / dateTo on the weekly report date, and maxWeeklyReports (about 70 alerts per report).

Limits

  • Alerts name the product, brand and origin country, not the manufacturer's address or contact details.
  • Some fields are "Unknown" in the source, and optional fields such as brand are omitted when empty.
  • An alert is a notification by a member state. It does not by itself say a company acted unlawfully.
  • Data is as fresh as the weekly report files.

Pricing

Pay per record: $0.004 per saved alert (about $4 per 1,000). If a search matches nothing, you are not charged.

Actor page: https://apify.com/dataforge_api/eu-safety-gate-rapex-alerts-ppe

Top comments (0)