# EU Safety Gate API (RAPEX) — search and track EU dangerous-product recall & safety alerts: search with filters, single alert detail, newest weekly report and the category/risk taxonomy

> One EU Safety Gate (RAPEX) recall/alert by notification id — product, risk, measure, traceability, reacting countries.
> ReefAPI engine `safety-gate` · 4 endpoints · clean JSON, no scraping or browsers to manage.

## How to call
- **Endpoint:** `POST https://api.reefapi.com/safety-gate/v1/<action>` with a JSON body.
- **Auth:** header `x-api-key: <YOUR_REEFAPI_KEY>` — create one free (1,000 credits, no card): https://reefapi.com/signup
- **Response (every call):** `{ ok: boolean, data: ..., meta: { record_count, credits, ... }, error: { code, message } }` — branch on `ok`. Failed calls are free.
- **One key + one shared credit pool** across every ReefAPI API. Per-call credits are listed on each endpoint below.
- **Use it from an AI agent (MCP):** connect `https://api.reefapi.com/mcp` (remote streamable-http). Clients that add connectors by URL, such as ChatGPT and the Claude app, connect with OAuth 2.1 (the user pastes their key once on a ReefAPI page; discovery at `/.well-known/oauth-protected-resource/mcp`). Config files send the key as `Authorization: Bearer <key>`. `?key=<key>` in the URL also works as a last-resort fallback.

## Endpoints

### POST https://api.reefapi.com/safety-gate/v1/eu_recall — 1 credit
One EU Safety Gate (RAPEX) recall/alert by notification id — product, risk, measure, traceability, reacting countries.

**Parameters:**
- `id` (integer, required) — EU Safety Gate notification id (from a safety-gate-alerts URL).
- `language` (string, optional, default "en") — Preferred language for the EU notification text (e.g. en, de, fr).

**Returns:** recall{} — normalized EU notification (source=EU Safety Gate)

**Example request body:**
```json
{
  "id": 10000308
}
```

### POST https://api.reefapi.com/safety-gate/v1/eu_recalls — 1 credit
Search/list EU Safety Gate alerts: pages over recent weekly reports (open-data XML) and filters by query, product category, country and risk type, with skip/limit pagination. Each alert carries product, barcode, brand, risk, measures, notifying country and country of origin.

**Parameters:**
- `query` (string, optional) — Free-text filter over the EU alert's product name/description, brand, category and risk description (case-insensitive substring).
- `category` (string, optional) — EU Safety Gate product category to filter on (e.g. Toys, Motor vehicles, Electrical appliances). See the `categories` action for the full enum. Substring match.
- `country` (string, optional) — Filter to alerts whose notifying country OR country of origin matches (e.g. Germany, China). Substring, case-insensitive.
- `risk_type` (string, optional) — Filter by risk type / hazard (e.g. Chemical, Choking, Suffocation, Injuries, Electric shock). Substring over the alert's risk types.
- `weeks` (integer, optional, default 12) — How many of the most-recent weekly reports to scan (1-12; each carries ~80-100 alerts). Larger = more coverage + more upstream fetches.
- `limit` (integer, optional, default 20) — Results per page (1-100, default 20). Larger values are clamped.
- `skip` (integer, optional, default 0) — Pagination offset (skip N results). Page forward with next_skip.

**Returns:** recalls[] (normalized EU alerts), total, reports_scanned, weeks_window, newest_report{}, filters{}, skip, limit, has_more, next_skip

**Example request body:**
```json
{
  "category": "Toys",
  "weeks": 2,
  "limit": 3
}
```

### POST https://api.reefapi.com/safety-gate/v1/eu_latest — 1 credit
The newest EU Safety Gate weekly report fully expanded into its ~80-100 product alerts (newest-published recalls across the EU/EEA).

**Parameters:**
- `limit` (integer, optional, default 20) — Results per page (1-100, default 20). Larger values are clamped.

**Returns:** report{reference,week,year,publication_date}, recalls[], total_in_report

**Example request body:**
```json
{
  "limit": 3
}
```

### POST https://api.reefapi.com/safety-gate/v1/categories — 1 credit
The EU Safety Gate taxonomy: product-category & risk-type enums + the number of countries in the EU country list (reference values for the eu_recalls filters).

**Parameters:** none

**Returns:** eu_product_categories[]{key,name}, eu_risk_types[]{key,name}, eu_countries_count

## At scale
- **Volume:** 5M+ requests a day, measured at 60 requests a second across the fleet with no
  central bottleneck. Per-key limits are raised for high-volume accounts; volume pricing on request.
- **Missing a source:** tell us a site we do not cover and it becomes an engine. A customer asked
  for bestprice.gr on 21 Sep 2026 and it was in the catalog on 22 Sep.
- **Support:** 2 minute median time from a question in the live chat to the first answer. Setup
  help included, no support tier to buy.
- **One key, one credit pool** across every API. No per-site plans, no separate subscriptions.

## More
- Try it live, no code: https://reefapi.com/playground?engine=safety-gate
- Human docs page: https://reefapi.com/docs/safety-gate
- Overview page: https://reefapi.com/safety-gate-api
- Every ReefAPI API in one file (for your AI): https://reefapi.com/llms-full.txt
