# Food Import Refusals in Japan by Exporter — Supplier Risk Check (`rich_minds/import-refusals-ai`) Actor

First 25 import refusals free. Food import refusals in Japan by named exporter: check a supplier before shipping. Hazard and level in English, pay per qualified import refusal. Screen your whole sheet or get new refusals in Slack — the Japan side of FDA refusal lists. Free demo on any plan.

- **URL**: https://apify.com/rich_minds/import-refusals-ai.md
- **Developed by:** [Rich Minds](https://apify.com/rich_minds) (community)
- **Categories:** Business, Automation, Agents
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 qualified import refusal (rules only)s

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

## Food Import Refusals in Japan by Exporter — Supplier Risk Check

**Check if Japan refused your supplier, or get new refusals in Telegram, any plan.**

⚡ First **25 import refusals free** · 💵 **$0.005** per import refusal · 🤖 **$0.01** + ≈ $0.0021 AI tokens with the AI note · ⏱️ a live 12-month read in **4 seconds**

![Japan's refusals of Indian food — date, product, named exporter, hazard and level, action](https://api.apify.com/v2/key-value-stores/bpPZF9GFYwOtlegPR/records/shortlist.svg)

> **Try it in 30 seconds.** Click **Try it** — 7 real refusals, free. Then type a product, or
> **[check a supplier](https://api.apify.com/v2/key-value-stores/bpPZF9GFYwOtlegPR/records/preset-supplier-check.json)** (a name, a list or your whole
> [sheet](https://api.apify.com/v2/key-value-stores/bpPZF9GFYwOtlegPR/records/supplier-sheet-template.csv)), and press Start: a live read of MHLW's files on **any Apify plan**.
> → [What a run costs](#-pricing--what-a-run-really-costs) · [What the AI adds](#-what-the-ai-tier-adds) · [Run it weekly](#-run-it-weekly)

### ⚡ At a glance

| | |
|---|---|
| **What you get** | One row per MHLW refusal: product, HS code, exporter, origin, hazard + level, action |
| **You provide** | A product, a supplier (or a list, or your sheet's link), HS codes — or just your goal |
| **Output** | A sheet (Excel / CSV / Sheets), a report page, a digest of new refusals |
| **Typical run** | 1,196 refusals of 12 months read → 35 from India (origin IN), in 3.7 s (measured 2026-11-22) |
| **Cost of that run** | $0.18 rules only · $0.42 with the AI note (35 × $0.0121 all in) — your first 25 free |
| **Free tier** | Your first 25 import refusals — one free tier per Apify account |
| **Keys / setup** | No key on Starter plan and up; Free plan: your own Gemini / Groq key (a free key: 1–3 AI notes per run) |
| **Which plan** | Any plan: demo, live read, your rows ([list template](https://api.apify.com/v2/key-value-stores/bpPZF9GFYwOtlegPR/records/list-template.json)), chat digest · e-mail digest: a plan that runs Store Actors |
| **Works with** | Webhooks, Sheets, Slack, Teams, Telegram, Make / n8n / Zapier, MCP / AI agents |

### 🎯 What this Actor does

MHLW's monthly Japanese Excel files of food import violations, filtered, in English:

- **Named exporters** — manufacturer and shipper of every refused lot.
- **Hazards in English with the level** — `aflatoxin 129 μg/kg`, `chlorpyrifos 0.02 ppm`.
- **A dated record per supplier screened** — found or clean, ready to forward.
- **A note and a next step per row** — with AI, what to test before you ship.

### 🚀 How to use it

1. **Click Try it** — the free demo on 7 real refusals.
2. **Type a product** (`chickpea`, `shrimp`) or a supplier — it replaces the sample and reads MHLW live, every origin.
   Leave "AI assessment" on.
3. **Press Start** — open the "Refusals" or "Supplier check" view.
4. **Schedule it weekly** with Telegram, Slack or Teams in **Send alerts to** — only new refusals arrive and are charged.

#### Check supplier before shipping

"Supplier name" searches every MHLW file since April 2024, with a lookup link per refusal.

![Supplier check — every refusal of one exporter with the hazard, the action and the file row to verify](https://api.apify.com/v2/key-value-stores/bpPZF9GFYwOtlegPR/records/supplier-check.svg)

📚 **Learn more:** [Tutorial — check what Japan refuses before you ship](https://api.apify.com/v2/key-value-stores/bpPZF9GFYwOtlegPR/records/tutorial.html)

### 🆚 Why this instead of reading MHLW's files yourself?

| | MHLW import violation reports (free) | **This Actor** |
|---|---|---|
| **Your time per 100 import refusals** | ≈ 6.7 h (4 min each on 5 sample refusals, 2026-11-22) | 0 h |
| **Format** | one Excel file a month, in Japanese | one English row per refusal, all months |
| **Filter** | none | origin, product, HS code, hazard, supplier, date |
| **Same 100 refusals, all in** | $0 + your 6.7 h of reading | 100 ranked English rows: $0.50 rules only, $1.21 with AI; rows outside your filters $0 |

MHLW's page wins for one refusal, once, if you read Japanese.

#### vs other import refusal monitors

| Actor (Store) | Price | Covers | Exporter named? |
|---|---|---|---|
| **This Actor** | $0.005 / refusal | Japan MHLW, every origin | ✅ manufacturer + shipper |
| jungle_synthesizer/fda-import-refusal-report-scraper | $0.001 / row + $0.10 / run | US FDA | raw rows |
| signalgridhq/fda-import-refusal-leads | $0.005 / row | US FDA, detentions | US only |
| recordfoundry/fda-import-refusal-history | $0.50 / report | FDA history per firm | US only |
| japan_signal_lab/japan-food-import-risk-signals | $0.015 / signal + $0.03 / publication | Japan risk signals | ❌ aggregated |

The top Store results read the US FDA; this is the Japan side (prices checked 2026-11-22).

### 💵 Pricing — what a run really costs

| Event | When it is charged | Price |
|---|---|---|
| `free-tier` | your first 25 import refusals on this Actor, any tier | **$0.00** |
| `qualified-import-refusal-basic` | AI off — English fields, flags, rule score, note | **$0.005** |
| `qualified-import-refusal-ai` | AI on — plus relevance score, reasons, test note | **$0.01** |
| `digest-delivered` | a run whose digest of new refusals reached you — first 4 free | **$0.025** |
| `supplier-screened` | each supplier name checked (typed, list or sheet), found or clean — its dated screen row; first 25 free | **$0.01** |
| `watch-check` | each scheduled run that read MHLW's files, quiet weeks too — first 4 free | **$0.01** |

**Never charged:** refusals outside your filters or already delivered, the demo, your own rows, a run you start by
hand with nothing new. No source Actor runs on your account.

**How that compares** — $0.005 equals the monitors' $0.005 median, per matching refusal: one replaces ≈ 34 raw rows,
$0.0002 per raw-row equivalent.

**Worked example** — 2026-11-22: 1,196 read → 35 Indian refusals. AI off: 35 × $0.005 = **$0.18** (a first run:
10 × $0.005 = $0.05, 25 free). AI on: 35 × $0.0121 = **$0.42** ($0.01 event + $0.0021 tokens per refusal).

**AI tier, all in:** $0.0121 per refusal = $0.01 + ≈ $0.0021 AI tokens (191 output tokens, google:gemini-3.5-flash-lite
on an own key, 2026-11-22; anthropic/claude-haiku-4.5 via Apify's model access: not measured yet). At volume, every
origin: ≈ 60 new refusals a month = $0.30 rules, $0.73 with AI, + $0.04 of weekly watch checks. 300 suppliers
screened monthly: 275 × $0.01 = $2.75 the first month (25 free), $3.00 after, + $0.005 per refusal found.

### 🤖 What the AI tier adds

The same real refusal (MHLW 令和7年4月, row 43), AI **off**:

```json
{"name": "RED CHILLI POWDER — NATTURA ENTERPRISES (India)", "hazardDetail": "aflatoxin 17 μg/kg", "ruleScore": 90,
 "generatedText": "Japan (MHLW) on 2025-04-24: RED CHILLI POWDER from NATTURA ENTERPRISES (India) — aflatoxin 17 μg/kg; consignment ordered destroyed or returned; under inspection order."}
```

AI **on** (brief: *"Red chilli powder and spices from India for a Japanese importer"*, own Gemini key, 2026-11-22):

```json
{
  "name": "RED CHILLI POWDER — NATTURA ENTERPRISES (India)", "fitScore": 100, "score": 100,
  "scoreReasons": ["Product matches customer's brief (red chilli powder from India)", "Hazard is aflatoxin (17 µg/kg) under an inspection order"],
  "summary": "Red chilli powder from NATTURA ENTERPRISES in India was refused at Yokohama because it contained aflatoxin 17 µg/kg, and was destroyed or returned.",
  "generatedText": "Test each lot for aflatoxin before shipment — this lot was refused for aflatoxin 17 µg/kg.",
  "aiModel": "google:gemini-3.5-flash-lite"
}
```

The AI ranks each refusal by *your* brief, writes the test note and names Japanese-only products — ≈ 4 minutes
saved a refusal (on 5 sample refusals: read, look up the substance, write the note — 2026-11-22).

**On any plan:** the demo shows sample verdicts; Starter plan and up runs the AI; else a free key
([aistudio.google.com/apikey](https://aistudio.google.com/apikey)) gives 1–3 AI notes per run.

### ⚙️ Input

The mode that runs = `sourceMode`, except `{}` = the free demo.

| Field | Default | What it does |
|---|---|---|
| `products` | — | Product words, English or Japanese (`chilli` also finds とうがらし) |
| `exporterName` | — | Manufacturer or shipper; no date set = every file since April 2024 |
| `exporterNames` / `exporterListUrl` | — | Up to 1,000 suppliers, pasted or your sheet's link |
| `originCountries` | — (every origin) | ISO-2 codes: `IN`, `CN`, `VN` |
| `hsCodes` | — | HS codes or prefixes: `0904`, `0713`, `09` |
| `hazards` | — (all) | `aflatoxin`, `pesticide_residue`, `bacteria` … 21 codes |
| `since` | 12 months back | Published on or after (files start April 2024) |
| `goalDescription` | — | Your brief, for the AI |
| `maxQualified` | `100` | Hard cap on rows and spend |
| `enableAi` | `true` | The AI note and relevance score |
| `notifyEmail` / `sendAlertsTo` | — | E-mail / Slack · Teams · Telegram digest |

The rest (`minScore`, `targetFlags`, `suppressionList`, `dedupeTtlDays`, own key, webhooks) is in the **Input** tab.

### 📤 Output

One row per import refusal (live run 2026-11-22, AI off):

```json
{
  "name": "PEANUT BUTTER CREAMY — SONYA FOODS PVT LTD. (India)", "publishedOn": "2026-06-25", "country": "IN",
  "product": "PEANUT BUTTER CREAMY", "productEnSource": "mhlw", "hsCode": "2008", "exporterName": "SONYA FOODS PVT LTD.",
  "hazard": "aflatoxin", "hazardDetail": "aflatoxin 129 μg/kg", "action": "returned", "refusalsFound": 1,
  "reference": "MHLW 令和8年4月~令和8年11月 row 139", "score": 90, "label": "hot", "source": "mhlw",
  "url": "https://www.mhlw.go.jp/stf/seisakunitsuite/bunya/kenkou_iryou/shokuhin/yunyu_kanshi/ihan/index.html#r-57ac1f32f4ebceba",
  "sourceUrl": "https://www.mhlw.go.jp/content/001768784.xlsx", "rowId": "57ac1f32f4ebceba"
}
```

Also on every row: `rowType` (`refusal`; `screen` = one screened supplier with `found` and `riskBand`),
`refusalsFound` (refusals naming this exporter in the run), `filesChecked`, `nextStepActorUrl` (our sanctions check
prefilled with the exporter), `inspection`, `port`, `importer` (a company), `manufacturerLookupUrl`, `itemId`, `importingCountry`, `countryName`, `violationJa`, `legalArticle`, `actionJa`, `cause`, `targetFlagsMatched`, `recommendedNextStep`, `assessedBy`, `chargedEvent`, `billedAs`, `feedUrl`, `fetchedAt` (our read), `sourceRun`, `scrapedAt`.

**Upsert key for a CRM or Sheet:** `dedupeKey` (stable across runs). `url` never expires; the run's `REPORT` page
(`OUTPUT.reportUrl`) goes with your plan's data retention. Sort by `score`; trend on `ruleScore`; `label` is a
relevance band, not a verdict.

Views: **Refusals**, **Supplier check**, **Supplier screen**, **Hazards by product**, **Score breakdown**, **Export**; plus `DIGEST`,
`REPORT`, `OUTPUT`. [API reference](https://api.apify.com/v2/key-value-stores/bpPZF9GFYwOtlegPR/records/api-reference.md): every field, flag and `OUTPUT` key.

⭐ **Found it useful? A review on the Store helps others find it.**

### 🔁 Run it weekly

#### Your import refusal tracker

1. After a real run, open the task its status links (`OUTPUT.scheduleTaskUrl`) → **Schedule**; add your e-mail (a
   plan that runs Store Actors) or a Telegram / Slack / Teams link in **Send alerts to** (any plan).
2. Keep "Never output the same import refusal twice" on: each refusal is charged once.
3. Rows to a sheet: the [tracker sheet](https://api.apify.com/v2/key-value-stores/bpPZF9GFYwOtlegPR/records/tracker.csv); `historyDatasetName` keeps one log.

Weekly cost: the new refusals (every origin ≈ 14 a week, 714 published in the 12 months to 2026-11-22) + one
`watch-check` ($0.01, first 4 free) — ≈ $0.08 a week rules only, ≈ $0.18 with AI.

#### Screen your supplier sheet every month

Copy the [supplier sheet template](https://api.apify.com/v2/key-value-stores/bpPZF9GFYwOtlegPR/records/supplier-sheet-template.csv) into Google Sheets, share it "anyone with
the link", paste it into **Supplier sheet link**, press Start, then schedule the saved task the status links monthly:
one row per supplier in **Supplier screen**, clean ones too, and a REPORT page to forward.

#### 🎯 Try it for your niche

Pick one in **Start from a ready search**.

<details><summary>12 ready searches, measured</summary>

| Preset | Refusals (live, 2026-11-22; 12 months, India ones since 2024) |
|---|---|
| `india-since-2024` | India → 85 |
| `pulses-india` | chickpea, besan, peanut, sesame … → 17 |
| `spices-india` | chilli, cumin, turmeric … → 6 |
| `shrimp-india` | shrimp, prawns → 9 |
| `supplier-check` | Indian "… FOODS" exporters → 19 |
| `aflatoxin-all` | aflatoxin, all origins → 89 |
| `pesticide-india-china` | pesticides, India + China → 59 |
| `china-all` | China → 187 |
| `vietnam-seafood` | Vietnam seafood → 17 |
| `usa-all` | the US (rice, peanuts, maize) → 76 |
| `vietnam-all` | Vietnam → 64 |
| `thailand-all` | Thailand (durian, rice) → 32 |

</details>

### 🔌 Integrations, automation and API

#### Run outcomes — what your integration sees

<details><summary>Every outcome: run status, dataset, <code>OUTPUT</code> field, charged?, what to do</summary>

| Outcome | Run status | Dataset | `OUTPUT` | Charged? | What to do |
|---|---|---|---|---|---|
| Free demo | SUCCEEDED | 7 samples | `mode: demo` | no | type a product |
| Success | SUCCEEDED | best first | funnel, `aiCoverage` | per refusal | — |
| Nothing matched | SUCCEEDED | empty | `qualified: 0` | no — not by us | widen filters |
| Supplier not found | SUCCEEDED | 1 screen row (`found: false`) | `screenRows`, `supplierScreen` | $0.01 a name | not a clearance |
| Invalid input | FAILED | empty | — | no | fix the named field |
| Source failed (MHLW down) | FAILED, no `failOnSourceError` needed | empty | `ok: false`, `outcome: source_failed`, `sourceError` | no | retry later |
| Source partial (a file failed) | SUCCEEDED | rows read | `sourceStatus.partial: true` | per refusal | run again |
| AI unavailable | SUCCEEDED | rule-scored | `aiError` | basic price | your own key |

</details>

- **Webhook** — `webhookUrl` POSTs each refusal (`webhookBatchSize` > 1: a batch body `import_refusals.qualified`),
  with `runId`; a 429 / 5xx is retried, then re-sent next run, never charged twice.
- **Which call runs what:** `OUTPUT.mode` — `demo` (`{}`), `live` (`"sourceMode": "live"` with any cap or filter
  reads every origin, 12 months), `list`, `dataset`.
- **Which delivery field wins** — each URL is posted once; a per-service field wins. **PortLess** runs this Actor for
  supplier risk evidence, upserting on `dedupeKey`.

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("rich_minds/import-refusals-ai").call(
    run_input={
        # free first call instead: {} (the demo) or {"sourceMode": "list", "itemsList": [{"product": "…"}]}
        # over the API the mode you send runs (autoSwitchToLive is Console-only)
        "products": ["chickpea", "besan"], "originCountries": ["IN"],
        "goalDescription": "Pulses from India for a Japanese importer",
        "maxQualified": 100,
        # "maxDiscoveryChargeUsd": 0.5,  # no Store-Actor source to cap: MHLW is read directly
    },
    timeout_secs=3600,  # own-key AI worst case (FAQ run times)
    # build="0.1.11",  # pin the build your pipeline was tested with
)
out = client.key_value_store(run["defaultKeyValueStoreId"]).get_record("OUTPUT")["value"]
if not out.get("ok", True):
    raise RuntimeError(out.get("outcome"), out.get("sourceError"))
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["url"], item["score"], item["label"], item["exporterName"])
```

<details><summary>The same call in JavaScript</summary>

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: '<YOUR_API_TOKEN>' });
const run = await client.actor('rich_minds/import-refusals-ai').call({
    products: ['chickpea', 'besan'], originCountries: ['IN'], maxQualified: 100,
}, { timeout: 3600 /* , build: '0.1.11' */ });
const out = (await client.keyValueStore(run.defaultKeyValueStoreId).getRecord('OUTPUT')).value;
if (out.ok === false) throw new Error(`${out.outcome}: ${out.sourceError}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.map((i) => [i.url, i.score, i.label, i.exporterName]));
```

</details>

**MCP:** `{"mcpServers": {"apify": {"url": "https://mcp.apify.com/?actors=rich_minds/import-refusals-ai"}}}` —
ask *"Which Indian chickpea exporters did Japan refuse?"* **Minimal agent input:**

```json
{"exporterNames": ["SONYA FOODS", "ZEEL PACKAGING"], "originCountries": ["IN"], "maxQualified": 20, "dedupeAcrossRuns": false}
```

#### List-mode rows — what a pasted record needs

Your own rows go into `itemsList`; the free filters apply.

<details><summary>The fields a pasted row needs — only <code>product</code> is required</summary>

| Field | Needed? | What it enables |
|---|---|---|
| `product` | required | the headline (or `name` / `title`) |
| `hazard` | optional | hazard flags and filter; `hazardDetail` the note |
| `exporterName` / `manufacturer` / `shipper` | optional | `named_exporter`, the supplier filter |
| `country`, `publishedOn`, `action`, `inspection` | optional | origin filter; `publishedOn` = the authority's publication date (`recent`) |
| `rowId`, `sourceUrl`, `productEn`, `productJa`, `port`, `importer` | optional | the stable id (published date + product + exporter), carried fields |

</details>

### 👥 Who is it for?

<details><summary>Every persona, with the run that fits it</summary>

| You are… | You run it to… | Start with |
|---|---|---|
| An Indian food exporter | see which hazards stop your product in Japan | `pulses-india`, `spices-india` |
| An importer or sourcing agent | vet a supplier before paying | "Supplier name" |
| A compliance team | screen the supplier list each month | "Supplier sheet link" |
| A Chinese, Vietnamese, Thai or US exporter | see what Japan rejects from your country | `china-all`, `vietnam-all`, `thailand-all`, `usa-all` |
| A food-safety lab | see which exporters and products fail on aflatoxin, with a lookup link each | `aflatoxin-all` |

</details>

### 🇯🇵 日本語: 輸入食品の違反事例を輸出者名で検索

厚生労働省の輸入食品違反事例を、輸出者名・品目・原産国・違反内容(アフラトキシン、残留農薬)で検索。25件まで無料。

**輸入違反事例を輸出者名で検索できますか?** はい。「Supplier name」で2024年4月以降の全ファイルを検索します。

**検査命令の品目だけを見られますか?** はい。「Target flags」で検査命令を選んでください。

### 🇨🇳 中文:日本拒收的进口食品(按出口商查询)

日本厚生劳动省(MHLW)公布的进口食品违规记录,可按出口商、品名、原产国和危害(黄曲霉毒素、农药残留)查询,英文输出。中国是被拒最多的来源国:12个月187批。前25条免费。

**能查我的供应商是否被日本拒收吗?** 能。在“Supplier name”输入公司名,检索2024年4月以来的全部文件。

**能每周自动提醒吗?** 能。定时运行,新的拒收记录发送到 Slack 或 Telegram。

### 🇻🇳 Tiếng Việt: lô thực phẩm bị Nhật Bản từ chối nhập khẩu

Tra cứu vi phạm nhập khẩu thực phẩm của Bộ Y tế Nhật Bản (MHLW) theo nhà xuất khẩu, sản phẩm, nước xuất xứ và mối nguy, bằng tiếng Anh. 12 tháng: 64 lô từ Việt Nam. 25 kết quả đầu miễn phí.

**Kiểm tra nhà cung cấp có bị Nhật từ chối không?** Có, nhập tên vào "Supplier name".

**Nhận cảnh báo hằng tuần?** Có, lên lịch chạy; lô mới gửi qua Slack hoặc Telegram.

### 🇮🇳 हिन्दी: जापान ने कौन-सा भारतीय खाद्य लौटाया

जापान (MHLW) के खाद्य आयात अस्वीकृति रिकॉर्ड, निर्यातक, उत्पाद, मूल देश और खतरे (अफ़्लाटॉक्सिन, कीटनाशक अवशेष) के साथ, अंग्रेज़ी में। 12 महीनों में भारत से 35। पहले 25 मुफ़्त।

**क्या मैं अपने सप्लायर की जाँच कर सकता हूँ?** हाँ, "Supplier name" में नाम लिखें।

**हर हफ़्ते अलर्ट मिलेगा?** हाँ, शेड्यूल करें; नई अस्वीकृतियाँ Slack या Telegram में।

### 🧠 How the AI works

`anthropic/claude-haiku-4.5` (Apify) or your key's model reads one refusal and your brief; a made-up number or a
failed call falls back to the rule note, at the basic price.

### 🔒 Data, compliance and limits

Official public data, MHLW's files from April 2024; private-person importers are never output. Japan only for now
(EU RASFF / US FDA: `OUTPUT.refused`). `hsCode` is our HS-4 mapping, null when unsure.

### ❓ FAQ

**What will my first real search cost?** 12 months of Indian refusals = 35 rows: 25 free, 10 × $0.005 = $0.05.

**How long does a run take?**

| Mode | Measured time | `timeoutSecs` |
|---|---|---|
| Free demo | 2 s | 120 |
| Live read, rules only (2 files, 1,196 rows) | 3.7 s | 300 |
| AI, own free key (google:gemini-3.5-flash-lite) | 0.7 s per refusal, ≈ 85 a minute (measured 2026-11-22) | 215 per 50 |
| AI via Apify's model access (anthropic/claude-haiku-4.5) | not measured on the platform yet (dated in our roadmap) | 3600 |
| AI, free own key, rate-limited | worst case ≈ 190 s per 100 (70 s calls + 120 s wait) | 3600 |

**Is this Japan import violations data official?** Yes — each row is a line of an MHLW file (`sourceUrl`).

**Can I run a supplier risk check on one exporter?** Yes — "Supplier name" reads every file since April 2024
(`OUTPUT.sinceApplied`); close names land in `OUTPUT.nearMatches`. None found is not a clearance.

**Does it catch every aflatoxin rejection?** Every one MHLW publishes, with the level — 89 in 12 months.

**Which pesticide residue rejection levels does it show?** The substance and ppm MHLW wrote (`chlorpyrifos 0.02 ppm`).

**Why pay when the MHLW import violations page is free?** For one refusal once, use the page; weekly and in
English the Actor saves ≈ 4 minutes a refusal (on 5 sample refusals, 2026-11-22).

**Can I track food export rejections from other origins?** Yes — every origin is the default. 12 months: China 187
(pesticide residues), the US 76 (aflatoxin in rice, peanuts, maize), Vietnam 64 (additive limits), India 35,
Thailand 32 (durian, rice) — each has a ready search.

**Will I be charged for the same refusal twice?** No: each `rowId` is remembered per search, also after you add a
product or supplier.

**Do rule-scored refusals use my free ones?** Yes; while the AI is unavailable 5 are kept for your first AI notes
(`OUTPUT.chargeSplit.freeKeptForAi`).

### 🧩 More Actors from the same developer

- **[OFAC Sanctions Screening](https://apify.com/rich_minds/counterparty-check-ai)** — Screen a refused supplier before you pay it.
- **[UN Comtrade Trade Data](https://apify.com/rich_minds/export-market-finder-ai)** — Japan refused it? Find the next country that buys it.
- **[DGFT Notification Watch](https://apify.com/rich_minds/trade-regulation-watch-ai)** — India's export bans and limits on your HS codes.
- **[Alibaba RFQ Leads AI](https://apify.com/rich_minds/alibaba-rfq-leads-ai)** — buyers asking for your product on Alibaba; check their market's refusals before you quote.
- **[1688 Supplier Finder](https://apify.com/rich_minds/1688-supplier-finder-ai)** — Chinese factories for your product, costed, before you source a shipment.
- **[ECGC Country Risk Classification](https://apify.com/rich_minds/country-risk-feed-ai)** — a market's payment risk next to its border refusals.
- **[WTO ePing Alerts](https://apify.com/rich_minds/destination-rule-watch-ai)** — the new import rules behind tomorrow's refusals, for your HS codes and markets.

### 🆘 Support

Open an issue on the Actor's page — buyer requests ship first.

### 📝 Changelog

- **0.1.11** (2026-11-23) — More Actors: WTO ePing Alerts linked.
- **0.1.10** (2026-11-23) — More Actors: the newest related tools linked, each in this page's words.
- **0.1.9** (2026-11-22) — one dated row per screened supplier, clean ones too; $0.01 per supplier screened and per scheduled watch check; a next-step link on every row; Thai, US and Vietnam searches.
- **0.1.8** (2026-11-22) — API callers: an unknown `authorities` value (an API-only field) still fails the run at once.

<details><summary>Older builds</summary>

- **0.1.1–0.1.7** (2026-11-22) — MHLW refusals by exporter in English, every origin, supplier lists and sheet, HS codes, AI note.

</details>

# Actor input Schema

## `preset` (type: `string`):

Pick a ready search and press Start: it replaces the sample below and reads MHLW's refusal files live (any Apify plan, nothing charged by a source Actor); a value you typed yourself always wins. The status names what ran. <b>Custom</b> = fill the fields yourself.

## `products` (type: `array`):

Product words — <code>chickpea</code>, <code>shrimp</code>, <code>chilli</code> … — matched on the English and the Japanese name. Typing one next to the sample starts the live read of MHLW's files. Empty = every product. Free filter. Works on every Apify plan; rows you already have go into list mode.

## `exporterName` (type: `string`):

Refusals naming this company as manufacturer or shipper (legal forms ignored; close names in <code>OUTPUT.nearMatches</code>). No date = every file since April 2024. One dated screen row, found or clean. Affects what you pay: $0.01 per supplier screened (first 25 free) + each refusal found. Works on every Apify plan; rows you already have go into list mode.

## `exporterNames` (type: `array`):

Up to 1,000 names, one per line — one screen row each in the "Supplier screen" view, found or clean. Affects what you pay: $0.01 per supplier screened (first 25 free) + each refusal found. A sheet goes in <b>Supplier sheet link</b> below. Works on every Apify plan; rows you already have go into list mode.

## `exporterListUrl` (type: `string`):

Your supplier sheet: a Google Sheet shared as 'anyone with the link', or any CSV link; names in column A. Re-read on every scheduled run. Joins <b>Supplier list</b>. Affects what you pay: $0.01 per supplier screened, first 25 free. Works on every Apify plan; rows you already have go into list mode.

## `goalDescription` (type: `string`):

Your brief, used by the AI note: what you buy or export and where (<i>red chilli powder from India to a Japanese importer</i>). Never decides what you pay.

## `notifyEmail` (type: `string`):

After every run with new import refusals, the digest (top 10 with links) is e-mailed here — schedule it weekly and only new ones arrive. Sent by Apify's send-mail Actor, so it needs a plan that runs Store Actors; on any plan use a Slack / Teams / Discord webhook (Send alerts to). Never sent for the free demo.

## `minScore` (type: `integer`):

0 = every matching refusal. Higher keeps the telling ones first: 40 an official refusal, + 20 a named exporter, + 15 under inspection order, + 15 a health hazard, + 10 in the last 90 days. Free filter — rows below it are never charged.

## `maxQualified` (type: `integer`):

Hard cap on results — and the ceiling of what this Actor charges: at most this many × $0.01 with AI on (× $0.005 with AI off). Affects what you pay. The best-scoring import refusals are output first.

## `enableAi` (type: `boolean`):

Rank each refusal by your brief and write what to test before shipping. <b>On = $0.01 per refusal on your Apify bill + ≈ $0.0021 AI tokens (Apify model access: billed by Apify; own key: by your provider, $0 on a free Gemini key); off = $0.005</b>. Starter plan and up (not measured on the platform yet).

## `originCountries` (type: `array`):

Where the refused food came from: <code>IN</code>, <code>CN</code>, <code>VN</code> … (ISO-2). Empty (default) = every origin. Choosing one starts the live read on its own (any Apify plan). Free filter.

## `hazards` (type: `array`):

Only these hazards (aflatoxin, pesticide residue, bacteria …). Empty = all. Free filter on the live read (any Apify plan). Works on every Apify plan; rows you already have go into list mode.

## `since` (type: `string`):

Refusals published on or after this date. Empty = the last 12 months for a product search, every file since April 2024 for a supplier lookup (OUTPUT.sinceApplied says which). Free filter on the live read (any Apify plan). Works on every Apify plan; rows you already have go into list mode.

## `hsCodes` (type: `array`):

Only products under these HS codes — <code>0904</code> (pepper, chilli), <code>0713</code> (pulses), <code>09</code> (every spice, tea and coffee heading). Each row carries its HS-4 heading in <code>hsCode</code> (null when MHLW's product name cannot be placed — those rows are left out while this filter is set). Free filter; starts the live read. Works on every Apify plan; rows you already have go into list mode.

## `authorities` (type: `array`):

API only — hidden on the form. Whose refusals to read: <code>mhlw</code> (default), <code>rasff</code> or <code>fda</code>; any other value fails the run at once. Japan's MHLW names the manufacturer and shipper of every refused consignment. EU RASFF and US FDA are accepted and always reported in <code>OUTPUT.refused</code> in this version.

## `targetFlags` (type: `array`):

Only deliver import refusals that have at least one of these flags, and rank those with more of them higher. Leave empty to keep everything. An API call passes the flag names from the README's flag table, e.g. <code>health_hazard</code> (<code>healthHazard</code> works too); an unknown name stops the run at once with the list of valid ones.

## `suppressionList` (type: `array`):

Names, URLs or ids to never output. Suppressed import refusals are skipped before any processing and never charged.

## `allowList` (type: `array`):

API only — hidden on the form. Names, URLs or ids no free rule may drop (an import refusal a rule skipped as off-type last run — see <code>OUTPUT.skips</code> for the names). They still need to pass <code>minScore</code>.

## `llmProvider` (type: `string`):

<b>Apify (no keys)</b> — the AI runs through Apify's built-in OpenRouter proxy; tokens are billed to your Apify account at OpenRouter's rates. <b>My own key</b> — your Gemini key by default (model google:gemini-3.5-flash-lite, measured 2026-11-22: ≈ 0.7 s per import refusal with a free google:gemini-3.5-flash-lite key, so 50 refusals fit a 215 s timeout); set the model field for an OpenAI / Anthropic / Groq key. A free-tier key assesses only a few import refusals per run — expect 1–3 AI checks (2 calls at a time, one after a rate limit, then the 3 borderline import refusals retried one by one) — and the rest keep their rule score; a paid Groq / Gemini key (billing on) assesses every import refusal.

## `llmModel` (type: `string`):

Leave empty for the default (<code>anthropic/claude-haiku-4.5</code>). Apify mode takes an OpenRouter slug such as <code>openai/gpt-4.1-mini</code>; own-key mode takes <code>provider:model</code>, e.g. <code>anthropic:claude-haiku-4-5-20251001</code>.

## `llmApiKey` (type: `string`):

Required when <b>AI model access</b> is <i>My own API key</i>. Stored encrypted by Apify, never logged.

## `aiCandidateMultiplier` (type: `integer`):

API only — hidden on the form. How many of the best rule-scored import refusals get the AI pass, as a multiple of <b>Max qualified</b>. Higher = more thorough, slower, more tokens.

## `sendAlertsTo` (type: `string`):

Paste one or more URLs, one per line — the service is detected from the address: a Slack or Discord channel webhook, a Teams Workflows or Google Chat space webhook, your Telegram bot's send link (<code>https://api.telegram.org/bot\<token>/sendMessage?chat_id=@yourchannel</code>) or any other https URL (Zapier, Make, n8n, your CRM), which gets the import refusals as JSON. After every run with at least one new import refusal, the digest (how many are new, the top 10 with links) is posted there. Never sent for the free demo. Headers, batching and signing: <i>Delivery details (advanced)</i>.

## `dedupeAcrossRuns` (type: `boolean`):

Remembers every import refusal you were charged for (in a named key-value store on your account) and skips it in future runs.

## `dedupeTtlDays` (type: `integer`):

How long a delivered import refusal stays remembered. 0 = never deliver or charge it again — a refusal is published once, so 0 fits almost every watch.

## `historyDatasetName` (type: `string`):

Optional. Type a name (e.g. <code>import-refusals-ai-seen-log</code>) and every run appends its new import refusals with the date to that named dataset on your account — one list across months to connect to Google Sheets or your BI tool once. Empty = off. Costs nothing extra.

## `sourceMode` (type: `string`):

The mode that runs = this field, except <code>{}</code> = the free demo. <b>live</b> reads MHLW's files itself (no Store Actor, any plan) — sent with any other setting (a cap, AI off, a filter) it reads every origin of the last 12 months, never the demo; <b>dataset</b> / <b>list</b> filter and score refusal rows you already have. The chosen mode with your own records always runs; only the untouched sample + a product / supplier you typed switches to the live read.

## `autoSwitchToLive` (type: `boolean`):

On (default, Console runs only): search terms typed next to the untouched sample records start the live search (spend-capped; <code>OUTPUT.switchedToLive</code> names them). Off: the mode you send is the mode that runs — the sample stays the free demo and the status names the terms it did not search. Over the API the mode you send is always the mode that runs.

## `failOnSourceError` (type: `boolean`):

Deprecated, ignored by the built-in MHLW reader: a run where no authority answered (MHLW down, every file failed) is FAILED with the reason either way, so a schedule's or pipeline's failed-run alert fires without it.

## `datasetId` (type: `string`):

Only for <b>dataset</b> mode. Pick the dataset so the Actor is granted read access to it.

## `itemsList` (type: `array`):

Only for <b>list</b> mode. JSON array of refusal rows, e.g. from an earlier run or your own sheet. Required on every row: <code>product</code> (or <code>name</code>) and <code>hazard</code>; optional: any field the README's <i>List-mode rows</i> table names — a row missing a required field is skipped and counted in the status.

## `maxDiscoveryChargeUsd` (type: `number`):

API only: cap on what a Store source Actor run may charge your account. The built-in MHLW reader runs none, so it never applies to the form's modes — $0.50 for an API call that leaves it out.

## `discoveryActorId` (type: `string`):

Deprecated, ignored — this Actor reads MHLW's files itself; there is no source-Actor mode.

## `discoveryInput` (type: `object`):

Deprecated, ignored — this Actor reads MHLW's files itself, so no Apify plan can refuse the live read; rows you already have go into <code>itemsList</code> (list mode).

## `maxToProcess` (type: `integer`):

Upper bound on how many import refusals are scored in one run (controls run time). Default = 3 × max qualified.

## `webhookUrl` (type: `string`):

Qualified import refusals are POSTed here as JSON (Zapier, Make, n8n, your CRM). For Google Sheets / Slack you can also use Apify's built-in Integrations tab. Stored encrypted — Zapier / Make hook URLs carry their secret in the path.

## `webhookHeaders` (type: `object`):

Extra HTTP headers for the webhook, e.g. <code>{"Authorization": "Bearer …"}</code>. Stored encrypted by Apify, never logged.

## `webhookBatchSize` (type: `integer`):

API only — hidden on the form. 1 = one POST per import refusal the moment it is ready. Higher = one POST per N import refusals.

## `webhookSecret` (type: `string`):

Any random string. Every webhook POST then carries <code>X-Signature: sha256=\<HMAC-SHA256 of the raw body with this secret></code>, so your endpoint can verify it came from this Actor. Stored encrypted by Apify, never logged.

## `dedupeStoreName` (type: `string`):

API only — hidden on the form. Key-value store used for cross-run memory. Left at the default, the memory is kept per search (source and search terms): rewording <code>goalDescription</code> keeps it, so a scheduled run never re-delivers what you already have, and another search starts its own list. Running it for several clients on one account, type one name per client.

## `discoveryTimeoutSecs` (type: `integer`):

API only — hidden on the form. How long the source Store Actor may run before its partial results are used — never more than 60 % of the run's time left, so the AI, the charges and the digest keep the rest. Raise it (and the run timeout) when the status says the source stopped early.

## `slackWebhookUrl` (type: `string`):

API only — hidden on the form, where <code>sendAlertsTo</code> takes it. Slack incoming-webhook URL for the digest.

## `discordWebhookUrl` (type: `string`):

API only — hidden on the form, where <code>sendAlertsTo</code> takes it. Discord channel webhook URL for the digest.

## `teamsWebhookUrl` (type: `string`):

API only — hidden on the form, where <code>sendAlertsTo</code> takes it. Teams Workflows webhook URL for the digest.

## `googleChatWebhookUrl` (type: `string`):

API only — hidden on the form, where <code>sendAlertsTo</code> takes it. Google Chat space webhook URL for the digest.

## `telegramUrl` (type: `string`):

API only — hidden on the form, where <code>sendAlertsTo</code> takes it. The bot's sendMessage link with its chat_id.

## Actor input object example

```json
{
  "preset": "custom",
  "minScore": 0,
  "maxQualified": 100,
  "enableAi": true,
  "authorities": [
    "mhlw"
  ],
  "llmProvider": "apify",
  "aiCandidateMultiplier": 2,
  "dedupeAcrossRuns": true,
  "dedupeTtlDays": 0,
  "historyDatasetName": "",
  "sourceMode": "list",
  "autoSwitchToLive": true,
  "failOnSourceError": false,
  "itemsList": [
    {
      "authority": "mhlw",
      "importingCountry": "JP",
      "publishedOn": "2025-04-24",
      "country": "CN",
      "countryName": "China",
      "countryJa": "中華人民共和国",
      "product": "peanuts",
      "productEn": "peanuts",
      "productEnSource": "dictionary",
      "productJa": "小粒落花生",
      "exporterName": "XINGCHENG JINDOU PEANUT CO.,LTD.",
      "manufacturer": null,
      "shipper": "XINGCHENG JINDOU PEANUT CO.,LTD.",
      "hazard": "aflatoxin",
      "hazardDetail": "aflatoxin 23 μg/kg",
      "violationJa": "アフラトキシン 23μg/kg(B1:20.4 μg/kg、B2:2.2 μg/kg)検出",
      "legalArticle": "第6条第2号",
      "action": "returned",
      "actionJa": "積み戻し",
      "inspection": "inspection_order",
      "inspectionJa": "検査命令",
      "port": "Tokyo",
      "portJa": "東京",
      "importer": null,
      "cause": "天候不良による乾燥不十分",
      "reference": "MHLW 令和7年4月 row 38",
      "source": "mhlw",
      "sourceUrl": "https://www.mhlw.go.jp/content/001722154.xls",
      "feedUrl": "https://www.mhlw.go.jp/stf/seisakunitsuite/bunya/kenkou_iryou/shokuhin/yunyu_kanshi/ihan/index.html",
      "fetchedAt": "2026-11-22T00:00:00+00:00",
      "rowId": "2aa6f4965c7c0c15-sample"
    },
    {
      "authority": "mhlw",
      "importingCountry": "JP",
      "publishedOn": "2026-10-08",
      "country": "IN",
      "countryName": "India",
      "countryJa": "インド",
      "product": "CUMIN SEEDS",
      "productEn": "CUMIN SEEDS",
      "productEnSource": "mhlw",
      "productJa": "野草加工品及び香辛料:クミン(CUMIN SEEDS)",
      "exporterName": "GANDHI SPICES PVT.LTD.",
      "manufacturer": "GANDHI SPICES PVT.LTD.",
      "shipper": null,
      "hazard": "irradiated",
      "hazardDetail": "irradiated (banned in Japan)",
      "violationJa": "製造、加工及び調理基準不適合(放射線照射)",
      "legalArticle": "第13条第2項",
      "action": "destroy_or_return",
      "actionJa": "廃棄、積み戻し等を指示(全量保管)",
      "inspection": "monitoring",
      "inspectionJa": "モニタリング検査",
      "port": "Nagoya",
      "portJa": "名古屋",
      "importer": "株式会社 ビスワス",
      "cause": null,
      "reference": "MHLW 令和8年4月~令和8年11月 row 301",
      "source": "mhlw",
      "sourceUrl": "https://www.mhlw.go.jp/content/001768784.xlsx",
      "feedUrl": "https://www.mhlw.go.jp/stf/seisakunitsuite/bunya/kenkou_iryou/shokuhin/yunyu_kanshi/ihan/index.html",
      "rowId": "46b569515fbac082-sample"
    },
    {
      "authority": "mhlw",
      "importingCountry": "JP",
      "publishedOn": "2026-10-08",
      "country": "IN",
      "countryName": "India",
      "countryJa": "インド",
      "product": "ANDHRA GONGURA PICKLE",
      "productEn": "ANDHRA GONGURA PICKLE",
      "productEnSource": "mhlw",
      "productJa": "その他の野菜の調整品(ANDHRA GONGURA PICKLE)",
      "exporterName": "DESAI FOODS PRIVATE LTD.",
      "manufacturer": "DESAI FOODS PRIVATE LTD.",
      "shipper": null,
      "hazard": "unauthorised_additive",
      "hazardDetail": "TBHQ 0.004 g/kg",
      "violationJa": "指定外添加物(TBHQ 0.004 g/kg 検出)",
      "legalArticle": "第12条",
      "action": "destroy_or_return",
      "actionJa": "廃棄、積み戻し等を指示(全量保管)",
      "inspection": "monitoring",
      "inspectionJa": "モニタリング検査",
      "port": "Kobe",
      "portJa": "神戸",
      "importer": "株式会社 SARTAJ",
      "cause": null,
      "reference": "MHLW 令和8年4月~令和8年11月 row 313",
      "source": "mhlw",
      "sourceUrl": "https://www.mhlw.go.jp/content/001768784.xlsx",
      "feedUrl": "https://www.mhlw.go.jp/stf/seisakunitsuite/bunya/kenkou_iryou/shokuhin/yunyu_kanshi/ihan/index.html",
      "rowId": "d76bd66ac45d6593-sample"
    },
    {
      "authority": "mhlw",
      "importingCountry": "JP",
      "publishedOn": "2026-09-11",
      "country": "IN",
      "countryName": "India",
      "countryJa": "インド",
      "product": "okra",
      "productEn": "okra",
      "productEnSource": "dictionary",
      "productJa": "無加熱摂取冷凍食品:おくら(インド産KLA社冷凍オクラ)",
      "exporterName": "KLA FOOD INDIA LTD.",
      "manufacturer": "KLA FOOD INDIA LTD.",
      "shipper": null,
      "hazard": "bacteria",
      "hazardDetail": "bacteria count 1.9×10^5/g",
      "violationJa": "成分規格不適合(細菌数 1.9×105 /g)",
      "legalArticle": "第13条第2項",
      "action": "destroy_or_return",
      "actionJa": "廃棄、積み戻し等を指示(全量保管)",
      "inspection": "own_check",
      "inspectionJa": "自主検査",
      "port": "Kawasaki",
      "portJa": "川崎",
      "importer": "兼松 株式会社",
      "cause": null,
      "reference": "MHLW 令和8年4月~令和8年11月 row 282",
      "source": "mhlw",
      "sourceUrl": "https://www.mhlw.go.jp/content/001768784.xlsx",
      "feedUrl": "https://www.mhlw.go.jp/stf/seisakunitsuite/bunya/kenkou_iryou/shokuhin/yunyu_kanshi/ihan/index.html",
      "rowId": "7401508af9ccc1c2-sample"
    },
    {
      "authority": "mhlw",
      "importingCountry": "JP",
      "publishedOn": "2026-09-03",
      "country": "IN",
      "countryName": "India",
      "countryJa": "インド",
      "product": "CHICK PEAS FLOUR",
      "productEn": "CHICK PEAS FLOUR",
      "productEnSource": "mhlw",
      "productJa": "豆類の粉(BESAN(CHICK PEAS FLOUR))",
      "exporterName": "ZEEL PACKAGING",
      "manufacturer": "ZEEL PACKAGING",
      "shipper": null,
      "hazard": "pesticide_residue",
      "hazardDetail": "chlorpyrifos 0.02 ppm",
      "violationJa": "13条3項に基づき人の健康を損なうおそれのない量として定める量を超えて残留(クロルピリホス 0.02 ppm検出)",
      "legalArticle": "第13条第3項",
      "action": "destroy_or_return",
      "actionJa": "廃棄、積み戻し等を指示(全量保管)",
      "inspection": "inspection_order",
      "inspectionJa": "検査命令",
      "port": "Kobe",
      "portJa": "神戸",
      "importer": "株式会社 ビスワス",
      "cause": null,
      "reference": "MHLW 令和8年4月~令和8年11月 row 275",
      "source": "mhlw",
      "sourceUrl": "https://www.mhlw.go.jp/content/001768784.xlsx",
      "feedUrl": "https://www.mhlw.go.jp/stf/seisakunitsuite/bunya/kenkou_iryou/shokuhin/yunyu_kanshi/ihan/index.html",
      "rowId": "e9b83926b9f54e06-sample"
    },
    {
      "authority": "mhlw",
      "importingCountry": "JP",
      "publishedOn": "2026-06-16",
      "country": "IN",
      "countryName": "India",
      "countryJa": null,
      "product": "FROZEN RAW PIN DEVEINED VANNAMEI SHRIMP IQF",
      "productEn": "FROZEN RAW PIN DEVEINED VANNAMEI SHRIMP IQF",
      "productEnSource": "mhlw",
      "productJa": "加熱後摂取冷凍食品(凍結直前未加熱):えび類(バナメイエビ)(FROZEN RAW PIN DEVEINED VANNAMEI SHRIMP IQF)",
      "exporterName": "VEERABHADRA EXPORTS PRIVATE LIMITED",
      "manufacturer": "VEERABHADRA EXPORTS PRIVATE LIMITED",
      "shipper": null,
      "hazard": "veterinary_drug",
      "hazardDetail": "furazolidone 0.001 ppm",
      "violationJa": "成分規格不適合(フラゾリドン 0.001 ppm 検出)",
      "legalArticle": "第13条第2項",
      "action": "destroy_or_return",
      "actionJa": "廃棄、積み戻し等を指示(全量保管)",
      "inspection": "inspection_order",
      "inspectionJa": null,
      "port": "Tokyo",
      "portJa": null,
      "importer": "阪和興業 株式会社",
      "cause": "一部養殖場の周辺河川からの汚染",
      "reference": "MHLW 令和8年4月~令和8年11月 row 110",
      "source": "mhlw",
      "sourceUrl": "https://www.mhlw.go.jp/content/001768784.xlsx",
      "feedUrl": "https://www.mhlw.go.jp/stf/seisakunitsuite/bunya/kenkou_iryou/shokuhin/yunyu_kanshi/ihan/index.html",
      "rowId": "163a1b231098e3f9-sample"
    },
    {
      "authority": "mhlw",
      "importingCountry": "JP",
      "publishedOn": "2026-05-14",
      "country": "VN",
      "countryName": "Vietnam",
      "countryJa": null,
      "product": "DRIED SEASONED SHRIMP",
      "productEn": "DRIED SEASONED SHRIMP",
      "productEnSource": "mhlw",
      "productJa": "調味乾製品:えび類(DRIED SEASONED SHRIMP)",
      "exporterName": "BARIA VUNGTAU SEAFOOD PROCESSING & IMP. EXP. JOINT STOCK CO.(BASEAFOOD)",
      "manufacturer": "BARIA VUNGTAU SEAFOOD PROCESSING & IMP. EXP. JOINT STOCK CO.(BASEAFOOD)",
      "shipper": null,
      "hazard": "veterinary_drug",
      "hazardDetail": "enrofloxacin 0.38 ppm",
      "violationJa": "成分規格不適合(エンロフロキサシン 0.38 ppm 検出)",
      "legalArticle": "第13条第2項",
      "action": "returned",
      "actionJa": "積み戻し",
      "inspection": "inspection_order",
      "inspectionJa": null,
      "port": "Kobe",
      "portJa": null,
      "importer": "株式会社 ニューポイント",
      "cause": "動物用医薬品管理不足",
      "reference": "MHLW 令和8年4月~令和8年11月 row 69",
      "source": "mhlw",
      "sourceUrl": "https://www.mhlw.go.jp/content/001768784.xlsx",
      "feedUrl": "https://www.mhlw.go.jp/stf/seisakunitsuite/bunya/kenkou_iryou/shokuhin/yunyu_kanshi/ihan/index.html",
      "rowId": "dca34fb9927f2a0d-sample"
    }
  ],
  "maxDiscoveryChargeUsd": 0.5,
  "discoveryActorId": "apify/website-content-crawler",
  "discoveryInput": {},
  "webhookBatchSize": 1,
  "dedupeStoreName": "import-refusals-ai-seen",
  "discoveryTimeoutSecs": 3600
}
```

# Actor output Schema

## `qualified` (type: `string`):

All qualified import refusals as JSON, best-scoring first.

## `sheet` (type: `string`):

The same import refusals as a spreadsheet.

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

JSON record with the funnel (loaded -> filtered -> AI-assessed -> qualified), per-reason skip counts, charged events by type, free-tier import refusals used and remaining, whether a budget limit was reached, webhook delivery counts and the dedupe store size.

# 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 = {
    "sourceMode": "list",
    "itemsList": [
        {
            "authority": "mhlw",
            "importingCountry": "JP",
            "publishedOn": "2025-04-24",
            "country": "CN",
            "countryName": "China",
            "countryJa": "中華人民共和国",
            "product": "peanuts",
            "productEn": "peanuts",
            "productEnSource": "dictionary",
            "productJa": "小粒落花生",
            "exporterName": "XINGCHENG JINDOU PEANUT CO.,LTD.",
            "manufacturer": null,
            "shipper": "XINGCHENG JINDOU PEANUT CO.,LTD.",
            "hazard": "aflatoxin",
            "hazardDetail": "aflatoxin 23 μg/kg",
            "violationJa": "アフラトキシン 23μg/kg(B1:20.4 μg/kg、B2:2.2 μg/kg)検出",
            "legalArticle": "第6条第2号",
            "action": "returned",
            "actionJa": "積み戻し",
            "inspection": "inspection_order",
            "inspectionJa": "検査命令",
            "port": "Tokyo",
            "portJa": "東京",
            "importer": null,
            "cause": "天候不良による乾燥不十分",
            "reference": "MHLW 令和7年4月 row 38",
            "source": "mhlw",
            "sourceUrl": "https://www.mhlw.go.jp/content/001722154.xls",
            "feedUrl": "https://www.mhlw.go.jp/stf/seisakunitsuite/bunya/kenkou_iryou/shokuhin/yunyu_kanshi/ihan/index.html",
            "fetchedAt": "2026-11-22T00:00:00+00:00",
            "rowId": "2aa6f4965c7c0c15-sample"
        },
        {
            "authority": "mhlw",
            "importingCountry": "JP",
            "publishedOn": "2026-10-08",
            "country": "IN",
            "countryName": "India",
            "countryJa": "インド",
            "product": "CUMIN SEEDS",
            "productEn": "CUMIN SEEDS",
            "productEnSource": "mhlw",
            "productJa": "野草加工品及び香辛料:クミン(CUMIN SEEDS)",
            "exporterName": "GANDHI SPICES PVT.LTD.",
            "manufacturer": "GANDHI SPICES PVT.LTD.",
            "shipper": null,
            "hazard": "irradiated",
            "hazardDetail": "irradiated (banned in Japan)",
            "violationJa": "製造、加工及び調理基準不適合(放射線照射)",
            "legalArticle": "第13条第2項",
            "action": "destroy_or_return",
            "actionJa": "廃棄、積み戻し等を指示(全量保管)",
            "inspection": "monitoring",
            "inspectionJa": "モニタリング検査",
            "port": "Nagoya",
            "portJa": "名古屋",
            "importer": "株式会社 ビスワス",
            "cause": null,
            "reference": "MHLW 令和8年4月~令和8年11月 row 301",
            "source": "mhlw",
            "sourceUrl": "https://www.mhlw.go.jp/content/001768784.xlsx",
            "feedUrl": "https://www.mhlw.go.jp/stf/seisakunitsuite/bunya/kenkou_iryou/shokuhin/yunyu_kanshi/ihan/index.html",
            "rowId": "46b569515fbac082-sample"
        },
        {
            "authority": "mhlw",
            "importingCountry": "JP",
            "publishedOn": "2026-10-08",
            "country": "IN",
            "countryName": "India",
            "countryJa": "インド",
            "product": "ANDHRA GONGURA PICKLE",
            "productEn": "ANDHRA GONGURA PICKLE",
            "productEnSource": "mhlw",
            "productJa": "その他の野菜の調整品(ANDHRA GONGURA PICKLE)",
            "exporterName": "DESAI FOODS PRIVATE LTD.",
            "manufacturer": "DESAI FOODS PRIVATE LTD.",
            "shipper": null,
            "hazard": "unauthorised_additive",
            "hazardDetail": "TBHQ 0.004 g/kg",
            "violationJa": "指定外添加物(TBHQ 0.004 g/kg 検出)",
            "legalArticle": "第12条",
            "action": "destroy_or_return",
            "actionJa": "廃棄、積み戻し等を指示(全量保管)",
            "inspection": "monitoring",
            "inspectionJa": "モニタリング検査",
            "port": "Kobe",
            "portJa": "神戸",
            "importer": "株式会社 SARTAJ",
            "cause": null,
            "reference": "MHLW 令和8年4月~令和8年11月 row 313",
            "source": "mhlw",
            "sourceUrl": "https://www.mhlw.go.jp/content/001768784.xlsx",
            "feedUrl": "https://www.mhlw.go.jp/stf/seisakunitsuite/bunya/kenkou_iryou/shokuhin/yunyu_kanshi/ihan/index.html",
            "rowId": "d76bd66ac45d6593-sample"
        },
        {
            "authority": "mhlw",
            "importingCountry": "JP",
            "publishedOn": "2026-09-11",
            "country": "IN",
            "countryName": "India",
            "countryJa": "インド",
            "product": "okra",
            "productEn": "okra",
            "productEnSource": "dictionary",
            "productJa": "無加熱摂取冷凍食品:おくら(インド産KLA社冷凍オクラ)",
            "exporterName": "KLA FOOD INDIA LTD.",
            "manufacturer": "KLA FOOD INDIA LTD.",
            "shipper": null,
            "hazard": "bacteria",
            "hazardDetail": "bacteria count 1.9×10^5/g",
            "violationJa": "成分規格不適合(細菌数 1.9×105 /g)",
            "legalArticle": "第13条第2項",
            "action": "destroy_or_return",
            "actionJa": "廃棄、積み戻し等を指示(全量保管)",
            "inspection": "own_check",
            "inspectionJa": "自主検査",
            "port": "Kawasaki",
            "portJa": "川崎",
            "importer": "兼松 株式会社",
            "cause": null,
            "reference": "MHLW 令和8年4月~令和8年11月 row 282",
            "source": "mhlw",
            "sourceUrl": "https://www.mhlw.go.jp/content/001768784.xlsx",
            "feedUrl": "https://www.mhlw.go.jp/stf/seisakunitsuite/bunya/kenkou_iryou/shokuhin/yunyu_kanshi/ihan/index.html",
            "rowId": "7401508af9ccc1c2-sample"
        },
        {
            "authority": "mhlw",
            "importingCountry": "JP",
            "publishedOn": "2026-09-03",
            "country": "IN",
            "countryName": "India",
            "countryJa": "インド",
            "product": "CHICK PEAS FLOUR",
            "productEn": "CHICK PEAS FLOUR",
            "productEnSource": "mhlw",
            "productJa": "豆類の粉(BESAN(CHICK PEAS FLOUR))",
            "exporterName": "ZEEL PACKAGING",
            "manufacturer": "ZEEL PACKAGING",
            "shipper": null,
            "hazard": "pesticide_residue",
            "hazardDetail": "chlorpyrifos 0.02 ppm",
            "violationJa": "13条3項に基づき人の健康を損なうおそれのない量として定める量を超えて残留(クロルピリホス 0.02 ppm検出)",
            "legalArticle": "第13条第3項",
            "action": "destroy_or_return",
            "actionJa": "廃棄、積み戻し等を指示(全量保管)",
            "inspection": "inspection_order",
            "inspectionJa": "検査命令",
            "port": "Kobe",
            "portJa": "神戸",
            "importer": "株式会社 ビスワス",
            "cause": null,
            "reference": "MHLW 令和8年4月~令和8年11月 row 275",
            "source": "mhlw",
            "sourceUrl": "https://www.mhlw.go.jp/content/001768784.xlsx",
            "feedUrl": "https://www.mhlw.go.jp/stf/seisakunitsuite/bunya/kenkou_iryou/shokuhin/yunyu_kanshi/ihan/index.html",
            "rowId": "e9b83926b9f54e06-sample"
        },
        {
            "authority": "mhlw",
            "importingCountry": "JP",
            "publishedOn": "2026-06-16",
            "country": "IN",
            "countryName": "India",
            "countryJa": null,
            "product": "FROZEN RAW PIN DEVEINED VANNAMEI SHRIMP IQF",
            "productEn": "FROZEN RAW PIN DEVEINED VANNAMEI SHRIMP IQF",
            "productEnSource": "mhlw",
            "productJa": "加熱後摂取冷凍食品(凍結直前未加熱):えび類(バナメイエビ)(FROZEN RAW PIN DEVEINED VANNAMEI SHRIMP IQF)",
            "exporterName": "VEERABHADRA EXPORTS PRIVATE LIMITED",
            "manufacturer": "VEERABHADRA EXPORTS PRIVATE LIMITED",
            "shipper": null,
            "hazard": "veterinary_drug",
            "hazardDetail": "furazolidone 0.001 ppm",
            "violationJa": "成分規格不適合(フラゾリドン 0.001 ppm 検出)",
            "legalArticle": "第13条第2項",
            "action": "destroy_or_return",
            "actionJa": "廃棄、積み戻し等を指示(全量保管)",
            "inspection": "inspection_order",
            "inspectionJa": null,
            "port": "Tokyo",
            "portJa": null,
            "importer": "阪和興業 株式会社",
            "cause": "一部養殖場の周辺河川からの汚染",
            "reference": "MHLW 令和8年4月~令和8年11月 row 110",
            "source": "mhlw",
            "sourceUrl": "https://www.mhlw.go.jp/content/001768784.xlsx",
            "feedUrl": "https://www.mhlw.go.jp/stf/seisakunitsuite/bunya/kenkou_iryou/shokuhin/yunyu_kanshi/ihan/index.html",
            "rowId": "163a1b231098e3f9-sample"
        },
        {
            "authority": "mhlw",
            "importingCountry": "JP",
            "publishedOn": "2026-05-14",
            "country": "VN",
            "countryName": "Vietnam",
            "countryJa": null,
            "product": "DRIED SEASONED SHRIMP",
            "productEn": "DRIED SEASONED SHRIMP",
            "productEnSource": "mhlw",
            "productJa": "調味乾製品:えび類(DRIED SEASONED SHRIMP)",
            "exporterName": "BARIA VUNGTAU SEAFOOD PROCESSING & IMP. EXP. JOINT STOCK CO.(BASEAFOOD)",
            "manufacturer": "BARIA VUNGTAU SEAFOOD PROCESSING & IMP. EXP. JOINT STOCK CO.(BASEAFOOD)",
            "shipper": null,
            "hazard": "veterinary_drug",
            "hazardDetail": "enrofloxacin 0.38 ppm",
            "violationJa": "成分規格不適合(エンロフロキサシン 0.38 ppm 検出)",
            "legalArticle": "第13条第2項",
            "action": "returned",
            "actionJa": "積み戻し",
            "inspection": "inspection_order",
            "inspectionJa": null,
            "port": "Kobe",
            "portJa": null,
            "importer": "株式会社 ニューポイント",
            "cause": "動物用医薬品管理不足",
            "reference": "MHLW 令和8年4月~令和8年11月 row 69",
            "source": "mhlw",
            "sourceUrl": "https://www.mhlw.go.jp/content/001768784.xlsx",
            "feedUrl": "https://www.mhlw.go.jp/stf/seisakunitsuite/bunya/kenkou_iryou/shokuhin/yunyu_kanshi/ihan/index.html",
            "rowId": "dca34fb9927f2a0d-sample"
        }
    ],
    "maxDiscoveryChargeUsd": 0.5,
    "discoveryInput": {}
};

// Run the Actor and wait for it to finish
const run = await client.actor("rich_minds/import-refusals-ai").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 = {
    "sourceMode": "list",
    "itemsList": [
        {
            "authority": "mhlw",
            "importingCountry": "JP",
            "publishedOn": "2025-04-24",
            "country": "CN",
            "countryName": "China",
            "countryJa": "中華人民共和国",
            "product": "peanuts",
            "productEn": "peanuts",
            "productEnSource": "dictionary",
            "productJa": "小粒落花生",
            "exporterName": "XINGCHENG JINDOU PEANUT CO.,LTD.",
            "manufacturer": None,
            "shipper": "XINGCHENG JINDOU PEANUT CO.,LTD.",
            "hazard": "aflatoxin",
            "hazardDetail": "aflatoxin 23 μg/kg",
            "violationJa": "アフラトキシン 23μg/kg(B1:20.4 μg/kg、B2:2.2 μg/kg)検出",
            "legalArticle": "第6条第2号",
            "action": "returned",
            "actionJa": "積み戻し",
            "inspection": "inspection_order",
            "inspectionJa": "検査命令",
            "port": "Tokyo",
            "portJa": "東京",
            "importer": None,
            "cause": "天候不良による乾燥不十分",
            "reference": "MHLW 令和7年4月 row 38",
            "source": "mhlw",
            "sourceUrl": "https://www.mhlw.go.jp/content/001722154.xls",
            "feedUrl": "https://www.mhlw.go.jp/stf/seisakunitsuite/bunya/kenkou_iryou/shokuhin/yunyu_kanshi/ihan/index.html",
            "fetchedAt": "2026-11-22T00:00:00+00:00",
            "rowId": "2aa6f4965c7c0c15-sample",
        },
        {
            "authority": "mhlw",
            "importingCountry": "JP",
            "publishedOn": "2026-10-08",
            "country": "IN",
            "countryName": "India",
            "countryJa": "インド",
            "product": "CUMIN SEEDS",
            "productEn": "CUMIN SEEDS",
            "productEnSource": "mhlw",
            "productJa": "野草加工品及び香辛料:クミン(CUMIN SEEDS)",
            "exporterName": "GANDHI SPICES PVT.LTD.",
            "manufacturer": "GANDHI SPICES PVT.LTD.",
            "shipper": None,
            "hazard": "irradiated",
            "hazardDetail": "irradiated (banned in Japan)",
            "violationJa": "製造、加工及び調理基準不適合(放射線照射)",
            "legalArticle": "第13条第2項",
            "action": "destroy_or_return",
            "actionJa": "廃棄、積み戻し等を指示(全量保管)",
            "inspection": "monitoring",
            "inspectionJa": "モニタリング検査",
            "port": "Nagoya",
            "portJa": "名古屋",
            "importer": "株式会社 ビスワス",
            "cause": None,
            "reference": "MHLW 令和8年4月~令和8年11月 row 301",
            "source": "mhlw",
            "sourceUrl": "https://www.mhlw.go.jp/content/001768784.xlsx",
            "feedUrl": "https://www.mhlw.go.jp/stf/seisakunitsuite/bunya/kenkou_iryou/shokuhin/yunyu_kanshi/ihan/index.html",
            "rowId": "46b569515fbac082-sample",
        },
        {
            "authority": "mhlw",
            "importingCountry": "JP",
            "publishedOn": "2026-10-08",
            "country": "IN",
            "countryName": "India",
            "countryJa": "インド",
            "product": "ANDHRA GONGURA PICKLE",
            "productEn": "ANDHRA GONGURA PICKLE",
            "productEnSource": "mhlw",
            "productJa": "その他の野菜の調整品(ANDHRA GONGURA PICKLE)",
            "exporterName": "DESAI FOODS PRIVATE LTD.",
            "manufacturer": "DESAI FOODS PRIVATE LTD.",
            "shipper": None,
            "hazard": "unauthorised_additive",
            "hazardDetail": "TBHQ 0.004 g/kg",
            "violationJa": "指定外添加物(TBHQ 0.004 g/kg 検出)",
            "legalArticle": "第12条",
            "action": "destroy_or_return",
            "actionJa": "廃棄、積み戻し等を指示(全量保管)",
            "inspection": "monitoring",
            "inspectionJa": "モニタリング検査",
            "port": "Kobe",
            "portJa": "神戸",
            "importer": "株式会社 SARTAJ",
            "cause": None,
            "reference": "MHLW 令和8年4月~令和8年11月 row 313",
            "source": "mhlw",
            "sourceUrl": "https://www.mhlw.go.jp/content/001768784.xlsx",
            "feedUrl": "https://www.mhlw.go.jp/stf/seisakunitsuite/bunya/kenkou_iryou/shokuhin/yunyu_kanshi/ihan/index.html",
            "rowId": "d76bd66ac45d6593-sample",
        },
        {
            "authority": "mhlw",
            "importingCountry": "JP",
            "publishedOn": "2026-09-11",
            "country": "IN",
            "countryName": "India",
            "countryJa": "インド",
            "product": "okra",
            "productEn": "okra",
            "productEnSource": "dictionary",
            "productJa": "無加熱摂取冷凍食品:おくら(インド産KLA社冷凍オクラ)",
            "exporterName": "KLA FOOD INDIA LTD.",
            "manufacturer": "KLA FOOD INDIA LTD.",
            "shipper": None,
            "hazard": "bacteria",
            "hazardDetail": "bacteria count 1.9×10^5/g",
            "violationJa": "成分規格不適合(細菌数 1.9×105 /g)",
            "legalArticle": "第13条第2項",
            "action": "destroy_or_return",
            "actionJa": "廃棄、積み戻し等を指示(全量保管)",
            "inspection": "own_check",
            "inspectionJa": "自主検査",
            "port": "Kawasaki",
            "portJa": "川崎",
            "importer": "兼松 株式会社",
            "cause": None,
            "reference": "MHLW 令和8年4月~令和8年11月 row 282",
            "source": "mhlw",
            "sourceUrl": "https://www.mhlw.go.jp/content/001768784.xlsx",
            "feedUrl": "https://www.mhlw.go.jp/stf/seisakunitsuite/bunya/kenkou_iryou/shokuhin/yunyu_kanshi/ihan/index.html",
            "rowId": "7401508af9ccc1c2-sample",
        },
        {
            "authority": "mhlw",
            "importingCountry": "JP",
            "publishedOn": "2026-09-03",
            "country": "IN",
            "countryName": "India",
            "countryJa": "インド",
            "product": "CHICK PEAS FLOUR",
            "productEn": "CHICK PEAS FLOUR",
            "productEnSource": "mhlw",
            "productJa": "豆類の粉(BESAN(CHICK PEAS FLOUR))",
            "exporterName": "ZEEL PACKAGING",
            "manufacturer": "ZEEL PACKAGING",
            "shipper": None,
            "hazard": "pesticide_residue",
            "hazardDetail": "chlorpyrifos 0.02 ppm",
            "violationJa": "13条3項に基づき人の健康を損なうおそれのない量として定める量を超えて残留(クロルピリホス 0.02 ppm検出)",
            "legalArticle": "第13条第3項",
            "action": "destroy_or_return",
            "actionJa": "廃棄、積み戻し等を指示(全量保管)",
            "inspection": "inspection_order",
            "inspectionJa": "検査命令",
            "port": "Kobe",
            "portJa": "神戸",
            "importer": "株式会社 ビスワス",
            "cause": None,
            "reference": "MHLW 令和8年4月~令和8年11月 row 275",
            "source": "mhlw",
            "sourceUrl": "https://www.mhlw.go.jp/content/001768784.xlsx",
            "feedUrl": "https://www.mhlw.go.jp/stf/seisakunitsuite/bunya/kenkou_iryou/shokuhin/yunyu_kanshi/ihan/index.html",
            "rowId": "e9b83926b9f54e06-sample",
        },
        {
            "authority": "mhlw",
            "importingCountry": "JP",
            "publishedOn": "2026-06-16",
            "country": "IN",
            "countryName": "India",
            "countryJa": None,
            "product": "FROZEN RAW PIN DEVEINED VANNAMEI SHRIMP IQF",
            "productEn": "FROZEN RAW PIN DEVEINED VANNAMEI SHRIMP IQF",
            "productEnSource": "mhlw",
            "productJa": "加熱後摂取冷凍食品(凍結直前未加熱):えび類(バナメイエビ)(FROZEN RAW PIN DEVEINED VANNAMEI SHRIMP IQF)",
            "exporterName": "VEERABHADRA EXPORTS PRIVATE LIMITED",
            "manufacturer": "VEERABHADRA EXPORTS PRIVATE LIMITED",
            "shipper": None,
            "hazard": "veterinary_drug",
            "hazardDetail": "furazolidone 0.001 ppm",
            "violationJa": "成分規格不適合(フラゾリドン 0.001 ppm 検出)",
            "legalArticle": "第13条第2項",
            "action": "destroy_or_return",
            "actionJa": "廃棄、積み戻し等を指示(全量保管)",
            "inspection": "inspection_order",
            "inspectionJa": None,
            "port": "Tokyo",
            "portJa": None,
            "importer": "阪和興業 株式会社",
            "cause": "一部養殖場の周辺河川からの汚染",
            "reference": "MHLW 令和8年4月~令和8年11月 row 110",
            "source": "mhlw",
            "sourceUrl": "https://www.mhlw.go.jp/content/001768784.xlsx",
            "feedUrl": "https://www.mhlw.go.jp/stf/seisakunitsuite/bunya/kenkou_iryou/shokuhin/yunyu_kanshi/ihan/index.html",
            "rowId": "163a1b231098e3f9-sample",
        },
        {
            "authority": "mhlw",
            "importingCountry": "JP",
            "publishedOn": "2026-05-14",
            "country": "VN",
            "countryName": "Vietnam",
            "countryJa": None,
            "product": "DRIED SEASONED SHRIMP",
            "productEn": "DRIED SEASONED SHRIMP",
            "productEnSource": "mhlw",
            "productJa": "調味乾製品:えび類(DRIED SEASONED SHRIMP)",
            "exporterName": "BARIA VUNGTAU SEAFOOD PROCESSING & IMP. EXP. JOINT STOCK CO.(BASEAFOOD)",
            "manufacturer": "BARIA VUNGTAU SEAFOOD PROCESSING & IMP. EXP. JOINT STOCK CO.(BASEAFOOD)",
            "shipper": None,
            "hazard": "veterinary_drug",
            "hazardDetail": "enrofloxacin 0.38 ppm",
            "violationJa": "成分規格不適合(エンロフロキサシン 0.38 ppm 検出)",
            "legalArticle": "第13条第2項",
            "action": "returned",
            "actionJa": "積み戻し",
            "inspection": "inspection_order",
            "inspectionJa": None,
            "port": "Kobe",
            "portJa": None,
            "importer": "株式会社 ニューポイント",
            "cause": "動物用医薬品管理不足",
            "reference": "MHLW 令和8年4月~令和8年11月 row 69",
            "source": "mhlw",
            "sourceUrl": "https://www.mhlw.go.jp/content/001768784.xlsx",
            "feedUrl": "https://www.mhlw.go.jp/stf/seisakunitsuite/bunya/kenkou_iryou/shokuhin/yunyu_kanshi/ihan/index.html",
            "rowId": "dca34fb9927f2a0d-sample",
        },
    ],
    "maxDiscoveryChargeUsd": 0.5,
    "discoveryInput": {},
}

# Run the Actor and wait for it to finish
run = client.actor("rich_minds/import-refusals-ai").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 '{
  "sourceMode": "list",
  "itemsList": [
    {
      "authority": "mhlw",
      "importingCountry": "JP",
      "publishedOn": "2025-04-24",
      "country": "CN",
      "countryName": "China",
      "countryJa": "中華人民共和国",
      "product": "peanuts",
      "productEn": "peanuts",
      "productEnSource": "dictionary",
      "productJa": "小粒落花生",
      "exporterName": "XINGCHENG JINDOU PEANUT CO.,LTD.",
      "manufacturer": null,
      "shipper": "XINGCHENG JINDOU PEANUT CO.,LTD.",
      "hazard": "aflatoxin",
      "hazardDetail": "aflatoxin 23 μg/kg",
      "violationJa": "アフラトキシン 23μg/kg(B1:20.4 μg/kg、B2:2.2 μg/kg)検出",
      "legalArticle": "第6条第2号",
      "action": "returned",
      "actionJa": "積み戻し",
      "inspection": "inspection_order",
      "inspectionJa": "検査命令",
      "port": "Tokyo",
      "portJa": "東京",
      "importer": null,
      "cause": "天候不良による乾燥不十分",
      "reference": "MHLW 令和7年4月 row 38",
      "source": "mhlw",
      "sourceUrl": "https://www.mhlw.go.jp/content/001722154.xls",
      "feedUrl": "https://www.mhlw.go.jp/stf/seisakunitsuite/bunya/kenkou_iryou/shokuhin/yunyu_kanshi/ihan/index.html",
      "fetchedAt": "2026-11-22T00:00:00+00:00",
      "rowId": "2aa6f4965c7c0c15-sample"
    },
    {
      "authority": "mhlw",
      "importingCountry": "JP",
      "publishedOn": "2026-10-08",
      "country": "IN",
      "countryName": "India",
      "countryJa": "インド",
      "product": "CUMIN SEEDS",
      "productEn": "CUMIN SEEDS",
      "productEnSource": "mhlw",
      "productJa": "野草加工品及び香辛料:クミン(CUMIN SEEDS)",
      "exporterName": "GANDHI SPICES PVT.LTD.",
      "manufacturer": "GANDHI SPICES PVT.LTD.",
      "shipper": null,
      "hazard": "irradiated",
      "hazardDetail": "irradiated (banned in Japan)",
      "violationJa": "製造、加工及び調理基準不適合(放射線照射)",
      "legalArticle": "第13条第2項",
      "action": "destroy_or_return",
      "actionJa": "廃棄、積み戻し等を指示(全量保管)",
      "inspection": "monitoring",
      "inspectionJa": "モニタリング検査",
      "port": "Nagoya",
      "portJa": "名古屋",
      "importer": "株式会社 ビスワス",
      "cause": null,
      "reference": "MHLW 令和8年4月~令和8年11月 row 301",
      "source": "mhlw",
      "sourceUrl": "https://www.mhlw.go.jp/content/001768784.xlsx",
      "feedUrl": "https://www.mhlw.go.jp/stf/seisakunitsuite/bunya/kenkou_iryou/shokuhin/yunyu_kanshi/ihan/index.html",
      "rowId": "46b569515fbac082-sample"
    },
    {
      "authority": "mhlw",
      "importingCountry": "JP",
      "publishedOn": "2026-10-08",
      "country": "IN",
      "countryName": "India",
      "countryJa": "インド",
      "product": "ANDHRA GONGURA PICKLE",
      "productEn": "ANDHRA GONGURA PICKLE",
      "productEnSource": "mhlw",
      "productJa": "その他の野菜の調整品(ANDHRA GONGURA PICKLE)",
      "exporterName": "DESAI FOODS PRIVATE LTD.",
      "manufacturer": "DESAI FOODS PRIVATE LTD.",
      "shipper": null,
      "hazard": "unauthorised_additive",
      "hazardDetail": "TBHQ 0.004 g/kg",
      "violationJa": "指定外添加物(TBHQ 0.004 g/kg 検出)",
      "legalArticle": "第12条",
      "action": "destroy_or_return",
      "actionJa": "廃棄、積み戻し等を指示(全量保管)",
      "inspection": "monitoring",
      "inspectionJa": "モニタリング検査",
      "port": "Kobe",
      "portJa": "神戸",
      "importer": "株式会社 SARTAJ",
      "cause": null,
      "reference": "MHLW 令和8年4月~令和8年11月 row 313",
      "source": "mhlw",
      "sourceUrl": "https://www.mhlw.go.jp/content/001768784.xlsx",
      "feedUrl": "https://www.mhlw.go.jp/stf/seisakunitsuite/bunya/kenkou_iryou/shokuhin/yunyu_kanshi/ihan/index.html",
      "rowId": "d76bd66ac45d6593-sample"
    },
    {
      "authority": "mhlw",
      "importingCountry": "JP",
      "publishedOn": "2026-09-11",
      "country": "IN",
      "countryName": "India",
      "countryJa": "インド",
      "product": "okra",
      "productEn": "okra",
      "productEnSource": "dictionary",
      "productJa": "無加熱摂取冷凍食品:おくら(インド産KLA社冷凍オクラ)",
      "exporterName": "KLA FOOD INDIA LTD.",
      "manufacturer": "KLA FOOD INDIA LTD.",
      "shipper": null,
      "hazard": "bacteria",
      "hazardDetail": "bacteria count 1.9×10^5/g",
      "violationJa": "成分規格不適合(細菌数 1.9×105 /g)",
      "legalArticle": "第13条第2項",
      "action": "destroy_or_return",
      "actionJa": "廃棄、積み戻し等を指示(全量保管)",
      "inspection": "own_check",
      "inspectionJa": "自主検査",
      "port": "Kawasaki",
      "portJa": "川崎",
      "importer": "兼松 株式会社",
      "cause": null,
      "reference": "MHLW 令和8年4月~令和8年11月 row 282",
      "source": "mhlw",
      "sourceUrl": "https://www.mhlw.go.jp/content/001768784.xlsx",
      "feedUrl": "https://www.mhlw.go.jp/stf/seisakunitsuite/bunya/kenkou_iryou/shokuhin/yunyu_kanshi/ihan/index.html",
      "rowId": "7401508af9ccc1c2-sample"
    },
    {
      "authority": "mhlw",
      "importingCountry": "JP",
      "publishedOn": "2026-09-03",
      "country": "IN",
      "countryName": "India",
      "countryJa": "インド",
      "product": "CHICK PEAS FLOUR",
      "productEn": "CHICK PEAS FLOUR",
      "productEnSource": "mhlw",
      "productJa": "豆類の粉(BESAN(CHICK PEAS FLOUR))",
      "exporterName": "ZEEL PACKAGING",
      "manufacturer": "ZEEL PACKAGING",
      "shipper": null,
      "hazard": "pesticide_residue",
      "hazardDetail": "chlorpyrifos 0.02 ppm",
      "violationJa": "13条3項に基づき人の健康を損なうおそれのない量として定める量を超えて残留(クロルピリホス 0.02 ppm検出)",
      "legalArticle": "第13条第3項",
      "action": "destroy_or_return",
      "actionJa": "廃棄、積み戻し等を指示(全量保管)",
      "inspection": "inspection_order",
      "inspectionJa": "検査命令",
      "port": "Kobe",
      "portJa": "神戸",
      "importer": "株式会社 ビスワス",
      "cause": null,
      "reference": "MHLW 令和8年4月~令和8年11月 row 275",
      "source": "mhlw",
      "sourceUrl": "https://www.mhlw.go.jp/content/001768784.xlsx",
      "feedUrl": "https://www.mhlw.go.jp/stf/seisakunitsuite/bunya/kenkou_iryou/shokuhin/yunyu_kanshi/ihan/index.html",
      "rowId": "e9b83926b9f54e06-sample"
    },
    {
      "authority": "mhlw",
      "importingCountry": "JP",
      "publishedOn": "2026-06-16",
      "country": "IN",
      "countryName": "India",
      "countryJa": null,
      "product": "FROZEN RAW PIN DEVEINED VANNAMEI SHRIMP IQF",
      "productEn": "FROZEN RAW PIN DEVEINED VANNAMEI SHRIMP IQF",
      "productEnSource": "mhlw",
      "productJa": "加熱後摂取冷凍食品(凍結直前未加熱):えび類(バナメイエビ)(FROZEN RAW PIN DEVEINED VANNAMEI SHRIMP IQF)",
      "exporterName": "VEERABHADRA EXPORTS PRIVATE LIMITED",
      "manufacturer": "VEERABHADRA EXPORTS PRIVATE LIMITED",
      "shipper": null,
      "hazard": "veterinary_drug",
      "hazardDetail": "furazolidone 0.001 ppm",
      "violationJa": "成分規格不適合(フラゾリドン 0.001 ppm 検出)",
      "legalArticle": "第13条第2項",
      "action": "destroy_or_return",
      "actionJa": "廃棄、積み戻し等を指示(全量保管)",
      "inspection": "inspection_order",
      "inspectionJa": null,
      "port": "Tokyo",
      "portJa": null,
      "importer": "阪和興業 株式会社",
      "cause": "一部養殖場の周辺河川からの汚染",
      "reference": "MHLW 令和8年4月~令和8年11月 row 110",
      "source": "mhlw",
      "sourceUrl": "https://www.mhlw.go.jp/content/001768784.xlsx",
      "feedUrl": "https://www.mhlw.go.jp/stf/seisakunitsuite/bunya/kenkou_iryou/shokuhin/yunyu_kanshi/ihan/index.html",
      "rowId": "163a1b231098e3f9-sample"
    },
    {
      "authority": "mhlw",
      "importingCountry": "JP",
      "publishedOn": "2026-05-14",
      "country": "VN",
      "countryName": "Vietnam",
      "countryJa": null,
      "product": "DRIED SEASONED SHRIMP",
      "productEn": "DRIED SEASONED SHRIMP",
      "productEnSource": "mhlw",
      "productJa": "調味乾製品:えび類(DRIED SEASONED SHRIMP)",
      "exporterName": "BARIA VUNGTAU SEAFOOD PROCESSING & IMP. EXP. JOINT STOCK CO.(BASEAFOOD)",
      "manufacturer": "BARIA VUNGTAU SEAFOOD PROCESSING & IMP. EXP. JOINT STOCK CO.(BASEAFOOD)",
      "shipper": null,
      "hazard": "veterinary_drug",
      "hazardDetail": "enrofloxacin 0.38 ppm",
      "violationJa": "成分規格不適合(エンロフロキサシン 0.38 ppm 検出)",
      "legalArticle": "第13条第2項",
      "action": "returned",
      "actionJa": "積み戻し",
      "inspection": "inspection_order",
      "inspectionJa": null,
      "port": "Kobe",
      "portJa": null,
      "importer": "株式会社 ニューポイント",
      "cause": "動物用医薬品管理不足",
      "reference": "MHLW 令和8年4月~令和8年11月 row 69",
      "source": "mhlw",
      "sourceUrl": "https://www.mhlw.go.jp/content/001768784.xlsx",
      "feedUrl": "https://www.mhlw.go.jp/stf/seisakunitsuite/bunya/kenkou_iryou/shokuhin/yunyu_kanshi/ihan/index.html",
      "rowId": "dca34fb9927f2a0d-sample"
    }
  ],
  "maxDiscoveryChargeUsd": 0.5,
  "discoveryInput": {}
}' |
apify call rich_minds/import-refusals-ai --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,rich_minds/import-refusals-ai"
        }
    }
}
```

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/PhfCVvzYiQWDqOrmS/builds/E0B5ZuqylPqQG3ND8/openapi.json
