# Product Recall Checker - Match Your GTINs to EU & UK Recalls (`s-r/recall-compliance-check`) Actor

Product recall checker: check your inventory for product recalls. Paste GTINs, brand and title, and receive matching EU Safety Gate and UK OPSS notice rows with barcode evidence, source links and warnings for notices without a barcode.

- **URL**: https://apify.com/s-r/recall-compliance-check.md
- **Developed by:** [SR](https://apify.com/s-r) (community)
- **Categories:** E-commerce, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$10.00 / 1,000 delivered recall matches

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-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

## Product Recall Checker — match EU and UK recalls to your GTIN inventory

Product recall checker compares your assortment with official EU Safety Gate and UK OPSS product safety notices. Supply GTINs as strings and receive the matching notices with the exact barcode evidence, your original assortment position and the official source link. Optional brand and product text candidates support manual review where barcode coverage is limited.

### What the product recall checker returns

Each result represents one assortment position matched to one official notice. If a notice matches two inventory positions, the output contains two rows. Multiple matching identifiers within the same position and notice produce one row with the relevant evidence. The output preserves the original notice type, risk classification, measures, model information and batch information where the authority provides them.

These sources publish several types of notices, including recalls, safety reports, import rejections and warnings. A report is kept as a report. A barcode match establishes that the identifiers agree; you still need to compare the affected model, batch, manufacturing period and corrective action with your stock. Brand and text matches are candidates, clearly labeled for human review.

### Input

Provide an `items` array containing between 1 and 500 assortment positions. The recommended input for each position is `gtin`, written as a JSON string. An optional `id` preserves your SKU or inventory reference. Optional `brand` and `title` add context. The original list position is always retained, so repeated customer IDs remain separate inventory positions.

The check accepts GTIN-8, UPC-A, EAN-13 and GTIN-14 identifiers with a valid GS1 check digit. Surrounding whitespace is accepted. Valid codes are compared after left padding to fourteen digits, preserving a nonzero packaging indicator. Numeric JSON identifiers are rejected because they can lose leading zeroes. The service does not repair invalid customer codes by guessing missing digits.

Choose `sources` from `eu_safety_gate` and `uk_opss`, or omit the field to check both. Use `date_from` and `date_to` for an inclusive publication window of at most 366 days. Dates use `YYYY-MM-DD`. The default window covers the last thirty calendar days through today in UTC. EU selection uses the notice publication date. UK selection uses the search index publication timestamp, which can differ from the first publication date shown on the notice.

Set `include_candidates` to true to receive optional brand and distinctive text candidates. It defaults to false. An item without a GTIN must provide both brand and title and enable candidates. Text evidence requires matching brand context and distinguishing title or model terms. Generic descriptions alone do not establish product identity. A conflict between valid source and customer barcodes remains explicitly marked, even when a candidate is returned.

### Output

Dataset rows include `input_index`, `input_id`, the original input fields, `matched_on`, `match_kind`, `match_evidence`, `barcode_conflict`, `authority`, `notice_id`, `recall_number`, `title`, `url`, `published_date`, `fetched_at`, barcode fields, affected products, measures and attachments. Evidence includes both original values and the normalization rule actually used. Stable `match_id` values support deduplication when repeating continuation requests within the same scan.

Coverage is stored separately in the `coverage` record. It includes the effective dates, selected authorities, scan timestamps, completion state and cumulative notice counts per authority. The `coverage_warnings` record explains missing or invalid barcodes, unresolved barcode details, documents that were not scanned, incomplete sources and a reached result limit. The run summary also reports warnings and partial completion. Empty datasets still retain coverage records.

A completed source scan does not mean every notice contained a barcode. Some notices identify products only by brand, model or a linked PDF. Attachments are returned as links; their contents are not extracted. Missing barcode warnings remain visible after a completed scan and when no matches are returned. No-match output is never a statement that your stock is safe or legally compliant.

#### Example row

One assortment position, one publication day, EU source only:

```json
{
  "items": [{ "gtin": "5999117182226" }],
  "sources": ["eu_safety_gate"],
  "date_from": "2026-11-13",
  "date_to": "2026-11-13"
}
```

The row that comes back, trimmed to the matching fields (the delivered row also carries the affected products, the measures, the risk types and any attachments):

```json
{
  "match_id": "0:eu_safety_gate:10119682",
  "input_index": 0,
  "input_gtin": "5999117182226",
  "matched_on": "barcode",
  "match_kind": "gtin",
  "barcode_conflict": false,
  "authority": "eu_safety_gate",
  "notice_id": "10119682",
  "recall_number": "SR/03265/26",
  "title": "QUICK CHARGER TYPE-C Adapter",
  "published_date": "2026-11-13",
  "classification": "Serious risk",
  "url": "https://ec.europa.eu/safety-gate-alerts/screen/webReport/alertDetail/10119682"
}
```

The same scan examined 34 EU notices: 10 carried a valid GTIN, 24 carried no usable one and 2 carried an invalid barcode value. Those three counters are part of the `coverage` record, and the last two return as `coverage_warnings`, so an empty match dataset still tells you how far the source was actually readable.

### Use cases

- **Catalogue sweep.** Run the product recall checker over the whole inventory list on a schedule and keep one row per affected position, with the notice number and the official link, instead of bookmarking notices to read later.
- **Listing hygiene.** Check a supplier's identifier list before products go live, and again when a supplier changes, so a recalled article never reaches a new listing unnoticed.
- **Recall compliance evidence.** Keep the input you checked, the window you checked, the notices found and the notices that carried no barcode. That record supports a compliance review without screenshots of a search form.
- **Return and support handling.** When a customer asks whether an article was recalled, look up the EAN or GTIN of the returned item and quote the recall number and the corrective action from the source.
- **Feed and PIM flags.** Feed the rows into your product information system and flag every affected SKU with the notice link, so merchandising and support read the same evidence.

### Pagination and limits

`max_results` limits delivered matches across the whole logical scan, with a default of 100 and a maximum of 5000. It does not limit how many source notices must be examined. Large publication windows are processed in bounded pieces. The Actor follows continuation pages automatically within its run budget. If a continuation remains, the `continuation` record holds the token for resuming with the original input.

For direct API use, send `next_cursor` back as `cursor` with the same assortment and options. Default dates are fixed on the first page. A changed assortment, source order, candidate option or global result limit invalidates the cursor. Repeating a cursor can return the same page; consumers should deduplicate by `match_id`. A null continuation can also mean that a result limit or source failure stopped the scan, so check coverage completion and warnings.

### The product recall checker compared with what exists

**The regulator portals.** EU Safety Gate, the product safety pages of GOV.UK and the US CPSC and FDA databases publish every notice, and they are the authority behind it. Their pages are organised by notice: you read and search what a market surveillance authority announced. None of them takes your own list of stock keeping units and returns the rows that apply to your stock. US CPSC and FDA are also outside the scope of this actor, which reads EU Safety Gate and UK OPSS only.

**Notice monitoring services.** Services such as productrecallradar.com and recallradar.dev follow the same public feeds and alert you on keywords, brands, risk level or category. They never see your catalogue, so the step from "this notice exists" to "this applies to my shelf" is left to you.

**Recall actors on the Apify Store.** Existing actors either monitor the feeds — one checks a catalogue against US CPSC and EU Safety Gate, another searches US CPSC, FDA and EU Safety Gate notices by keyword, brand or barcode — or they cover one authority's list. This actor is built the other way round: your inventory list is the input, and every row says which field matched (barcode, brand or candidate text), which of your positions matched, and which notices could not be checked at all because they carry no barcode. That coverage is reported explicitly, including when the match dataset is empty.

What stays the same everywhere: the notice is the authority's, not ours. The row points at the official document; deciding whether your batch, model or production period is affected is your call.

### Pricing and free usage

The billable unit is a delivered assortment-position and notice match. Scanned notices, unmatched inventory positions, coverage warnings and attachment links are not separate billable rows. Empty match results are free of match charges; a run start fee, when present in the active pricing model, still applies to a valid empty run. The current price displayed by the Store is authoritative. The free allowance limits delivery to ten matches across the run while preserving the supplied assortment positions and the coverage explanation.

### Frequently asked questions

#### Does a matching barcode mean my exact batch was recalled?

Check the official notice and the affected product details before deciding. Barcode agreement identifies a product relationship, but a recall may apply only to certain batches, production periods, models or markets. The output preserves that source information rather than inferring it from your inventory description.

#### Why can I receive no matches and still see coverage warnings?

Many notices have no usable GTIN in their main text. Others contain invalid codes, marketplace identifiers or barcodes available only in attachments. The coverage counters explain these limits even when your input contains only GTINs and the result dataset is empty.

#### Are brand and text candidates exact matches?

They require human review. They appear only when explicitly enabled and remain labeled as candidates. The evidence identifies the compared brand or distinctive product terms. The service provides no invented confidence percentages and never upgrades a valid barcode conflict into an exact GTIN match.

#### Which sources and products are included?

This version checks EU Safety Gate and UK OPSS consumer product notices in the selected publication window. Food-specific recall systems and authorities outside these sources are outside its scope. The product does not certify legal compliance or replace the official notice, regulator guidance or your own inventory investigation.

# Actor input Schema

## `items` (type: `array`):

Assortment positions. GTINs must be strings with a valid GS1 check digit. Without GTIN, both brand and title and include_candidates are required.

## `sources` (type: `array`):

Authorities to enumerate, in this order.

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

Inclusive publication window start, YYYY-MM-DD. Defaults to 29 days before date_to. Maximum window: 366 days.

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

Inclusive publication window end, YYYY-MM-DD. Defaults to today UTC. UK selection uses the search index public_timestamp, not recall start.

## `include_candidates` (type: `boolean`):

Include explicitly labeled brand/text candidates. They require human review, including barcode conflicts.

## `max_results` (type: `integer`):

Global delivered match limit across all cursor pages. Reaching it can leave source coverage incomplete.

## `cursor` (type: `string`):

Signed continuation token; send the original assortment and options. Effective default dates are pinned on the first page.

## Actor input object example

```json
{
  "items": [
    {
      "gtin": "5999117182226"
    }
  ],
  "sources": [
    "eu_safety_gate",
    "uk_opss"
  ],
  "date_from": "2026-11-13",
  "date_to": "2026-11-13",
  "include_candidates": false,
  "max_results": 100
}
```

# Actor output Schema

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

One row per assortment position and official notice, with barcode, brand or text evidence.

## `output` (type: `string`):

OUTPUT record with the run's counts and status flags.

## `errors` (type: `string`):

Failures with a code and a redacted message. Absent when the run had none.

## `coverage` (type: `string`):

Cumulative source coverage, including missing barcodes.

## `coverage_warnings` (type: `string`):

Explicit limitations of barcode and document coverage.

# 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 = {
    "items": [
        {
            "gtin": "5999117182226"
        }
    ],
    "date_from": "2026-11-13",
    "date_to": "2026-11-13"
};

// Run the Actor and wait for it to finish
const run = await client.actor("s-r/recall-compliance-check").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 = {
    "items": [{ "gtin": "5999117182226" }],
    "date_from": "2026-11-13",
    "date_to": "2026-11-13",
}

# Run the Actor and wait for it to finish
run = client.actor("s-r/recall-compliance-check").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 '{
  "items": [
    {
      "gtin": "5999117182226"
    }
  ],
  "date_from": "2026-11-13",
  "date_to": "2026-11-13"
}' |
apify call s-r/recall-compliance-check --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,s-r/recall-compliance-check"
        }
    }
}
```

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/JILvbN0mIW6qBywD1/builds/8xKTvwv6FnGZsplrC/openapi.json
