# Rakuten API

> Rakuten returns product listings, prices, and ratings as a workflow and API.

Rakuten, also called Rakuten Ichiba, returns product listings for a required keyword in Japanese or English. Search products accepts optional price, shipping, result-count, and sort inputs; listings include prices, sellers, ratings, reviews, and links.

- Page: https://fous.com/tools/rakuten
- Handle: `@rakuten`
- Category: [Commerce](https://fous.com/tools/category/commerce)
- Source website: https://rakuten.co.jp
- Last verified: Sep 29, 2026

## Methods

### Search products

Operation `search_products`, version 1. 1 credit per completed call. Failed calls without a completed billing receipt are free; completed work can remain charged if delivery is interrupted.

Search Rakuten Ichiba products by keyword, price, shipping, and sort order. Returns up to 45 regular listings in the order shown; sponsored placements are excluded. Prices are listed starting prices when an item has variants.

**Input**

| Field | Type | Required | Example | Description |
|---|---|---|---|---|
| `sort` | string | no | `"price_low_to_high"` | Results order, for example price_low_to_high. |
| `query` | string | yes | `"ワイヤレスイヤホン"` | Product keywords in Japanese or English, for example ワイヤレスイヤホン or Nintendo Switch. |
| `max_price` | integer | no | `6000` | Highest listed price in yen, for example 6000. |
| `min_price` | integer | no | `3000` | Lowest listed price in yen, for example 3000. |
| `max_results` | integer | no | `5` | Maximum products to return, for example 20 (at most 45). |
| `free_shipping_only` | boolean | no | `true` | Show only products marked free shipping, for example true. |

**Input schema**

```json
{
  "type": "object",
  "required": [
    "query"
  ],
  "properties": {
    "sort": {
      "enum": [
        "standard",
        "price_low_to_high",
        "price_high_to_low",
        "most_reviews",
        "newest"
      ],
      "type": "string",
      "default": "standard",
      "description": "Results order, for example price_low_to_high.",
      "examples": [
        "price_low_to_high",
        "most_reviews",
        "newest"
      ]
    },
    "query": {
      "type": "string",
      "minLength": 1,
      "description": "Product keywords in Japanese or English, for example ワイヤレスイヤホン or Nintendo Switch.",
      "examples": [
        "ワイヤレスイヤホン",
        "Nintendo Switch",
        "zzzxxyy9876improbable123"
      ]
    },
    "max_price": {
      "type": "integer",
      "minimum": 0,
      "description": "Highest listed price in yen, for example 6000.",
      "examples": [
        6000
      ]
    },
    "min_price": {
      "type": "integer",
      "default": 0,
      "minimum": 0,
      "description": "Lowest listed price in yen, for example 3000.",
      "examples": [
        3000
      ]
    },
    "max_results": {
      "type": "integer",
      "default": 20,
      "maximum": 45,
      "minimum": 1,
      "description": "Maximum products to return, for example 20 (at most 45).",
      "x-fous-developer": true,
      "examples": [
        5,
        3,
        4
      ]
    },
    "free_shipping_only": {
      "type": "boolean",
      "default": false,
      "description": "Show only products marked free shipping, for example true.",
      "examples": [
        true
      ]
    }
  },
  "additionalProperties": false,
  "examples": [
    {
      "sort": "price_low_to_high",
      "query": "ワイヤレスイヤホン",
      "max_price": 6000,
      "min_price": 3000,
      "max_results": 5,
      "free_shipping_only": true
    },
    {
      "sort": "most_reviews",
      "query": "Nintendo Switch",
      "max_results": 3
    },
    {
      "query": "zzzxxyy9876improbable123",
      "max_results": 5
    }
  ]
}
```

**Output**

| Field | Type | Example | Description |
|---|---|---|---|
| `products` | array |  | Products in the order shown by Rakuten. |
| `products[].name` | string | `"【送料無料】 ワイヤレスイヤホン bluetooth 5.1 無線 イヤフォン iphone スマホ android アンドロイド ブルートゥース Siri 高音質 防水 スポーツ 左右分離 YOUJ"` | Product name as shown on Rakuten. |
| `products[].price` | integer | `3000` | Listed price in yen; lowest price for variants. |
| `products[].points` | string or null | `"27ポイント(1倍)〜"` | Points text as shown, such as 254ポイント(1倍); null when not shown. |
| `products[].currency` | string | `"JPY"` | Currency for price. |
| `products[].item_code` | string | `"shopkurano:m-mi0403-10a"` | Rakuten shop and item code, for example book:18210481. |
| `products[].shop_name` | string | `"SHOP KURANO"` | Seller shop name. |
| `products[].image_link` | string or null | `"https://tshop.r10s.jp/shopkurano/cabinet/2067/m-mi0403-10a-10.jpg?fitin=275:275"` | Product image link. |
| `products[].star_rating` | number or null | `3.28` | Average star rating; null when not rated. |
| `products[].product_link` | string | `"https://item.rakuten.co.jp/shopkurano/m-mi0403-10a/"` | Product page link. |
| `products[].review_count` | integer | `29` | Number of reviews; zero when not rated. |
| `products[].free_shipping` | boolean | `true` | Whether the listing says shipping is free. |

**Example input**

```json
{
  "sort": "price_low_to_high",
  "query": "ワイヤレスイヤホン",
  "max_price": 6000,
  "min_price": 3000,
  "max_results": 5,
  "free_shipping_only": true
}
```

**Example output**

```json
{
  "products": [
    {
      "name": "【送料無料】 ワイヤレスイヤホン bluetooth 5.1 無線 イヤフォン iphone スマホ android アンドロイド ブルートゥース Siri 高音質 防水 スポーツ 左右分離 YOUJ",
      "price": 3000,
      "points": "27ポイント(1倍)〜",
      "currency": "JPY",
      "item_code": "shopkurano:m-mi0403-10a",
      "shop_name": "SHOP KURANO",
      "image_link": "https://tshop.r10s.jp/shopkurano/cabinet/2067/m-mi0403-10a-10.jpg?fitin=275:275",
      "star_rating": 3.28,
      "product_link": "https://item.rakuten.co.jp/shopkurano/m-mi0403-10a/",
      "review_count": 29,
      "free_shipping": true
    },
    {
      "name": "ブルートゥース ワイヤレスイヤホン 送料無料 スポーツ イヤホン ウォーキング 運動 マグネット搭載 ハンズフリー 運動 通話 マイク付き 首かけ ネックバンドイヤホン ノイズキャンセリング 高音質 ヘッドホン 防水防汗 スマホ スマートフォン 在宅 テレワーク bluetooth",
      "price": 3000,
      "points": "27ポイント(1倍)",
      "currency": "JPY",
      "item_code": "bellezzavoce:cjfj228",
      "shop_name": "ベレザヴォーチェ",
      "image_link": "https://tshop.r10s.jp/gold/bellezzavoce/lib/image/cjfj228.jpg?fitin=275:275",
      "star_rating": 3,
      "product_link": "https://item.rakuten.co.jp/bellezzavoce/cjfj228/",
      "review_count": 4,
      "free_shipping": true
    },
    {
      "name": "Sony ソニー WF-1000xm4 ケース WF-1000xm4 カバー sony ヘッドホン WF-1000xm4 ケース シリコン ソフトケース カラビナ付き 保護 2021最新 収納 専用ケース カバー イヤホン キズ防止 耐衝撃 保護カバー 保護ケース シンプル 落下防止 かわいい 防",
      "price": 3000,
      "points": "30ポイント(1倍)",
      "currency": "JPY",
      "item_code": "yakia:h-snbh",
      "shop_name": "yakia",
      "image_link": "https://tshop.r10s.jp/yakia/cabinet/h-snbh/h-snbh-1.jpg?fitin=275:275",
      "star_rating": null,
      "product_link": "https://item.rakuten.co.jp/yakia/h-snbh/",
      "review_count": 0,
      "free_shipping": true
    }
  ]
}
```

## Quick start

Replace `YOUR_API_KEY` with a Fous API key. To create one, open Developers at the bottom of Fous Studio, turn on Developer mode, then go to API keys (https://app.fous.com/keys). Change the values in `input` to run the same tool on new data.

```bash
curl 'https://api.fous.com/v1/query' \
  --fail-with-body --silent --show-error --max-time 180 \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "api": "@rakuten",
  "visibility": "public",
  "operation": "search_products",
  "version": 1,
  "input": {
    "sort": "price_low_to_high",
    "query": "ワイヤレスイヤホン",
    "max_price": 6000,
    "min_price": 3000,
    "max_results": 5,
    "free_shipping_only": true
  },
  "response": {
    "format": "json"
  }
}'
```

```python
# Save as fous.py and run with python3 fous.py. No packages needed.
import json
import urllib.error
import urllib.request

api_key = "YOUR_API_KEY"

body = json.loads("{\n  \"api\": \"@rakuten\",\n  \"visibility\": \"public\",\n  \"operation\": \"search_products\",\n  \"version\": 1,\n  \"input\": {\n    \"sort\": \"price_low_to_high\",\n    \"query\": \"ワイヤレスイヤホン\",\n    \"max_price\": 6000,\n    \"min_price\": 3000,\n    \"max_results\": 5,\n    \"free_shipping_only\": true\n  },\n  \"response\": {\n    \"format\": \"json\"\n  }\n}")
request = urllib.request.Request(
    "https://api.fous.com/v1/query",
    data=json.dumps(body).encode("utf-8"),
    headers={
        "Authorization": f"Bearer {api_key}",
        "Content-Type": "application/json",
    },
    method="POST",
)
try:
    with urllib.request.urlopen(request, timeout=180) as response:
        result = json.load(response)
except urllib.error.HTTPError as error:
    raise RuntimeError(f"HTTP {error.code}: {error.read().decode('utf-8', errors='replace')}") from error
if result.get("success") is False:
    raise RuntimeError(result.get("error", {}).get("message", "Request failed"))
print(json.dumps(result["data"]["output"], indent=2))
```

```typescript
// Save as fous.mts and run with npx tsx fous.mts.
const apiKey = "YOUR_API_KEY";

const response = await fetch("https://api.fous.com/v1/query", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${apiKey}`,
    "Content-Type": "application/json",
  },
  signal: AbortSignal.timeout(180_000),
  body: JSON.stringify({
  "api": "@rakuten",
  "visibility": "public",
  "operation": "search_products",
  "version": 1,
  "input": {
    "sort": "price_low_to_high",
    "query": "ワイヤレスイヤホン",
    "max_price": 6000,
    "min_price": 3000,
    "max_results": 5,
    "free_shipping_only": true
  },
  "response": {
    "format": "json"
  }
}),
});
type ApiResult = { success: boolean; data?: { output: unknown }; error?: { message: string } };
const result: ApiResult = await response.json();
if (!response.ok || result.success === false) {
  throw new Error(result.error?.message ?? `HTTP ${response.status}`);
}
if (!result.data) throw new Error("Missing API response data");
console.log(result.data.output);
```

## Use from an AI assistant

Connect this tool to Claude Code, Claude Desktop, Cursor, VS Code, Codex and any MCP client as its own MCP server. Each method is a typed tool whose arguments are the method’s input.

- Server URL: `https://api.fous.com/mcp/tools/rakuten`
- Authorization: `Authorization: Bearer <Fous API key>`

