# 楽天レシピ Rakuten Recipe Scraper (`stone_jadex/rakuten-recipe-scraper`) Actor

Public 楽天レシピ (recipe.rakuten.co.jp) recipes by category: title, author nickname, ingredients with amounts, steps with photos, servings, time, cost estimate, made-report counts, category path, published date. $2.50 per 1,000 recipes, no start fee. Respects robots.txt.

- **URL**: https://apify.com/stone_jadex/rakuten-recipe-scraper.md
- **Developed by:** [Stone Jade](https://apify.com/stone_jadex) (community)
- **Categories:** E-commerce, AI
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.13 / 1,000 recipes

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## Rakuten Recipe Scraper

Rakuten Recipe Scraper extracts structured recipe data from public [Rakuten Recipe](https://recipe.rakuten.co.jp/) category and recipe pages (`recipe.rakuten.co.jp`). Provide category IDs, category URLs, or direct recipe URLs to collect recipe titles, author nicknames, full ingredient lists with amounts, numbered cooking steps with step photos, servings, preparation time, cost estimates, made-report counts, category breadcrumbs, keywords, and publication dates.

Built for high reliability on `256 MB` memory, the Actor uses server-rendered HTML and embedded JSON-LD metadata with polite request spacing (`requestDelayMs >= 1500 ms`), automatic `robots.txt` parsing, final-URL redirect checks, and safe deduplication across overlapping categories.

### Overview and use cases

#### What you can extract

- **Complete recipe content**: Recipe title, author introduction, full `ingredients` array (`name`, `amount`, `categoryUrl`), and numbered `steps` array (`step`, `text`, `imageUrl`).
- **Normalized preparation metrics**: Both raw Japanese display strings (`servingsText`, `totalTimeText`, `costText`) and parsed numeric values (`servings`, `totalTimeMinutes`, `costYen`) for filtering and aggregation.
- **Engagement and taxonomy**: Public made-report count (`madeReportCount`), `reviewCount`, most specific `category`, full `categoryPath` breadcrumb trail, `keywords`, `publishedDate`, and discovery rank (`sourceCategoryUrl`, `rankInCategoryPage`, `categoryPageNumber`).
- **Run diagnostics**: Machine-readable `OUTPUT` summary in the default key-value store tracking seed statuses, HTTP statistics, `robotsDisallowedHits`, `skippedUrls`, and `unavailableFields`.

#### Who uses it

- **Food researchers and nutrition analysts**: Compare ingredient combinations, portion sizes, and reported cooking times across regional or protein categories.
- **Meal-planning and culinary platforms**: Collect targeted recipe URLs into structured datasets for ingredient indexing, cost-tier grouping, and recipe classification.
- **Japanese NLP and recommendation builders**: Build clean corpora of Japanese cooking instructions, triggers, tips, and ingredient pairings with full-width spacing preserved accurately.

#### Illustrative preview

**Illustrative only:** invented summary rows below show the shape of exported records; they are not live results. A dash indicates an unprinted field.

| Recipe | Servings | Time | Estimated cost | Ingredients |
| --- | --- | --- | --- | --- |
| Example radish greens stir-fry | 2 | 15 min | — | Daikon greens; fried tofu; sesame oil |
| Example simmered pork belly | 3 | 60 min | 500 JPY | Pork loin; daikon; egg; ginger |
| Example cucumber salad | 2 | 10 min | 300 JPY | Cucumber; sesame; soy sauce |

#### Why choose this Actor

- **Transparent per-recipe billing**: Pay only for successfully delivered recipe records (`$0.0025` per recipe on Free, down to `$0.002125` on Gold/Platinum/Diamond), with zero Actor start fee and zero charge for `404`/`410` pages or `run-notice` status rows.
- **Lightweight direct HTTP architecture**: Parses SSR HTML and JSON-LD at `256 MB` memory with no browser overhead, and works out of the box without requiring proxies in standard runs.
- **Strict safety boundaries**: Never requests `/search/`, `/mypage/`, `/login/`, `/recipe/print/`, `/option/`, or `?vt=` URLs, validates every redirect hop and final response URL, and preserves partial results on platform timeout (`maxRunSeconds <= 3480`).

### Input parameters and examples

Configure the Actor in the Apify Console or pass a JSON payload matching `.actor/input_schema.json`.

| Parameter | Type | Default / Prefill | Description |
| --- | --- | --- | --- |
| `categoryIds` | `array` (string list) | `["30"]` | Category IDs appended to `/category/{id}/` (for example `"30"` for Popular Menu, `"10-276"` for Pork, `"31"` for Classic Meat Dishes). Leave empty (`[]`) if you only use `startUrls`. If both `categoryIds` and `startUrls` are omitted, the Actor defaults to `["30"]`. |
| `startUrls` | `array` (request list) | `[]` | Optional list of `https://recipe.rakuten.co.jp/category/{id}/` or `https://recipe.rakuten.co.jp/recipe/{id}/` URLs. Query parameters and disallowed paths (`/search/`, `/mypage/`, `/login/`, `/recipe/print/`, `/option/`) are skipped and recorded in `OUTPUT.skippedUrls`. |
| `maxItems` | `integer` | `50` (min `1`, max `100000`) | Maximum number of recipe rows to deliver before stopping cleanly. |
| `maxPagesPerCategory` | `integer` | `3` (min `1`, max `500`) | Maximum category listing pages to read per category seed (up to 50 cards per page). |
| `requestDelayMs` | `integer` | `2000` (min `1500`, max `60000`) | Polite minimum delay in milliseconds between HTTP requests. Automatically increases if `robots.txt` specifies a higher `Crawl-delay`. |
| `maxRunSeconds` | `integer` | `3000` (min `30`, max `3480`) | Soft runtime limit in seconds (capped below the 3,600 s platform timeout so `OUTPUT` and any `run-notice` row always flush cleanly). |
| `proxyConfiguration` | `object` | `{ "useApifyProxy": false }` | Standard Apify proxy settings. Direct requests work in baseline testing; enable Apify Proxy only if needed for your traffic volume. |

#### Input examples

**Example 1: Discover recipes from multiple category IDs**

```json
{
  "categoryIds": ["30", "10-276"],
  "maxItems": 100,
  "maxPagesPerCategory": 2,
  "requestDelayMs": 2000,
  "maxRunSeconds": 3000,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

**Example 2: Target specific category and recipe URLs**

```json
{
  "categoryIds": [],
  "startUrls": [
    { "url": "https://recipe.rakuten.co.jp/category/31/" },
    { "url": "https://recipe.rakuten.co.jp/recipe/1010027574/" },
    { "url": "https://recipe.rakuten.co.jp/recipe/1030011756/" }
  ],
  "maxItems": 25,
  "maxPagesPerCategory": 1,
  "requestDelayMs": 2000
}
```

### Output format and dataset fields

Each run stores recipe items in the default Apify dataset and writes a detailed diagnostic summary to the `OUTPUT` record in the default key-value store.

#### Illustrative recipe record

The JSON snippet below shows an illustrative recipe output record matching `.actor/dataset_schema.json` with original Japanese characters preserved.

```json
{
  "recordType": "recipe",
  "recipeId": "1010027574",
  "url": "https://recipe.rakuten.co.jp/recipe/1010027574/",
  "title": "大根の間引き菜と油揚げの炒めもの",
  "description": "やわらかい間引き菜は、サッと炒めてほろ苦さを楽しみます",
  "authorName": "きばな",
  "authorProfileUrl": "https://recipe.rakuten.co.jp/mypage/1010010411/",
  "imageUrl": "https://recipe.r10s.jp/recipe-space/d/strg/ctrl/3/d50329fca37a9859320b93e042d6c03087a60c08.07.2.3.2.jpg",
  "servingsText": "２人分",
  "servings": 2,
  "totalTimeText": "約15分",
  "totalTimeMinutes": 15,
  "costText": "300円前後",
  "costYen": 300,
  "ingredients": [
    {
      "name": "大根の間引き菜",
      "amount": "1束",
      "categoryUrl": null
    },
    {
      "name": "油揚げ",
      "amount": "1～2枚",
      "categoryUrl": "https://recipe.rakuten.co.jp/category/35-473/"
    },
    {
      "name": "醤油",
      "amount": "小さじ1",
      "categoryUrl": null
    }
  ],
  "ingredientCount": 3,
  "steps": [
    {
      "step": 1,
      "text": "間引き菜は食べやすい長さにざく切りし、油揚げは薄切りにする。",
      "imageUrl": null
    },
    {
      "step": 2,
      "text": "フライパンで油揚げを乾煎りし、ごま油を加えて間引き菜を強火で炒め、醤油で仕上げる。",
      "imageUrl": null
    }
  ],
  "stepCount": 2,
  "trigger": "間引き菜が手に入ったときに",
  "tips": "お好みで、柑橘類を絞りかけても美味しい",
  "madeReportCount": 5,
  "reviewCount": 3,
  "category": "その他の野菜炒め",
  "categoryPath": [
    {
      "name": "人気メニュー",
      "url": "https://recipe.rakuten.co.jp/category/30/"
    },
    {
      "name": "炒め物",
      "url": "https://recipe.rakuten.co.jp/category/30-312/"
    },
    {
      "name": "その他の野菜炒め",
      "url": "https://recipe.rakuten.co.jp/category/30-312-1215/"
    }
  ],
  "keywords": [
    "大根の間引き菜と油揚げの炒めもの",
    "大根の間引き菜",
    "油揚げ",
    "醤油"
  ],
  "publishedDate": "2019-10-07",
  "reportsUrl": "https://recipe.rakuten.co.jp/recipe/1010027574/report/",
  "sourceCategoryUrl": "https://recipe.rakuten.co.jp/category/30/",
  "rankInCategoryPage": 1,
  "scrapedAt": "2026-11-21T09:00:00.000Z",
  "categoryPageNumber": 1
}
```

#### Free run-notice row

When a run delivers zero recipes or stops early (for example `no-results`, `errors`, `blocked`, `run-time-limit`, `max-charge-reached`, or `push-failed`), the Actor writes one uncharged `run-notice` status record to the dataset and sets `OUTPUT.noticePushed = true`.

```json
{
  "recordType": "run-notice",
  "charged": false,
  "reason": "no-results",
  "recipesDelivered": 0,
  "chargedButNotPushed": 0,
  "errors": 0,
  "notFound": 0
}
```

Additional `run-notice` fields: `charged` (`boolean`), `reason` (`string`), `recipesDelivered` (`integer`), `chargedButNotPushed` (`integer`), `errors` (`integer` count), and `notFound` (`integer`). These status rows are never billed.

#### Dataset field reference

The table below covers all 31 recipe fields defined in `.actor/dataset_schema.json`. Fields omitted by the source page are output as `null`.

| Field | Type | Description |
| --- | --- | --- |
| `recordType` | `string` | Record discriminator: `"recipe"` for paid recipe records, `"run-notice"` for uncharged status rows. |
| `recipeId` | `string \| null` | Numeric recipe identifier from the canonical recipe URL. |
| `url` | `string \| null` | Canonical public recipe page URL (`https://recipe.rakuten.co.jp/recipe/{id}/`). |
| `title` | `string \| null` | Published recipe title. |
| `description` | `string \| null` | Author one-line introduction shown beneath the main recipe photo. |
| `authorName` | `string \| null` | Author public nickname as displayed on the recipe page. |
| `authorProfileUrl` | `string \| null` | Public link to the author profile printed on the recipe page (not fetched). |
| `imageUrl` | `string \| null` | Main full-size recipe image URL without resizing query parameters. |
| `servingsText` | `string \| null` | Servings text exactly as printed on the page (for example 2 servings or 4-6 servings). |
| `servings` | `integer \| null` | Numeric servings count parsed from the first integer in `servingsText`. |
| `totalTimeText` | `string \| null` | Cooking duration text as printed on the page (for example about 15 minutes). |
| `totalTimeMinutes` | `integer \| null` | Total cooking duration converted to integer minutes from the printed time or JSON-LD. |
| `costText` | `string \| null` | Estimated cost text as printed on the page, or `null` when omitted by the author. |
| `costYen` | `integer \| null` | Estimated cost in Japanese yen parsed from `costText`, or `null` when unavailable. |
| `ingredients` | `array \| null` | Array of ingredient objects (`{ name, amount, categoryUrl }`) keeping original interior full-width spacing. |
| `ingredientCount` | `integer \| null` | Total number of parsed ingredient lines in `ingredients`. |
| `steps` | `array \| null` | Array of numbered cooking steps (`{ step, text, imageUrl }`) preserving line breaks and inner spacing. |
| `stepCount` | `integer \| null` | Total number of parsed cooking steps in `steps`. |
| `trigger` | `string \| null` | Author note explaining why they created the recipe, when printed. |
| `tips` | `string \| null` | Author cooking tips and preparation advice, when printed. |
| `madeReportCount` | `integer \| null` | Public count of user-submitted made reports for this recipe. |
| `reviewCount` | `integer \| null` | Public schema.org `ReviewAction` count published on the page. |
| `category` | `string \| null` | Most specific category name for the recipe. |
| `categoryPath` | `array \| null` | Breadcrumb list of `{ name, url }` category objects from broadest to most specific. |
| `keywords` | `array \| null` | Array of trimmed recipe keywords published by the page (typically title plus ingredients). |
| `publishedDate` | `string \| null` | Publication date formatted as `YYYY-MM-DD`. |
| `reportsUrl` | `string \| null` | URL of the public made-reports listing page for the recipe. |
| `sourceCategoryUrl` | `string \| null` | Source category page URL where the recipe was discovered, or `null` for direct recipe URL seeds. |
| `rankInCategoryPage` | `integer \| null` | 1-based position on the source category page (`1` is top), or `null` for direct recipe URLs. |
| `scrapedAt` | `string \| null` | ISO 8601 UTC timestamp indicating when the record was scraped. |
| `categoryPageNumber` | `integer \| null` | Category page number (`1`, `2`, ...) where the recipe appeared; omitted on direct recipe seeds. |

### Pricing and Store tier discounts

Rakuten Recipe Scraper uses Apify **Pay-Per-Event (PPE)** billing with a single billed event (`recipe`). Verified live on 2026-11-21:

- **Recipe event (`recipe`)**: **$0.0025** per delivered recipe (**$2.50 per 1,000** recipes on the Free plan).
- **No Actor start fee**: You pay `$0.00` to start a run.
- **Uncharged outcomes**: `run-notice` rows, HTTP `404`/`410` recipes, duplicate recipe IDs skipped across categories, and refused URLs are never billed. Each recipe is charged right before `pushData`, and failed pushes retry up to 3 times without re-charging (`OUTPUT.chargedButNotPushed` tracks unrecoverable push errors).

#### Apify Store subscription tier discounts

Subscribers on paid Apify Store plans automatically receive a 5% to 15% discount on the `recipe` event:

| Apify plan tier | Price per recipe | Price per 1,000 recipes | Tier discount |
| --- | ---: | ---: | --- |
| **Free** | `$0.0025` | `$2.50` | Base rate |
| **Bronze** | `$0.002375` | `$2.375` | 5% off |
| **Silver** | `$0.00225` | `$2.25` | 10% off |
| **Gold** | `$0.002125` | `$2.125` | 15% off |
| **Platinum** | `$0.002125` | `$2.125` | 15% off |
| **Diamond** | `$0.002125` | `$2.125` | 15% off |

Platform compute runs on the default `256 MB` memory allocation (`timeoutSecs: 3600`), and stored dataset/key-value data follows standard Apify platform storage rates.

### Quick start with Console and Apify SDK

#### Run in Apify Console

1. Open **Rakuten Recipe Scraper** (`Stone_JadeX/rakuten-recipe-scraper`) in Apify Console and enter one or more `categoryIds` (such as `"30"` or `"10-276"`) or `startUrls`.
2. Set `maxItems` (for example `50`) and `maxPagesPerCategory` (for example `3`) to bound your run.
3. Click **Start**, then preview results in the **Overview** dataset table or export as JSON, CSV, Excel, or XML.

#### JavaScript quickstart (apify-client)

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

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });

