# Japan Product Recalls (Consumer Affairs Agency) (`vespa-zzz/japan-product-recalls`) Actor

Japanese product recalls, free repairs and safety notices as structured data from the Consumer Affairs Agency. Filter by category, title keywords and registration date, or monitor for new notices.

- **URL**: https://apify.com/vespa-zzz/japan-product-recalls.md
- **Developed by:** [Vespa ZZZ](https://apify.com/vespa-zzz) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 1,000 results

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

## Japan Product Recalls (Consumer Affairs Agency)

Get structured Japanese product recall, free repair, refund, exchange and safety notices from the Consumer Affairs Agency's recall site. The actor is independently maintained.

- **EC and marketplace compliance** teams can screen listings for affected products and models.
- **Retail buyers** can check recall notices against purchased stock and lot codes.
- **Insurers** can track reported hazards and affected products.
- **AI agents** can read machine-readable notices with a link to each original record.

### Input

| Field | Default | Behavior |
| --- | --- | --- |
| `categories` | `[]` | An empty array reads the site's new registrations list. Choose one or more categories to search the corresponding category listings. |
| `keywords` | `[]` | Keep notices whose listing title contains any of these strings. |
| `dateFrom` | Omitted | Include the specified Japan local date and later, using `YYYY-MM-DD`. |
| `fetchDetails` | `true` | Fetch each matched notice for reasons, affected models, sale dates and links. Set to `false` for listing fields only. |
| `maxItems` | `100` | Maximum dataset records per run, from 1 to 5000. |
| `requestIntervalMs` | `3000` | Minimum interval between HTTP requests, including retries. The minimum setting is 2000 ms. |
| `onlyNew` | `false` | Remember successful outputs and carry pending notices over to the next run. |
| `stateKey` | `default` | Use a key of 1–50 ASCII letters, digits, hyphens or underscores for each monitoring schedule and filter set. |

The categories are 食料品, 家電製品, 住居品, 文具・娯楽用品, 光熱水品, 被服品, 保健衛生品, 車両・乗り物, 建物・設備 and その他.

```json
{
  "categories": ["家電製品"],
  "keywords": ["バッテリー", "充電器"],
  "dateFrom": "2026-01-01",
  "maxItems": 25
}
```

For monitoring, set `onlyNew` to `true` and reuse the same `stateKey` in later runs. The first run outputs existing matches. The `japan-product-recalls-state` store keeps up to 20,000 seen IDs and 10,000 pending notices per key. Failed notices left in the pending queue are eligible again in subsequent runs, with up to five consecutive failed runs retained. Schedule runs with the same key so they do not overlap.

When the pay-per-event spending limit is reached, the run stops with a warning. Unsaved notices already found stay pending for the next monitoring run, which also looks for matches in the listings again.

### Output

One dataset row per recall, identified by `recallId`. Use `url` and `source` to trace each record to the original notice.

| Fields | Description |
| --- | --- |
| `recallId`, `url`, `source` | Original notice ID, CAA detail URL and source name. |
| `registeredDate`, `category`, `title` | The listing's publication date in ISO date format, category and title. |
| `company`, `product`, `recallType` | Business and product names and the announced action, when available. |
| `reason`, `hazard`, `severity` | Reported reason, hazard and severity, when stated. |
| `targetDetails`, `salesPeriod` | Affected models, lots, JAN codes and sales periods as published. |
| `contactOrganization` | Company or identifiable business contact department. Individual contact details, phone numbers and email addresses are excluded. |
| `companyNoticeUrl`, `attachments` | Links to a company notice and listed attachment URLs, when available. |

Missing values are `null`. Attachments are an array, empty when the notice has no eligible links. Company and attachment links are returned as URLs and only the CAA listing and detail pages are fetched.

### Local development

```sh
npm ci
npm test
apify run --input '{"maxItems":3}'
apify run --input '{"categories":["家電製品"],"maxItems":3}'
```

The tests use trimmed excerpts from the CAA home, listing and detail pages. The actor requests the published category or new registrations URL, then uses the public results form for pagination. It applies title and publication-date filters locally.

### Data attribution

Source material comes from the Consumer Affairs Agency Recall Information Site. This actor extracts and restructures the data. Cite the original `url` for each reused notice and identify the actor's processing if you redistribute the output. Data use is subject to the Recall Information Site's copyright policy and the Public Data License 1.0. [Recall site](https://www.recall.caa.go.jp/), [Recall site terms](https://www.recall.caa.go.jp/about/index.php), [CAA terms of use](https://www.caa.go.jp/terms_of_use/), [Public Data License 1.0](https://www.digital.go.jp/resources/open_data/public_data_license_v1.0)

### 日本語概要

消費者庁リコール情報サイトの回収・交換・返金・無償修理・注意喚起のお知らせを、掲載日やカテゴリー、商品名、対象ロットなどの項目に整理します。EC モールの出品確認、小売の仕入れ・在庫点検、保険会社の事故情報調査、AI エージェントによる情報収集に利用できます。連絡先は事業者名や窓口名に限ります。

出典は消費者庁リコール情報サイトです。各レコードの `url` で原文を参照できます。本 Actor が公開情報を加工して作成したデータです。 [リコール情報サイトの利用条件](https://www.recall.caa.go.jp/about/index.php)

# Actor input Schema

## `categories` (type: `array`):

Choose product categories to search their listings. Leave empty to use the new registrations list across all categories.

## `keywords` (type: `array`):

Keep titles containing at least one of these keywords, such as バッテリー. Leave empty to keep all titles.

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

Include notices registered on or after this date (YYYY-MM-DD, Japan local date).

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

Fetch each notice to extract reasons, affected products, sale dates, links and organization names. Turn off to use only the listing and reduce requests.

## `maxItems` (type: `integer`):

Maximum number of notices to output in this run.

## `requestIntervalMs` (type: `integer`):

Minimum time between HTTP requests, including retries. The default is 3000 ms.

## `onlyNew` (type: `boolean`):

Use a named store to remember notices after successful output. Keep failed and overflow notices for subsequent runs.

## `stateKey` (type: `string`):

Use a separate key for each monitoring schedule and filter set. Letters, digits, hyphens and underscores only.

## Actor input object example

```json
{
  "categories": [],
  "keywords": [],
  "fetchDetails": true,
  "maxItems": 10,
  "requestIntervalMs": 3000,
  "onlyNew": false,
  "stateKey": "default"
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

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

No description

## `runSummary` (type: `string`):

No description

# 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 = {
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("vespa-zzz/japan-product-recalls").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 = { "maxItems": 10 }

# Run the Actor and wait for it to finish
run = client.actor("vespa-zzz/japan-product-recalls").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 '{
  "maxItems": 10
}' |
apify call vespa-zzz/japan-product-recalls --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,vespa-zzz/japan-product-recalls"
        }
    }
}
```

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/WkxojYi8KzdO6nrG8/builds/5zQFHPdRt0on6iRUM/openapi.json
