How to Scrape Rakuten Products

One coffee listing in the Rakuten Ichiba sample shows ¥2,447, a subscription price of ¥2,324 and 220 reward points. Which number belongs in a price report? Start with ¥2,447, keep the subscription offer and points in separate columns, and keep the shop code alongside the item. Here is how to scrape Rakuten products with Python and build a shop-by-shop price report you can check against a nine-row coffee sample.

For another reference on this marketplace, see ScrapingReview’s Rakuten guide. The commands and sample below come from the 2scraper Rakuten repository. I work with 2Captcha.

How to scrape Rakuten products in six steps

  1. Choose a public keyword search or category on Rakuten Ichiba.
  2. Install the Python dependencies and Chromium.
  3. Export one page and check the run status.
  4. Match each offer to its shop and item code.
  5. Keep prices, subscription offers and points in separate columns.
  6. Sort the sample and check pack sizes before comparing prices.

1. Choose a search, category or item

InputOutputWhen to use it
Keyword search URL, such as コーヒー (coffee)Listing rows with shop, SKU, price and positionCompare offers returned for the same query
Category URL with a genre IDListing rows from that categoryKeep the category consistent between runs
A shop’s item URL in product modeA product record with variant details where availableCheck which option a displayed price buys

A Rakuten shop can sell multiple pack sizes on one page. Save the item URL, shop code and collection time so you can trace a price back to a specific offer.

2. Install the scraper

In a macOS or Linux terminal, clone the repository and install its browser dependencies in a virtual environment. On Windows PowerShell, activate the environment with .\.venv\Scripts\Activate.ps1. The repository records a one-page test on November 17, 2026 with Python 3.13. The coffee sample used below was collected separately in September.

git clone https://github.com/2scraper/rakuten-scraper.git
cd rakuten-scraper
python3 -m venv .venv
source .venv/bin/activate
python -m pip install -r requirements.txt -r requirements-playwright.txt
python -m playwright install chromium

3. Export one page of coffee listings

Check the site’s terms and robots.txt for your intended use. Collect public product data at a moderate request rate. Leave personal data out of the report. Start with one public listing page and stop if the site denies access. Use the provided sample to work through the remaining steps offline.

python3 playwright_scraper.py --url "https://search.rakuten.co.jp/search/mall/コーヒー/" --pages 1

The default export writes rakuten_products.json and rakuten_products.csv in the current directory. Open rakuten_products.meta.json and check status before comparing row counts. If the run is partial, inspect pages_failed and the stop reason. Search position describes a particular query at a particular time. To investigate pack sizes for a single shop item, switch to product mode with the README’s example:

python3 playwright_scraper.py --mode product --url "https://item.rakuten.co.jp/sawaicoffee-tea/solandluna/"

4. Read one offer before comparing shops

These fields come from the first record in sample_output.json, collected on September 21, 2026. Prices are in Japanese yen.

{
  "sku": "ajinomoto:r4901111371248",
  "shop_code": "ajinomoto",
  "price": 2447.0,
  "currency": "JPY",
  "price_max": 6975.0,
  "subscription_price": 2324.0,
  "points": 220,
  "point_rate": 10,
  "rating": 4.76,
  "review_count": 475
}

The listing spans ¥2,447 to ¥6,975. Check the variant and pack size before calculating a unit price. The shop also advertises 220 points. Subtracting those points from ¥2,447 would understate the amount a shopper pays for the item today.

5. Make a smaller CSV for review

Save this as report.py beside sample_output.json and run it with python report.py. It keeps both ends of a price range, preserves missing values as empty cells and writes Japanese shop names in a spreadsheet-friendly encoding.

import csv
import json
from pathlib import Path

rows = json.loads(Path("sample_output.json").read_text(encoding="utf-8"))
fields = [
    "sku", "shop_name", "price", "price_max", "currency",
    "subscription_price", "points", "point_rate", "scraped_at", "url",
]
offers = [
    row for row in rows
    if row.get("currency") == "JPY" and row.get("price") is not None
]
offers.sort(key=lambda row: (row["price"], row["sku"]))
with open("coffee-offers.csv", "w", newline="", encoding="utf-8-sig") as out:
    writer = csv.DictWriter(out, fieldnames=fields, extrasaction="ignore")
    writer.writeheader()
    writer.writerows(offers)
print(f"Wrote {len(offers)} of {len(rows)} rows")

6. Check the report against the sample

Shop and item (SKU)Listed price (JPY)Reward points
soukaidrink:49327070288331,72015
ajinomoto:r49011113712482,447220
sawaicoffee-tea:ac-sale-19602,78850

Three selected offers from the repository’s nine-record coffee sample, ordered by listed price. The amounts describe the September 21 snapshot.

How to scrape Rakuten products: three coffee listings priced at 1,720, 2,447 and 2,788 JPY

Figure 1. Listed prices for three coffee offers on Rakuten Ichiba, September 21, 2026. Each bar represents one shop’s listing. Reward points and shipping are excluded.

The ¥1,720 offer has the lowest listed price of these three. To decide which coffee costs least per serving, you still need comparable package sizes, the selected variant and shipping to the same destination. Keep missing shipping charges blank. A zero means something different from an unknown fee.

Frequently asked questions

Do I need an API key to scrape Rakuten product prices?

The local Playwright command above runs without an API key, proxy or Rakuten account. The README reports no CAPTCHA on the routes the scraper reads. The optional hosted browser from 2Captcha is useful if you need a managed browser or a specific exit country.

How do I export Rakuten data to CSV?

Run the one-page search command above and open rakuten_products.csv in a spreadsheet. For an offline check, run python report.py against the repository sample and open coffee-offers.csv.

Can I subtract Rakuten points from the listed price?

Keep them separate in a price report. The Ajinomoto listing shows ¥2,447 and 220 reward points, and the amount paid for the item and the reward earned are separate figures.

Why does one shop listing show several prices?

A listing can cover several variants or offer a separate subscription price. Check the pack size and selected variant on the item page before you calculate the cost per serving.

Does a missing shipping fee mean free delivery?

An empty field means the export gives you no amount for that offer. Check the shipping terms for your destination before comparing delivered prices.

Use the sample to check your next export

Keep the nine-row fixture from the GitHub repository beside your first live export so you can spot changes in fields or units. The Rakuten scraper project page describes the supported data. If you need a hosted browser, try 2Captcha and use its “How to scrape Rakuten” guide as a reference for the available options.