# Rakuten Ichiba Scraper - $1.50 / 1000 Items (`scrapeunblocker/rakuten-scraper`) Actor

Scrape Rakuten Ichiba (Japan): search results or item pages with price in yen, Rakuten points and point rate, shipping, rating and reviews, shop, ranking, and every variant with its own price and stock. $1.50 per 1000 items.

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

## Pricing

from $1.50 / 1,000 results

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

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Rakuten Ichiba Scraper

Scrape **Rakuten Ichiba** (rakuten.co.jp), Japan's largest online marketplace, as clean JSON. Get **search results** or **item pages**: every item comes with the price in yen (and the top of the range when variants cost more), the **Rakuten points** a shopper earns and the **point rate**, the **rating and review count**, the shop, the **shipping fee** and free-shipping flag, the delivery estimate, unit price, daily genre ranking, sale and sold-out flags, genres, tags and images. Item pages add the description, condition, stock and delivery message, the attribute table and **every variant (SKU)** with its own options, price, stock and JAN code.

### Features

- **Search mode** - items for each search term (Japanese or English), 45 per results page, up to 450 per term, sorted by relevance, price, newest, review count or rating, with a price range and genre filter.
- **Product mode** - one item per input (`products`: `shopCode/itemCode` or an item link) with all variants.
- **Points** - `points` and `pointMultiplier` for every search result.
- **Sponsored results left out** - only organic results are returned (and billed).
- **Many inputs per run** - search terms or items in parallel.

### Use cases

- **Price and points monitoring in Japan** - what shops charge and how many points they give on the same product.
- **Shop and assortment research** - who ranks for a keyword, with which ratings and review counts.
- **Cross-border sourcing** - Japanese prices and stock per variant.

### Input

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| `mode` | string | `search` | `search` or `product`. |
| `queries` | array | `コーヒー` | Search terms or Rakuten search links (search mode). |
| `products` | array | - | `shopCode/itemCode` (`sawaicoffee-tea/sol150`) or item links (product mode). |
| `sort` | string | `relevance` | `relevance`, `price_low`, `price_high`, `newest`, `review_count`, `review_score`. |
| `minPrice` / `maxPrice` | integer | - | Price range in yen (search mode). |
| `genreId` | string | - | Rakuten genre id, e.g. `100227` (search mode). |
| `maxResults` | integer | `45` | Items per search term (1-450). |
| `concurrency` | integer | `3` | Inputs processed at the same time (1-5). |

#### Example input

```json
{
  "mode": "search",
  "queries": ["ワイヤレスイヤホン", "炊飯器"],
  "sort": "review_count",
  "maxResults": 90
}
```

### Output

One dataset item per Rakuten item, with the input it came from. A search item:

```json
{
  "mode": "search",
  "input": "コーヒー",
  "position": 1,
  "itemId": "10001136",
  "itemCode": "ac-sale-1960",
  "shopId": "198667",
  "shopCode": "sawaicoffee-tea",
  "shopName": "澤井珈琲Beans&Leaf",
  "title": "澤井珈琲｜送料無料 コーヒー コーヒー豆 ...",
  "url": "https://item.rakuten.co.jp/sawaicoffee-tea/ac-sale-1960/",
  "price": 2788,
  "priceMax": 8888,
  "currency": "JPY",
  "points": 50,
  "pointMultiplier": 2,
  "rating": 4.7,
  "reviewCount": 50382,
  "shippingFee": 0,
  "freeShipping": true,
  "deliveryEstimate": "13:00までの注文で最短翌日お届け",
  "unitPrice": 1394.0,
  "unitPriceText": "1,394円/個",
  "packCount": 2,
  "ranking": { "rank": 1, "genre": "コーヒー豆" },
  "soldOut": false,
  "sponsored": false,
  "hasVariants": true,
  "genreId": "201402",
  "genres": ["水・ソフトドリンク", "コーヒー", "コーヒー豆"],
  "image": "https://thumbnail.image.rakuten.co.jp/@0_mall/sawaicoffee-tea/cabinet/..."
}
```

A product-mode item adds `tagline`, `description`, `condition`, `available`, `stockQuantity`, `deliveryMessage`, `orderLimit`, `breadcrumbs`, `shopCategories`, `attributes` (name / value / unit), `variantOptions`, `images` and `variants`, one per SKU with its `options`, `price`, `available`, `stockQuantity` and `janCode`. Rakuten shows points on search results only, so product-mode items have no points.

Per search term, the `LISTINGS` record in the key-value store keeps `totalResults`, `reachableResults`, related keywords, pages fetched and items collected.

### Pricing

**$1.50 per 1000 items** (pay per result). A search term or item that returns nothing (no match, an unknown item) is listed in the `ERRORS` record of the key-value store and is not charged.

### Notes

- Prices are in yen with tax included.
- Rakuten lets a search be paged through to 150 pages (6,750 items); `reachableResults` in `LISTINGS` shows how far a search goes.

Powered by [ScrapeUnblocker](https://www.scrapeunblocker.com).

# Actor input Schema

## `mode` (type: `string`):

Search: items for each search term, 45 per results page, up to Max items. Product: one item each, with description, stock, attributes and every SKU (variant) with its own price and stock.

## `queries` (type: `array`):

Used when What to scrape = Search. What to search, in Japanese or English, e.g. コーヒー, iphone, ナイキ スニーカー. A Rakuten search link (https://search.rakuten.co.jp/search/mall/...) also works. One per line.

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

Used when What to scrape = Product. Rakuten items as shopCode/itemCode (e.g. sawaicoffee-tea/sol150) or item links (https://item.rakuten.co.jp/dai-one/15-128-a/). One per line.

## `sort` (type: `string`):

Search mode: the order of the results.

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

Search mode: lowest price to include.

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

Search mode: highest price to include.

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

Search mode: limit to one Rakuten genre (category) id, e.g. 100227. Every result's genreId is one.

## `maxResults` (type: `integer`):

Upper limit of items for each search term (1-450; Rakuten shows 45 per page).

## `concurrency` (type: `integer`):

How many search terms or items to process at the same time (1-5).

## Actor input object example

```json
{
  "mode": "search",
  "queries": [
    "コーヒー"
  ],
  "sort": "relevance",
  "maxResults": 10,
  "concurrency": 3
}
```

# Actor output Schema

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

One item per Rakuten item with the input it came from and, in search mode, its position

## `listings` (type: `string`):

Per search term: total results, reachable results, related keywords, pages fetched and items collected

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

Inputs that returned no items (no match, unknown item, blocked), with the reason (not billed)

# 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 = {
    "queries": [
        "コーヒー"
    ],
    "maxResults": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapeunblocker/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 = {
    "queries": ["コーヒー"],
    "maxResults": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("scrapeunblocker/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 '{
  "queries": [
    "コーヒー"
  ],
  "maxResults": 10
}' |
apify call scrapeunblocker/rakuten-scraper --silent --output-dataset

```

## MCP server setup

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