const run = await client.actor('Stone_JadeX/rakuten-recipe-scraper').call({
  categoryIds: ['30'],
  maxItems: 25,
  maxPagesPerCategory: 2,
  requestDelayMs: 2000,
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
const recipes = items.filter((row) => row.recordType === 'recipe');
console.log(`Fetched ${recipes.length} recipes`);

const summary = await client.keyValueStore(run.defaultKeyValueStoreId).getRecord('OUTPUT');
console.log('Stop reason:', summary?.value?.stopReason);
```

#### Python quickstart (apify-client)

```python
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])

run = client.actor("Stone_JadeX/rakuten-recipe-scraper").call(run_input={
    "categoryIds": ["30"],
    "maxItems": 25,
    "maxPagesPerCategory": 2,
    "requestDelayMs": 2000,
})

items = list(client.dataset(run["defaultDatasetId"]).iterate_items())
recipes = [row for row in items if row.get("recordType") == "recipe"]
print(f"Fetched {len(recipes)} recipes")

output_record = client.key_value_store(run["defaultKeyValueStoreId"]).get_record("OUTPUT")
print("Stop reason:", (output_record or {}).get("value", {}).get("stopReason"))
```

### Is it legal to scrape Rakuten Recipe?

This Actor collects only publicly accessible recipe and category pages without authentication or login bypass. It is an independent tool and is not affiliated with, endorsed by, or sponsored by Rakuten Group, Inc. or Rakuten Recipe. All recipe copyright and attribution belong to the original authors and rightsholders; exported datasets are intended for personal research, indexing, and non-infringing statistical analysis in accordance with applicable laws and site terms.

For crawler transparency and compliance, robots.txt is read first (Disallow hits are logged and counted in `robotsDisallowedHits`); search, print, filter and member pages are never requested; and any `Crawl-delay` directive is respected automatically. A hard-coded deny list blocks refused URLs (search, print, filter, member), external hosts, and login/account paths before any HTTP request is made, and every HTTP redirect hop and final response URL is verified against that same deny list so redirected out-of-scope responses are discarded and never charged.

### Limitations, FAQ, and changelog

#### Pagination and unavailable fields

- **Pagination**: Category pages are fetched as `/category/{id}/{page}/`. Page 2 was checked live once (category `10-276`: HTTP 200, own canonical URL, 50 unique recipes), while page 3 and beyond have not been verified against the live site. As a built-in safety net, if any category page `> 1` yields zero new recipe IDs, pagination stops for that category and `OUTPUT.seeds[].paginationSuspect` is set to `true`.
- **Unavailable fields** (also reported in `OUTPUT.unavailableFields`):
  - `keywordSearch`: `/search/` is disallowed and refused; filter using category IDs or URLs instead.
  - `categoryFilters`: `/category/*/option/*/` sort and filter URLs are refused; categories run in default site order.
  - `favoriteCount`: User favorite counts are not rendered on public pages.
  - `nutrition`: Calorie and macronutrient figures are not published on recipe pages.
  - `reportTexts`: Individual third-party user report photos and comments are excluded; only the public `madeReportCount` and `reportsUrl` are returned.
  - `authorProfile`: Only the author nickname and link printed on the recipe page are returned; `/mypage/` profile pages are never fetched.
  - `printVersion`: `/recipe/print/` URLs are refused.

#### Frequently asked questions

**Why do `costText` and `costYen` sometimes return `null`?**
Cost estimates are optional on Rakuten Recipe; when the recipe author left the cost blank, both fields are `null`. Note also that published cost estimates are author-entered approximations, not live grocery prices.

**What happens if a category ID or recipe URL does not exist?**
HTTP `404` and `410` responses are counted in `OUTPUT.notFound`, never treated as fatal errors, and never charged.

**How are full-width Japanese spaces handled in ingredients and steps?**
Interior full-width ideographic spaces (`U+3000`) inside ingredient names and recipe steps are preserved as written on the site, while leading and trailing whitespace on keywords and titles is cleanly trimmed.

**How do I stop a run without losing already-collected recipes?**
Every recipe is pushed to the dataset immediately as it is scraped. Setting `maxItems` or `maxRunSeconds` (up to `3480` seconds) ensures a clean stop and writes `OUTPUT` plus a `run-notice` row if truncated.

#### Changelog

##### 2026-11-21

- Added clean `sectionCaption` groupings (`Target Categories & URLs`, `Limits & Pagination`, `Rate Limiting, Runtime & Proxy`) and explicit `prefill` defaults across primary inputs (`categoryIds`, `maxItems`, `maxPagesPerCategory`, `requestDelayMs`, `maxRunSeconds`) in `.actor/input_schema.json`.
- Upgraded Store documentation with complete input parameter tables, 2 JSON input examples, schema-aligned Japanese recipe output and `run-notice` JSON examples, full 31-field dataset reference, live PPE pricing + Bronze through Diamond Store tier discounts, JavaScript & Python `ApifyClient` SDK quickstarts, compliance notes, and `CHANGELOG.md` update.

##### 2026-11-01

- Preserved full-width space (`U+3000`) inside text fields while trimming leading/trailing whitespace on `keywords` items and verified full `ingredients` and `steps` output on live fixtures.

##### 2026-10-26

- Initial `0.1.0` release with category/recipe extraction, warn-only `robots.txt` counting (`robotsDisallowedHits`), redirect final-URL checks, no-new-ID pagination stop, runtime safety cap, and PPE `$0.0025` per recipe billing.

# Changelog

This Actor's version history is a separate document: https://apify.com/stone_jadex/rakuten-recipe-scraper/changelog.md

# Actor input Schema

## `categoryIds` (type: `array`):

楽天レシピ category IDs, the part after /category/ in the URL. Examples: 30 (人気メニュー), 10-276 (豚肉), 31 (定番の肉料理). Browse https://recipe.rakuten.co.jp/category/ to find more. Leave empty if you only use Start URLs.

## `startUrls` (type: `array`):

Optional. https://recipe.rakuten.co.jp/category/{id}/ or https://recipe.rakuten.co.jp/recipe/{id}/ URLs. Search URLs (/search/) are not supported because robots.txt disallows them.

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

Stop after this many recipes. You pay only for recipes delivered.

## `maxPagesPerCategory` (type: `integer`):

How many category pages to read per category (each page lists up to 50 recipes).

## `requestDelayMs` (type: `integer`):

Polite pause between requests. Minimum 1500 ms.

## `maxRunSeconds` (type: `integer`):

The Actor stops cleanly after this time (max 3480 s, below the 1-hour run timeout) and writes a free run-notice row.

## `proxyConfiguration` (type: `object`):

Not needed in our tests (direct requests worked). Optional.

## Actor input object example

```json
{
  "categoryIds": [
    "30"
  ],
  "maxItems": 50,
  "maxPagesPerCategory": 3,
  "requestDelayMs": 2000,
  "maxRunSeconds": 3000,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

Recipe rows saved in the default dataset, plus one free run-notice row when a run delivers nothing or stops early.

## `summary` (type: `string`):

Saved recipe and notice counts, seed statuses, HTTP and robots statistics, errors, and the reason the run stopped.

# 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 = {
    "categoryIds": [
        "30"
    ],
    "maxItems": 50,
    "maxPagesPerCategory": 3,
    "requestDelayMs": 2000,
    "maxRunSeconds": 3000
};

// Run the Actor and wait for it to finish
const run = await client.actor("stone_jadex/rakuten-recipe-scraper").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 = {
    "categoryIds": ["30"],
    "maxItems": 50,
    "maxPagesPerCategory": 3,
    "requestDelayMs": 2000,
    "maxRunSeconds": 3000,
}

# Run the Actor and wait for it to finish
run = client.actor("stone_jadex/rakuten-recipe-scraper").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 '{
  "categoryIds": [
    "30"
  ],
  "maxItems": 50,
  "maxPagesPerCategory": 3,
  "requestDelayMs": 2000,
  "maxRunSeconds": 3000
}' |
apify call stone_jadex/rakuten-recipe-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,stone_jadex/rakuten-recipe-scraper"
        }
    }
}
```

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/DZxy7NaogXgLcW4Up/builds/N3N1fLh1afAqfKLnR/openapi.json
