# Rakuten Ichiba Scraper: Japan Products, Reviews & Rankings (`memo23/rakuten-scraper`) Actor

Scrape Rakuten Ichiba (rakuten.co.jp) by keyword, genre, shop or link: price in JPY, price range, points, shipping, rating, reviews and shop. Add best-seller rankings, full item details with every variant's price, JAN code and stock, and buyer reviews.

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

## Pricing

from $1.00 / 1,000 products

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

## Rakuten Ichiba Scraper: Japan Products, Reviews & Rankings

<p align="center"><img src="https://api.apify.com/v2/key-value-stores/ohu1kMi0e1GbUayOG/records/logo" alt="Rakuten Ichiba Scraper" width="140"></p>

**Rakuten Ichiba (楽天市場) products as clean rows with English field names.** Search rakuten.co.jp by keyword in Japanese or English, list a whole genre or a shop's full catalogue, read the daily, weekly, monthly or real-time best-seller rankings, or paste any Rakuten link. Every row carries the price in yen, the price range across variants, Rakuten points, shipping, rating, review count, shop and genre. Turn on full item details for the description, specifications, reference price and every variant with its own price, JAN code and stock count, and buyer reviews with age band, gender and the variant bought.

### Why Use This Scraper?

- **Every variant, priced.** Colour, size and other options come as a list with each variant's price, JAN barcode, shop SKU and stock count, so you can track a single SKU, not just the item.
- **Best-seller rankings, deep.** Up to 1,000 ranked items per genre, for the whole of Rakuten or any genre, by day, week, month or the hourly real-time list.
- **A shop's full catalogue.** Give a shop code or link and get every item it lists, optionally narrowed to one genre, a keyword or a price band.
- **Reviews with buyer context.** Rating, title, text, reviewer age band and gender, post and order dates, helpful votes, the variant bought and review photos, as their own rows.
- **Search the way Rakuten sorts.** Standard order, price (with or without shipping), newest, most reviews or highest rated, with minimum and maximum price in yen.
- **Sponsored listings flagged, not mixed in.** Paid placements are left out by default, or kept with `sponsored: true`.
- **English field names, original text.** Field names are English; product names, shop names and specs stay in Japanese exactly as Rakuten shows them.

### Overview

This actor is for e-commerce sellers and brands watching their prices and rankings in Japan, cross-border sellers researching what sells on Rakuten, price-comparison and deal sites, market researchers sizing a category, and agencies monitoring competitor shops.

You give it keywords, genres, shops, ranking genres or Rakuten links. It returns one row per product in Rakuten's order, plus one row per review when reviews are on. Duplicates across inputs are dropped (rankings keep every rank). The dataset exports as JSON, CSV, Excel or through the API, and a `RUN_SUMMARY` record lists what each input delivered.

### Supported Inputs

| What you give | What you get |
|---|---|
| A keyword, e.g. `ワイヤレスイヤホン` or `wireless earbuds` | Rakuten's search results in order, up to 6,750 items |
| A search link, e.g. `https://search.rakuten.co.jp/search/mall/ヘッドホン/?s=2&min=3000` | The same search, with its sort and price filters kept |
| A category link, e.g. `https://www.rakuten.co.jp/category/502835/` | Every item in that genre |
| A genre id in **Genre**, e.g. `502835` | The whole genre, or your keywords and shops narrowed to it |
| A shop code or link, e.g. `jblstore` or `https://www.rakuten.co.jp/jblstore/` | The shop's whole catalogue |
| An item link, e.g. `https://item.rakuten.co.jp/jblstore/tour-one-m3/` | That item with full details and every variant |
| A review link, e.g. `https://review.rakuten.co.jp/item/1/398768_10000211/1.1/` | That item's buyer reviews |
| A ranking link, e.g. `https://ranking.rakuten.co.jp/weekly/502835/` | That ranking, in rank order |
| A ranking genre id, e.g. `0` (all of Rakuten) or `502835` | The ranking for the period you pick |

#### Copy-pasteable start links

