# Rakuten Ichiba Product Search — Official API, JPY Pricing (`axery/rakuten-product-search`) Actor

Search Rakuten Ichiba (Japan's largest marketplace) via the official Rakuten Web Service API: numeric JPY price, reviews, shop info and shipping flags. No scraping.

- **URL**: https://apify.com/axery/rakuten-product-search.md
- **Developed by:** [Axery](https://apify.com/axery) (community)
- **Categories:** E-commerce, Business, Automation
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.01 / 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.
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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Rakuten Ichiba Product Search

Searches **Rakuten Ichiba**, Japan's largest online marketplace, via Rakuten's own official Web Service API — not a scrape.

### What you get per product

Numeric JPY price (no parsing needed — Rakuten's own `itemPrice` is already a number), shop name and URL, review average and count, and shipping/payment flags translated into plain booleans (`free_shipping`, `ships_overseas`, `accepts_credit_card`, `asuraku_available` for next-day delivery) instead of Rakuten's raw internal codes.

### You need your own Rakuten application ID

Confirmed directly against the live endpoint:

| Request | Result |
|---|---|
| Placeholder `applicationId` | HTTP 400 — `{"error": "wrong_parameter", "error_description": "specify valid applicationId"}` |
| Valid `applicationId` | Full search results |

Getting one is free: register at [webservice.rakuten.co.jp](https://webservice.rakuten.co.jp/), create an application, and use the ID it gives you. No payment plan is required for this API's free quota.

### ⚠️ Verification status

Every other Actor in this suite was tested against live, real data before shipping. **This one could not be** — no valid Rakuten application ID was available during development. The client is built directly against Rakuten's stable, versioned, publicly documented Ichiba Item Search API (`20220601`, `formatVersion=2`) rather than captured output. The error path above was confirmed live and returns cleanly with no crash; the success-path field mapping in `src/scraper.py` has not been.

**Please run it once with your own application ID and check the output against the schema before relying on it.**

### Input

| Field | Type | Notes |
|---|---|---|
| `keyword` | string | Product keyword — Japanese generally returns far more results than English. |
| `applicationId` | string | Your Rakuten Web Service application ID. Required. |
| `affiliateId` | string | Optional — tags product URLs with your Rakuten affiliate ID. |
| `genreId`, `minPrice`, `maxPrice`, `sort` | — | Optional narrowing filters, passed straight through to Rakuten's API. |
| `maxItems` | integer | Rakuten's own API caps one search at page × 30 ≤ 3,000 results total — the Actor stops there regardless. |
| `proxyConfiguration` | object | Not needed — this calls Rakuten's API directly. |

### Local development

```bash
pip install -r requirements.txt
python test_local.py laptop --app-id YOUR_REAL_ID --out sample_output.json
```

There is no `sample_output.json` committed in this folder, unlike every other Actor in this suite — see the verification status note above for why.

# Actor input Schema

## `keyword` (type: `string`):

A product keyword, in Japanese or English (Japanese generally returns far more results).

## `applicationId` (type: `string`):

Your own Rakuten Web Service application ID. Get one free at https://webservice.rakuten.co.jp/ - register an account, create an app, no payment required for this API's free quota.

## `affiliateId` (type: `string`):

Your Rakuten Affiliate ID, if you have one - product URLs will carry your affiliate tag.

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

Restrict to a specific Rakuten genre/category id.

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

Only return products priced at or above this amount, in Japanese yen.

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

Only return products priced at or below this amount, in Japanese yen.

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

How results are ordered.

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

Maximum products to return. Rakuten's own API caps results at page x 30 <= 3,000 total for one search - the Actor stops there regardless of this setting.

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

Not needed - this Actor calls Rakuten's official API directly, not a scrape.

## Actor input object example

```json
{
  "keyword": "ノートパソコン",
  "applicationId": "1234567890123456789",
  "sort": "",
  "maxItems": 100,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `products` (type: `string`):

One row per product from Rakuten's official Ichiba Item Search API.

# 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 = {
    "keyword": "laptop",
    "maxItems": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("axery/rakuten-product-search").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 = {
    "keyword": "laptop",
    "maxItems": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("axery/rakuten-product-search").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 '{
  "keyword": "laptop",
  "maxItems": 100
}' |
apify call axery/rakuten-product-search --silent --output-dataset

```

## MCP server setup

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

```

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/a0g6zeKTTSGbDWhv2/builds/GDc5gd0pJ7X7X4YyK/openapi.json