**Tools**

- `search_products`: Search products. 1 credit per completed call. Failed calls without a completed billing receipt are free; completed work can remain charged if delivery is interrupted.
- `fous_get_run`: the result of a run that was still going, by its `request_id`. Free.

Claude Code:

```bash
claude mcp add --scope user --transport http fous-rakuten https://api.fous.com/mcp/tools/rakuten --header "Authorization: Bearer ${FOUS_API_KEY:?Set FOUS_API_KEY to your Fous API key}"
```

To give the assistant every tool, connect `https://api.fous.com/mcp`: it finds one with `fous_search_tools` and runs it with `fous_run_tool`. Setup for other clients: https://fous.com/llms-full.txt.

## Use cases

- Compare listed prices across sellers
- Find products within a target price range
- Identify listings marked with free shipping
- Review product ratings and review counts
- Track product listings by keyword

## FAQ

### Can I run it with my own inputs?

Yes. Change the inputs in Studio and press Run, or send new inputs from your code, or ask a connected AI assistant.

### Can I call this Rakuten tool as an API?

Yes. Send a POST request to /v1/query with your Fous API key and the inputs, and get JSON back.

### How much does it cost?

Each completed run costs 1 credit. Failed runs without a completed receipt are free; completed work can remain charged if delivery is interrupted. With pay as you go, a credit costs 1¢. Monthly plans cost less per credit.

