# Safety Gate EU — Richiami Prodotti Non Alimentari (`promptica/mimit-richiami-prodotti`) Actor

Estrae i richiami di prodotti non alimentari dal sistema europeo Safety Gate (RAPEX). Filtra per paese notificante, categoria, rischio e periodo. Complementa rasff-food-alerts: insieme coprono tutti i richiami per e-commerce e QA. Dati 100% pubblici.

- **URL**: https://apify.com/promptica/mimit-richiami-prodotti.md
- **Developed by:** [Lorenzo Talamucci](https://apify.com/promptica) (community)
- **Categories:** Business, News
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-usage

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js/docs.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python/docs.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Safety Gate EU — Richiami Prodotti Non Alimentari

Estrae i richiami e gli avvisi di sicurezza per prodotti **non alimentari** dal sistema europeo **Safety Gate** (ex-RAPEX), gestito dalla Commissione Europea. In Italia, il punto di contatto è il **MIMIT** (Ministero delle Imprese e del Made in Italy), che notifica i casi italiani nel sistema europeo.

### Complementarità con rasff-food-alerts

| Actor | Copertura |
|---|---|
| `rasff-food-alerts` | Alimenti, mangimi, materiali a contatto con alimenti |
| **`mimit-richiami-prodotti`** | Tutto il resto: giocattoli, elettronica, abbigliamento, veicoli, cosmetici, macchinari, DPI… |

Usati insieme coprono l'intero universo dei richiami prodotti utile per e-commerce, QA e compliance.

### Fonte dati

**URL base API:** `https://ec.europa.eu/safety-gate-alerts/public/api/`

- Dati 100% pubblici, nessuna registrazione o chiave API richiesta
- Rispetta [Terms of Use Europa](https://ec.europa.eu/info/legal-notice_en): uso non commerciale e citazione della fonte
- `robots.txt`: nessun divieto per i path `/public/api/`
- Aggiornamento: continuo (nuove notifiche pubblicate ogni giorno)

### Record reale (curl testato il 2026-07-21)

```bash
## Lista notifiche recenti (POST con date range)
curl -X POST "https://ec.europa.eu/safety-gate-alerts/public/api/notification/mostRecent/?" \
  -H "Content-Type: application/json" \
  -d '{"language":"en","page":"0","pageSize":"5","dateFrom":"2026-07-01","dateTo":"2026-07-21"}'
## → { totalElements: 273, totalPages: 3, content: [...] }

## Dettaglio singola notifica
curl "https://ec.europa.eu/safety-gate-alerts/public/api/notification/10099535?language=en"
````

**Esempio di record normalizzato (notifica italiana SR/02027/26 — casco moto):**

```json
{
  "id": 10099535,
  "riferimento": "SR/02027/26",
  "tipo": "ARTICLE_12",
  "dataPubblicazione": "2026-07-17",
  "dataModifica": "2026-07-17",
  "aggiornato": true,
  "soloPeInfo": false,
  "paeseSegnalante": "IT",
  "paeseSegnalanteName": "Italy",
  "prodotto": "Motorcycle helmet",
  "prodottoSpecifico": "Puro Slider",
  "marca": "Helmo Milano",
  "categoria": "PROTECTIVE_EQUIPMENT",
  "contraffatto": "UNKNOWN",
  "tipiRischio": ["INJURIES"],
  "descrizioneRischio": "In the event of an impact, the helmet could easily become detached and slip off the head of the user, leaving it exposed to injuries.",
  "normeLegali": "The product does not comply with Regulation (EU) 2016/425 on personal protective equipment.",
  "misure": ["BAN_MARKETING_OF_PRODUCT"],
  "paeseOrigine": "CN",
  "paeseOrigineName": "People's Republic of China",
  "vendutoOnline": "NO",
  "webReport": null,
  "url": "https://ec.europa.eu/safety-gate-alerts/screen/webReport/alertDetail/10099535"
}
```

### Parametri di input

| Campo | Tipo | Descrizione | Default |
|---|---|---|---|
| `dateFrom` | string | Data inizio YYYY-MM-DD | 30 giorni fa |
| `dateTo` | string | Data fine YYYY-MM-DD | oggi |
| `notifyingCountry` | string | Paese ISO-2 (es. `IT`, `DE`, `FR`) | tutti |
| `productCategory` | string | Categoria prodotto (vedi sotto) | tutte |
| `riskType` | string | Tipo rischio (vedi sotto) | tutti |
| `brandContains` | string | Testo nel nome brand (partial match) | qualsiasi |
| `fetchDetails` | boolean | Recupera dettagli (paese, misure, rischio) | `true` |
| `maxResults` | integer | Limite risultati | 500 |
| `concurrency` | integer | Richieste parallele dettagli (1–20) | 5 |

#### Categorie prodotto

`TOYS` · `ELECTRICAL_APPLIANCES` · `CHILDCARE_ARTICLES` · `CLOTHING_TEXTILES` · `MACHINERY` · `MOTOR_VEHICLES` · `COSMETICS` · `FURNITURE` · `PROTECTIVE_EQUIPMENT` · `CHEMICAL_PRODUCTS` · `HOBBY_SPORTS_EQUIPMENT` · `HAND_TOOLS` · `JEWELLERY` · `LIGHTING_EQUIPMENT` · `GAS_APPLIANCES` · `CONSTRUCTION_PRODUCTS` · `DECORATIVE_ARTICLES` · `OTHER` (e altri 16 valori)

#### Tipi di rischio

`CHEMICAL` · `INJURIES` · `CHOKING` · `BURNS` · `ELECTRIC_SHOCK` · `DROWNING` · `FIRE` · `ASPHYXIATION` · `CUTS` · `DAMAGE_TO_HEARING` · `DAMAGE_TO_SIGHT` · `ENTRAPMENT` (e altri)

### Campi di output

| Campo | Descrizione |
|---|---|
| `id` | ID interno Safety Gate |
| `riferimento` | Codice notifica UE (es. `SR/02027/26`) |
| `tipo` | Tipo notifica (`ARTICLE_12` = rischio grave) |
| `dataPubblicazione` | Data pubblicazione (YYYY-MM-DD) |
| `paeseSegnalante` | ISO-2 del paese che ha notificato |
| `prodotto` | Nome generico prodotto |
| `prodottoSpecifico` | Nome specifico/modello |
| `marca` | Brand/marchio |
| `categoria` | Categoria Safety Gate |
| `tipiRischio` | Array di tipi di rischio |
| `descrizioneRischio` | Descrizione dettagliata del pericolo |
| `normeLegali` | Normativa violata |
| `misure` | Misure adottate (`RECALL`, `BAN_MARKETING_OF_PRODUCT`, `WITHDRAWAL`, …) |
| `paeseOrigine` | ISO-2 paese di fabbricazione |
| `vendutoOnline` | Prodotto venduto online (`YES`/`NO`/`UNKNOWN`) |
| `webReport` | Codice report settimanale Safety Gate |
| `url` | Link alla scheda completa sul portale Safety Gate |

### Note tecniche

- L'API `/public/api/notification/mostRecent/?` restituisce fino a 100 notifiche per pagina con paginazione
- Il filtro per paese e categoria richiede il fetch del dettaglio (`fetchDetails: true`)
- Concurrency default = 5 per essere un buon cittadino del server pubblico
- Nessun dato personale (PII): tutti i campi sono dati tecnici sui prodotti

### Casi d'uso

- **E-commerce / marketplace:** verifica automatica che i prodotti listati non siano sotto richiamo
- **QA / compliance:** monitoraggio continuo per settore o paese
- **Ricerca / giornalismo:** analisi dei richiami per categoria, paese di origine, tipo di rischio
- **Integrazione RASFF:** pipeline completa cibo+non-cibo per alert system aziendale

# Actor input Schema

## `dateFrom` (type: `string`):

Data di pubblicazione minima. Vuoto = 30 giorni fa.

## `dateTo` (type: `string`):

Data di pubblicazione massima. Vuoto = oggi.

## `notifyingCountry` (type: `string`):

Codice ISO-2 del paese che ha segnalato il rischio, es. IT (Italia), DE (Germania). Vuoto = tutti i paesi UE/SEE.

## `productCategory` (type: `string`):

Categoria Safety Gate, es. TOYS, ELECTRICAL\_APPLIANCES, CHILDCARE\_ARTICLES, CLOTHING\_TEXTILES, MACHINERY, COSMETICS, FURNITURE, MOTOR\_VEHICLES. Vuoto = tutte.

## `riskType` (type: `string`):

Es. CHEMICAL, INJURIES, CHOKING, BURNS, ELECTRIC\_SHOCK, DROWNING, FIRE. Vuoto = tutti.

## `brandContains` (type: `string`):

Filtra per nome brand (match parziale, case-insensitive). Vuoto = qualsiasi.

## `fetchDetails` (type: `boolean`):

Se attivo, recupera la scheda completa (paese, descrizione rischio, misure, paese origine). Aumenta i tempi ma arricchisce i dati. Obbligatorio per filtrare per paese notificante, categoria o rischio.

## `maxResults` (type: `integer`):

Quanti richiami estrarre al massimo.

## `concurrency` (type: `integer`):

Quante schede dettaglio scaricare in parallelo (1–20). Aumenta la velocità ma aumenta il carico sul server.

## Actor input object example

```json
{
  "dateFrom": "2026-01-01",
  "dateTo": "2026-07-21",
  "notifyingCountry": "IT",
  "productCategory": "TOYS",
  "riskType": "CHEMICAL",
  "brandContains": "XTool",
  "fetchDetails": true,
  "maxResults": 500,
  "concurrency": 5
}
```

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("promptica/mimit-richiami-prodotti").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("promptica/mimit-richiami-prodotti").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{}' |
apify call promptica/mimit-richiami-prodotti --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=promptica/mimit-richiami-prodotti",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Safety Gate EU — Richiami Prodotti Non Alimentari",
        "description": "Estrae i richiami di prodotti non alimentari dal sistema europeo Safety Gate (RAPEX). Filtra per paese notificante, categoria, rischio e periodo. Complementa rasff-food-alerts: insieme coprono tutti i richiami per e-commerce e QA. Dati 100% pubblici.",
        "version": "0.1",
        "x-build-id": "cdx5x65byEa7EocIV"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/promptica~mimit-richiami-prodotti/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-promptica-mimit-richiami-prodotti",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/promptica~mimit-richiami-prodotti/runs": {
            "post": {
                "operationId": "runs-sync-promptica-mimit-richiami-prodotti",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/promptica~mimit-richiami-prodotti/run-sync": {
            "post": {
                "operationId": "run-sync-promptica-mimit-richiami-prodotti",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "dateFrom": {
                        "title": "Data inizio (YYYY-MM-DD)",
                        "type": "string",
                        "description": "Data di pubblicazione minima. Vuoto = 30 giorni fa."
                    },
                    "dateTo": {
                        "title": "Data fine (YYYY-MM-DD)",
                        "type": "string",
                        "description": "Data di pubblicazione massima. Vuoto = oggi."
                    },
                    "notifyingCountry": {
                        "title": "Paese notificante (ISO-2)",
                        "type": "string",
                        "description": "Codice ISO-2 del paese che ha segnalato il rischio, es. IT (Italia), DE (Germania). Vuoto = tutti i paesi UE/SEE."
                    },
                    "productCategory": {
                        "title": "Categoria prodotto",
                        "type": "string",
                        "description": "Categoria Safety Gate, es. TOYS, ELECTRICAL_APPLIANCES, CHILDCARE_ARTICLES, CLOTHING_TEXTILES, MACHINERY, COSMETICS, FURNITURE, MOTOR_VEHICLES. Vuoto = tutte."
                    },
                    "riskType": {
                        "title": "Tipo di rischio",
                        "type": "string",
                        "description": "Es. CHEMICAL, INJURIES, CHOKING, BURNS, ELECTRIC_SHOCK, DROWNING, FIRE. Vuoto = tutti."
                    },
                    "brandContains": {
                        "title": "Brand contiene",
                        "type": "string",
                        "description": "Filtra per nome brand (match parziale, case-insensitive). Vuoto = qualsiasi."
                    },
                    "fetchDetails": {
                        "title": "Dettagli completi",
                        "type": "boolean",
                        "description": "Se attivo, recupera la scheda completa (paese, descrizione rischio, misure, paese origine). Aumenta i tempi ma arricchisce i dati. Obbligatorio per filtrare per paese notificante, categoria o rischio.",
                        "default": true
                    },
                    "maxResults": {
                        "title": "Numero massimo di risultati",
                        "type": "integer",
                        "description": "Quanti richiami estrarre al massimo.",
                        "default": 500
                    },
                    "concurrency": {
                        "title": "Richieste parallele dettagli",
                        "type": "integer",
                        "description": "Quante schede dettaglio scaricare in parallelo (1–20). Aumenta la velocità ma aumenta il carico sul server.",
                        "default": 5
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