```json
{
  "startUrls": [
    "https://item.rakuten.co.jp/jblstore/tour-one-m3/",
    "https://ranking.rakuten.co.jp/daily/502835/",
    "https://www.rakuten.co.jp/category/100371/"
  ]
}
```

#### Not supported

- Rakuten sites other than Rakuten Ichiba: Rakuten Travel, Rakuten Books' own store pages, Rakuma, Rakuten France or Rakuten.com (US).
- Anything behind a Rakuten login: your purchase history, coupons in your account, member-only prices.
- Shop pages built by the shop itself (event pages, "gold" landing pages); give the shop code instead to get its catalogue.

### Use Cases

| Who | What they do with it |
|---|---|
| Brands and sellers | Track their own and rivals' prices, points campaigns and ranking positions daily |
| Cross-border e-commerce | Find what sells in a category in Japan, at what price, from which shops |
| Price-comparison sites | Feed Rakuten prices and JAN codes next to other Japanese shops |
| Market researchers | Size a genre: price bands, top shops, review counts, best-sellers over time |
| Product teams | Read what buyers praise and complain about, by age band and gender |
| Agencies | Monitor a client's shop catalogue and its stock levels per variant |

### How It Works

![How the Rakuten Ichiba Scraper works](https://api.apify.com/v2/key-value-stores/ohu1kMi0e1GbUayOG/records/how-it-works)

1. **You choose what to read**: keywords, a genre, shops, rankings or Rakuten links, with sort and price filters.
2. **The actor reads Rakuten Ichiba** page by page in Rakuten's own order: 45 products a search page, 80 a ranking page.
3. **It opens item pages when you ask** for full details, adding description, specifications and every variant.
4. **It reads reviews when you ask**, 30 a page, up to your limit per item.
5. **You get clean rows** in the dataset, ready to export as JSON, CSV or Excel.

### Input Configuration

#### Input fields

| Field | Type | Default | What it does |
|---|---|---|---|
| `searchKeywords` | list of text | | Keywords to search, in Japanese or English. One search each. |
| `startUrls` | list of links | | Any rakuten.co.jp search, category, shop, item, ranking or review link. |
| `shops` | list of text | | Shop codes or shop links; returns each shop's whole catalogue. |
| `rankingGenres` | list of text | | Genre ids whose best-seller ranking you want; `0` is all of Rakuten. |
| `rankingPeriod` | `daily`, `weekly`, `monthly`, `realtime` | `daily` | Which ranking to read for `rankingGenres`. |
| `genreId` | text | | Limits keyword searches and shop catalogues to one genre; alone, lists the whole genre. |
| `sortBy` | `standard`, `price_asc`, `price_desc`, `price_shipping_asc`, `price_shipping_desc`, `newest`, `most_reviews`, `top_rated` | `standard` | Order of search, genre and shop results. |
| `minPrice` | number (JPY) | | Only items at or above this price, tax included. |
| `maxPrice` | number (JPY) | | Only items at or below this price, tax included. |
| `includeSponsored` | true / false | `false` | Keep Rakuten's paid listings (up to 5 a search page), marked `sponsored: true`. |
| `maxItemsPerInput` | number | `100` | Most products per keyword, link, shop or ranking (search up to 6,750, ranking up to 1,000). |
| `includeDetails` | true / false | `false` | Open each item page: description, specs, breadcrumbs, reference price, stock status, all variants. |
| `includeReviews` | true / false | `false` | Add each item's buyer reviews as separate rows. |
| `maxReviewsPerItem` | number | `30` | Most reviews per item. |

#### Common scenarios

**Search with a price band, cheapest first:**

```json
{
  "searchKeywords": ["ヘッドホン"],
  "sortBy": "price_asc",
  "minPrice": 3000,
  "maxPrice": 10000,
  "maxItemsPerInput": 200
}
```

**A competitor's whole catalogue with every variant and stock count:**

```json
{
  "shops": ["jblstore"],
  "includeDetails": true,
  "maxItemsPerInput": 500
}
```

**Weekly top 100 in a genre, with 20 reviews each:**

```json
{
  "rankingGenres": ["502835"],
  "rankingPeriod": "weekly",
  "maxItemsPerInput": 100,
  "includeReviews": true,
  "maxReviewsPerItem": 20
}
```

### Output Overview

Each dataset row has a `rowType`:

- **`product`**: one item from a search, genre, shop, ranking or item link. Ranking rows add `rank`, `rankingPeriod` and `rankingGenre`. With `includeDetails` (and always for item links) the row adds the item page fields and `variants`, and says `detailsIncluded: true`.
- **`review`**: one buyer review, with the item's id, name, link and shop on the row so it stands on its own.

Prices are in Japanese yen, tax included, as whole numbers. Dates are `YYYY-MM-DD`. Product text stays in Japanese.

### Output Samples

#### Product from a keyword search, with full details (shortened)

```json
{
  "rowType": "product",
  "itemId": "10000211",
  "itemCode": "tour-one-m3",
  "name": "【公式】 JBL ワイヤレスヘッドホン TOUR ONE M3 ハイレゾ(有線時) ノイズキャンセリング …",
  "subtitle": "リアルタイム補正ハイブリッドノイズキャンセリング搭載",
  "brand": "JBL",
  "url": "https://item.rakuten.co.jp/jblstore/tour-one-m3/",
  "price": 37500,
  "priceMax": 49500,
  "currency": "JPY",
  "referencePrice": 49500,
  "referencePriceLabel": "メーカー希望小売価格",
  "points": 3060,
  "pointRate": 9,
  "rating": 4.82,
  "reviewCount": 11,
  "freeShipping": true,
  "deliveryEstimate": "最短11/25お届け",
  "soldOut": false,
  "stockStatus": "low_stock",
  "genreId": "502835",
  "genrePath": "TV・オーディオ・カメラ > オーディオ > ヘッドホン・イヤホン",
  "shopId": "398768",
  "shopCode": "jblstore",
  "shopName": "JBL・AKG公式ストア",
  "imageUrl": "https://tshop.r10s.jp/jblstore/cabinet/08029756/tour-one-m3/tour-one-m3_1_v2.jpg",
  "attributes": [{ "name": "ブランド名", "value": "JBL" }, { "name": "再生時間", "value": "70時間" }],
  "variantOptions": [{ "name": "カラー", "values": ["ブルー（公式限定カラー）", "ブラック", "モカ", "グリーン"] }],
  "variantCount": 4,
  "variants": [
    {
      "variantId": "JBLTOURONEM3GRN",
      "options": { "カラー": "グリーン" },
      "price": 49500,
      "janCode": "4968929231140",
      "merchantSkuId": "JBLTOURONEM3GRN",
      "points": 4455,
      "stockQuantity": 9
    }
  ],
  "detailsIncluded": true,
  "sponsored": false,
  "position": 1,
  "searchInput": "ヘッドホン",
  "inputType": "search",
  "scrapedAt": "2026-11-23T12:47:54.790Z"
}
```

#### Ranking row (shortened)

```json
{
  "rowType": "product",
  "rank": 1,
  "itemId": "10000135",
  "name": "ゲーミングモニター 4k 27インチ 白 黒 ホワイト ピンク 水色 160hz ゲーム モニター HDR 新品 1ms Fast IPSパネル 非…",
  "url": "https://item.rakuten.co.jp/pixiogaming/px27uwave/",
  "price": 44800,
  "rating": 4.5,
  "reviewCount": 44,
  "shopId": "410833",
  "shopCode": "pixiogaming",
  "shopName": "Pixio公式ストア",
  "rankingPeriod": "daily",
  "rankingGenreId": "0",
  "rankingGenre": "総合",
  "inputType": "ranking"
}
```

#### Review row

```json
{
  "rowType": "review",
  "itemId": "10001780",
  "itemUrl": "https://item.rakuten.co.jp/kanidokoro/428/",
  "shopName": "海鮮かに処",
  "reviewId": "743858a2-2c30-4964-bdd0-7e9124d8435c",
  "rating": 5,
  "title": "ハガキきました",
  "body": "今日ハガキで31日にクロネコでくると連絡ありました…",
  "reviewer": "☆もっち☆2024さん",
  "reviewerAge": "30代",
  "reviewerGender": "female",
  "postedAt": "2025-12-26",
  "orderedAt": "2025-11-25",
  "helpfulCount": 99,
  "variant": null,
  "imageUrls": []
}
```

### Key Output Fields

#### Item

`itemId`, `itemCode`, `name`, `subtitle`, `url`, `imageUrl`, `imageUrls`, `brand`, `genreId`, `genrePath`, `tags` (Rakuten's own filters, e.g. colour or connection type)

#### Price and points

`price` (lowest variant), `priceMax` (highest, when variants differ), `currency`, `referencePrice` and `referencePriceLabel` (the "was" or maker's price the shop shows), `points`, `pointMultiplier`, `pointRate`

#### Shipping and stock

`freeShipping`, `shippingCost`, `deliveryEstimate`, `deliveryMessage`, `soldOut`, `stockStatus` (`in_stock`, `low_stock`, `out_of_stock`)

#### Shop

`shopName`, `shopCode`, `shopId`, `shopUrl`

#### Reviews summary

`rating`, `reviewCount`, `reviewsUrl`

#### Full details (`includeDetails`)

`description`, `salesDescription`, `attributes` (specs shared by every variant), `breadcrumbs`, `janCode` (single-variant items), `videoUrl`, `saleStart`, `saleEnd`, `variantOptions`, `variantCount`, `variants` (each: `variantId`, `options`, `price`, `referencePrice`, `janCode`, `merchantSkuId`, `points`, `stockQuantity`, `imageUrl`, `attributes` that differ from the item)

#### Rankings

`rank`, `rankingPeriod`, `rankingGenreId`, `rankingGenre`

#### Reviews (`rowType: review`)

`reviewId`, `rating`, `title`, `body`, `reviewer`, `reviewerAge`, `reviewerGender`, `postedAt`, `orderedAt`, `helpfulCount`, `variant`, `imageUrls`, plus the item's `itemId`, `itemName`, `itemUrl`, `shopCode`, `shopName`

#### Run context

`rowType`, `sponsored`, `position`, `searchInput`, `inputType`, `scrapedAt`

### FAQ

#### Which Rakuten links work?

Search results, category, shop, item, ranking and item review links on rakuten.co.jp. Anything else in the list is skipped with a note in the log and in `RUN_SUMMARY`.

#### Can I search in English?

Yes. Rakuten matches English words too, but most listings are written in Japanese, so a Japanese keyword (ヘッドホン rather than headphones) usually finds several times more items.

#### How do I find a genre id?

Open the category on rakuten.co.jp; the number in the link (`rakuten.co.jp/category/502835/`) is the genre id. Every product row also carries its `genreId`, so one search shows you the ids to use next.

#### How many items can I get?

Rakuten shows up to 150 pages of 45 items for one search, so 6,750 per keyword, genre or shop. Split a larger catalogue by genre or price band. Rankings go to 1,000 ranks.

#### Are prices with tax and shipping?

Prices are tax included, as Rakuten shows them. Shipping is separate: `freeShipping` and `shippingCost` say what applies. The two "price with shipping" sorts order results by the total.

#### What do the variants tell me?

Each colour, size or option combination with its own price, JAN code, shop SKU and, when the shop publishes it, the number in stock. The item-level `price` is the cheapest variant and `priceMax` the dearest.

#### Why do some items have fewer details?

Items sold by Rakuten Books and Rakuten Biccamera open on those stores' own pages. With full details on, they add the description, genre path, rating and, where the page shows it, the JAN code, but no variant list.

#### Why does a product show points?

Rakuten buyers earn points on each purchase, and shops run point multipliers in campaigns. `points` and `pointMultiplier` come from the listing, `pointRate` from the item page.

#### Are sponsored listings included?

Not by default. Rakuten places up to 5 paid listings at the top of a search page; turn on `includeSponsored` to keep them, marked `sponsored: true`.

#### Do you translate the product text?

No. Field names are English; names, specs and reviews stay in Japanese exactly as written, so nothing is lost. Translate the columns you need afterwards.

#### How much does a run cost?

$0.002 to start, then $0.001 per product, $0.002 more per product when full item details are on, and $0.001 per review. 1,000 products from a search cost about $1; with full details about $3. When you set a maximum cost per run, the run stops after the last product it can pay for in full, item page included.

#### Can I get data behind a login?

No. Only what any visitor sees on Rakuten Ichiba.

### Support

Found a bug or missing a field? Open an issue on the actor's [Issues tab](https://apify.com/memo23/rakuten-scraper/issues) with your run link and input.

### Additional Services

Need a scheduled price or ranking feed, a custom export, or another Japanese shop in the same format? Ask on the Issues tab; tailored work is available.

### Explore More Scrapers

- [**Mercari Japan Scraper**](https://apify.com/memo23/mercari-japan-scraper): Mercari items, sold prices, sellers and shops.
- [**Amazon Product Details Scraper**](https://apify.com/memo23/amazon-product-details-scraper): Amazon products with best-seller rank and Buy Box.
- [**Taobao & Tmall Scraper**](https://apify.com/memo23/taobao-scraper): Taobao and Tmall products, SKUs, reviews and sales.
- [**Shopee Scraper**](https://apify.com/memo23/shopee-scraper): Shopee search, ratings, sales and shops.

### 🤖 For AI Agents & LLM Apps

Compact reference for agents calling this actor through the [Apify MCP server](https://mcp.apify.com) or the Apify API (actor: `memo23/rakuten-scraper`).

**Purpose:** Rakuten Ichiba (Japan) products by keyword, genre, shop, ranking or link, with optional item details (every variant's price, JAN and stock) and buyer reviews.

**Minimal input:**

```json
{ "searchKeywords": ["ワイヤレスイヤホン"], "maxItemsPerInput": 20 }
```

**Output:** rows with `rowType` product: itemId, name, price, priceMax, currency (JPY), url, imageUrl, shopName, shopCode, rating, reviewCount, points, freeShipping, soldOut, brand, genreId, genrePath, sponsored; ranking rows add rank, rankingPeriod, rankingGenre; with `includeDetails`: description, attributes, referencePrice, stockStatus, variants \[{variantId, options, price, janCode, stockQuantity}]. Rows with `rowType` review: itemId, itemUrl, rating, title, body, reviewerAge, reviewerGender, postedAt, helpfulCount, variant.

**Behaviors an agent should know:**

- Always set `maxItemsPerInput`; one keyword can return 6,750 items and each review option multiplies rows.
- Product text is Japanese; Japanese keywords find far more than English ones.
- `genreId` narrows keyword searches and shops; given alone it lists the genre.
- Item links always return full details; rankings keep every rank even when another input already returned the item.
- Billing: $0.002 per run start (per GB of memory, 512 MB by default), `product` $0.001 per product row, `product-details` $0.002 per item page read (item links, or rows with `includeDetails`), `review` $0.001 per review row. Under a spending limit the run stops after the last row it can pay for in full.

### ⚠️ Disclaimer

This Actor is an independent tool and is not affiliated with, endorsed by, or sponsored by Rakuten Group, Inc. or any of its subsidiaries. Rakuten and Rakuten Ichiba are trademarks of Rakuten Group, Inc.; all trademarks mentioned are the property of their respective owners.

The scraper reads only publicly available Rakuten Ichiba pages: no account pages, member-only prices or content behind the rakuten.co.jp login. Users are responsible for making sure their use complies with Rakuten's Terms of Use, applicable data-protection law (GDPR, CCPA, Japan's APPI and others), and any contractual obligations of their own organization.

### SEO Keywords

rakuten scraper, rakuten ichiba scraper, scrape rakuten, rakuten API, rakuten.co.jp scraper, Apify rakuten, 楽天市場 スクレイピング, japan ecommerce scraper, japanese product data, rakuten ranking scraper, rakuten reviews scraper, rakuten price tracker, rakuten shop catalogue, JAN code data, japan price monitoring, cross-border ecommerce research, japan best sellers data, product variant stock data, japan market research data, rakuten points data

# Actor input Schema

## `searchKeywords` (type: `array`):

Words to search Rakuten Ichiba for, in Japanese or English (for example ワイヤレスイヤホン or wireless earbuds). Each keyword is one search.

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

Any rakuten.co.jp link: a search results page (its sort and price filters are kept), a category page (rakuten.co.jp/category/...), a shop (rakuten.co.jp/shopname/), an item page (item.rakuten.co.jp/...), a ranking page (ranking.rakuten.co.jp/...) or an item's review page (review.rakuten.co.jp/item/...).

## `shops` (type: `array`):

Shop codes or shop links. The code is the part after rakuten.co.jp/ or item.rakuten.co.jp/, for example jblstore or rakuten24. Every item the shop lists is returned.

## `rankingGenres` (type: `array`):

Genre ids whose Rakuten best-seller ranking you want, up to 1,000 ranked items each. Use 0 for the ranking of all of Rakuten. A genre id is the number in a rakuten.co.jp/category/ link, for example 502835 for headphones and earphones.

## `rankingPeriod` (type: `string`):

Which ranking to read for the genres above. Rakuten updates the real-time ranking every hour.

## `genreId` (type: `string`):

Limit keyword searches and shop catalogues to one Rakuten genre, for example 502835 (headphones and earphones). With no keywords or shops, the whole genre is listed.

## `sortBy` (type: `string`):

Order of search, genre and shop results. Rankings keep their own order.

## `minPrice` (type: `integer`):

Only items at or above this price in yen, tax included.

## `maxPrice` (type: `integer`):

Only items at or below this price in yen, tax included.

## `includeSponsored` (type: `boolean`):

Rakuten places up to 5 paid listings at the top of each search page. They are left out unless this is on; when on, those rows carry sponsored: true.

## `maxItemsPerInput` (type: `integer`):

Most products to return for each keyword, link, shop or ranking. A search returns up to 6,750 items (150 pages of 45), a ranking up to 1,000.

## `includeDetails` (type: `boolean`):

Open each item's page for its description, specifications, breadcrumbs, reference price, stock status and every variant (colour, size and so on) with its own price, JAN code and stock count. Charged per item page. Item links always come with full details.

## `includeReviews` (type: `boolean`):

Add each item's buyer reviews as separate rows (rowType: review): rating, title, text, reviewer age band and gender, post and order date, helpful votes, the variant bought and photos. Charged per review.

## `maxReviewsPerItem` (type: `integer`):

Most reviews to return for each item, in Rakuten's own order (30 a page).

## Actor input object example

```json
{
  "searchKeywords": [
    "ワイヤレスイヤホン"
  ],
  "rankingPeriod": "daily",
  "sortBy": "standard",
  "includeSponsored": false,
  "maxItemsPerInput": 20,
  "includeDetails": false,
  "includeReviews": false,
  "maxReviewsPerItem": 30
}
```

# Actor output Schema

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

All rows in the default dataset.

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

What each input delivered or could not read.

# 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 = {
    "searchKeywords": [
        "ワイヤレスイヤホン"
    ],
    "maxItemsPerInput": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("memo23/rakuten-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 = {
    "searchKeywords": ["ワイヤレスイヤホン"],
    "maxItemsPerInput": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("memo23/rakuten-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 '{
  "searchKeywords": [
    "ワイヤレスイヤホン"
  ],
  "maxItemsPerInput": 20
}' |
apify call memo23/rakuten-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,memo23/rakuten-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/15ISgIjsGTC9vRhhj/builds/ufoWYeNvfgK5GuRyt/openapi.json