### Do I need a Rakuten account?

No. You only need a Fous account.

### How current is the data?

Fous gets the data from rakuten.co.jp when you run it. Some results are reused for up to 24 hours, and results that use your account or key are never reused. It was last verified on Sep 29, 2026.

### What products match a keyword?

Search products returns listings matching a required Japanese or English keyword.

### Which products are within my price range?

Search products accepts minimum and maximum prices in yen.

### Which matching products offer free shipping?

Search products can show only listings marked free shipping.

## Related

- [Mercari API](https://fous.com/tools/mercari.md): Search secondhand and sold listings on Mercari US.
- [AliExpress API](https://fous.com/tools/aliexpress.md): AliExpress returns product listings and selected product details, including prices, variants, reviews, and destination-specific shipping options shown for the displayed variant.
- [Amazon API](https://fous.com/tools/amazon.md): Amazon returns publicly shown product listings, prices, details, ratings, reviews, current best sellers, and Today's Deals; availability and content vary by store, location, and access.
- [Best Buy API](https://fous.com/tools/best-buy.md): Best Buy returns US electronics and appliance listings, prices, deals, specifications, images, reviews, and nearby store pickup and shipping details; prices and availability can change by location and before checkout.
- [Walmart API](https://fous.com/tools/walmart.md): Walmart helps shoppers find products from Walmart and marketplace sellers, view details, prices, ratings and reviews; availability uses Walmart’s default location, not ZIP codes.
- [Flipkart API](https://fous.com/tools/flipkart.md): Flipkart shows current product listings and prices, with available product details and location-dependent delivery estimates that may be unavailable for some listings or PIN codes.
- [eBay API](https://fous.com/tools/ebay.md): eBay provides listings, listing details, seller reputation and newest feedback; shipping varies by destination, and some details or counts may be missing or approximate.
- [Nordstrom API](https://fous.com/tools/nordstrom.md): Search clothing, shoes, and beauty products at Nordstrom.
- [All Commerce tools](https://fous.com/tools/category/commerce)
