# 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/workflows/rakuten
- Handle: `@rakuten`
- Category: [Commerce](https://fous.com/workflows/category/commerce)
- Source website: https://rakuten.co.jp
- Last verified: Sep 29, 2026
- Fous is not affiliated with Rakuten.

## Methods

### Search products

Operation `search_products`, version 1. 1 credit per call.

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

Call the API with a Fous API key (`FOUS_API_KEY`). To create one, turn on Developer mode in Fous Studio, then open Keys & connections → API keys (https://app.fous.com/keys).

```bash
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
: "${FOUS_API_KEY:?Set FOUS_API_KEY before running this example}"

curl 'https://api.fous.com/v1/query' \
  --fail-with-body --silent --show-error --max-time 120 \
  -H "Authorization: Bearer $FOUS_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.
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
import json
import os
import urllib.error
import urllib.request

api_key = os.environ.get("FOUS_API_KEY")
if not api_key:
    raise RuntimeError("Set FOUS_API_KEY before running this example")

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=120) 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.
// First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
const apiKey = process.env.FOUS_API_KEY;
if (!apiKey) throw new Error("Set FOUS_API_KEY before running this example");

const response = await fetch("https://api.fous.com/v1/query", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${apiKey}`,
    "Content-Type": "application/json",
  },
  signal: AbortSignal.timeout(120_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);
```

Or describe the data in plain language: send `{"api":"@rakuten","prompt":"Describe the data you need, with every detail"}` to the same URL. Fous fills in the input, runs the method that fits and returns only the fields you asked for; `data.route.calls[].request` is the exact call it made. Routing is free; the run costs the same.

## 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

### Is Fous affiliated with Rakuten?

No. Fous is not affiliated with Rakuten. This workflow reads the public rakuten.co.jp website and returns its data.

### How much does it cost?

Each run costs 1 credit. 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; repeating the same request within a day may return the saved result. Fous checks this workflow automatically; it last passed a check 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/workflows/mercari.md): Search secondhand and sold listings on Mercari US.
- [AliExpress API](https://fous.com/workflows/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/workflows/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/workflows/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/workflows/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/workflows/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/workflows/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/workflows/nordstrom.md): Search clothing, shoes, and beauty products at Nordstrom.
- [All Commerce workflows](https://fous.com/workflows/category/commerce)
