Tracking prices on Rakuten Ichiba gets interesting when two stores sell similar products at different prices and offer different reward points. A price tracker that ignores those points can miss changes in the value of an offer entirely.
If you're looking for how to scrape Rakuten products with Python, this tutorial shows how to collect product listings, prices, reward points, shop information and review scores using an open-source scraper.
You'll also build a small Python script that compares two snapshots and identifies changes in prices and reward points independently.
The project uses the MIT-licensed Rakuten Scraper. You can also find its corresponding Rakuten entry on ScrapingReview.
How to scrape Rakuten products in six steps
- Clone the Rakuten scraper repository from GitHub.
- Create a Python virtual environment.
- Install the dependencies and Playwright Chromium.
- Run the scraper against a Rakuten Ichiba search URL.
- Check the run status and export the products to JSON and CSV.
- Compare two snapshots using Python to identify price and reward point changes.
The basic setup requires no API key, proxy or Rakuten account.
What product data can you extract from Rakuten?
The scraper supports keyword searches, genre listings and individual product pages on Rakuten Ichiba, the Japanese marketplace at rakuten.co.jp.
It returns 42 fields per product, covering listings, merchants and marketplace-specific pricing attributes.
| Data type | Extracted fields |
|---|---|
| Product information | Titles, SKUs, URLs |
| Categories | Categories, genre IDs |
| Pricing | price, currency, price_max, subscription_price |
| Rewards | points, point_rate |
| Merchant information | shop_name, shop_code, shop_id, shop_url |
| Reviews | rating, review_count |
| Shipping | shipping_fee, free_shipping, delivery_estimate |
| Product variants | Variant prices, variant count |
Prices on the tested Japanese marketplace are in JPY. Product titles, categories and merchant names remain in Japanese.
For price monitoring, the most useful identifier is sku. Rakuten combines the shop code and item code into a single identifier, making it possible to match the same merchant's listing across multiple runs.
Setting up the Rakuten scraper
You'll need Python 3.9 or newer. The repository's offline test suite covers Python 3.9 and 3.13.
Clone the repository:
git clone https://github.com/2scraper/rakuten-scraper.git cd rakuten-scraper Create a virtual environment and install the dependencies:
python3 -m venv .venv && . .venv/bin/activate pip install -r requirements.txt -r requirements-playwright.txt playwright install chromium These commands use a Bash-compatible shell.
Playwright is the recommended browser engine. Selenium and pyppeteer are also supported, but installing all three in the same virtual environment can introduce dependency conflicts.
For the first run, you don't need a .env file or any credentials.
Scraping Rakuten search results with Python
Suppose you're monitoring wireless earphones sold by Japanese retailers. The Japanese search term for wireless earphones is ワイヤレスイヤホン.
Run the scraper against the search URL:
python3 playwright_scraper.py \ --url "https://search.rakuten.co.jp/search/mall/ワイヤレスイヤホン/" \ --pages 3 The --pages argument controls how many result pages the scraper requests. Rakuten serves 45 product listings per page, so three full pages can produce 135 records.
After a successful run, the scraper produces:
rakuten_products.json rakuten_products.csv rakuten_products.meta.json The JSON file is convenient for Python processing. The CSV file can be opened in a spreadsheet, while the metadata file tells you whether the collection completed successfully.
Always check the metadata before importing the results into another application. An existing CSV file does not necessarily mean your latest scrape succeeded.
Why Rakuten requires careful data extraction
Several details in Rakuten's page structure can cause a scraper to return incomplete or misleading data.
The structured data contains different products
A search page contains an application/ld+json block with ten products belonging to a recommendation carousel. The actual search results contain 45 products per page.
Instead of treating JSON-LD as the primary product source, the scraper reads the listing payload from:
window.__INITIAL_STATE__.state.data.ichibaSearch The payload contains products and pagination information. JSON-LD is used to obtain the currency on the first page.
Product pages use a different structure
Individual item pages expose their data through a script element with the ID item-page-app-data.
The scraper extracts product information from:
newApi.itemInfoSku Product pages can also use EUC-JP encoding, while listing pages use UTF-8. Using a browser engine avoids having to handle those response encodings manually.
A successful request can still contain the wrong page
Requesting a page beyond Rakuten's pagination limit can return the first page again.
The scraper checks the offset reported in the actual response rather than assuming the requested page number is correct. This prevents a long collection from repeatedly saving the same first-page products.
From search results to individual product pages
Search results are useful for discovering products and comparing merchants. Individual product pages provide additional information, including variant prices and verified original prices when available.
The workflow looks like this:
Rakuten keyword search | v Product listings and merchant data | v Extract product URLs and SKUs | v Scrape individual product pages | v Collect variant prices and verified original prices The repository includes this product-mode example:
python3 playwright_scraper.py --mode product \ --url "https://item.rakuten.co.jp/sawaicoffee-tea/solandluna/" For the earphone monitoring project, substitute a product URL collected from your own search results.
A missing original price should remain missing rather than being estimated from promotional text in a product title.
Handling CAPTCHAs, rate limits and blocked requests
Rakuten's supported listing and item routes worked with an ordinary browser in the repository's documented tests. There was no requirement for a paid scraping service.
However, the scraper includes optional integrations for remote browser infrastructure, proxies and CAPTCHA solving.
Understanding access refusals and HTTP 503
According to the repository's measurements, Rakuten uses Akamai.
An access refusal can arrive with HTTP 200 and a response body of only 42–43 bytes. Checking the HTTP status alone is therefore insufficient to establish whether a product page was returned.
HTTP 503 can indicate excessive request frequency. The scraper handles throttling by waiting for 6, 15 and 30 seconds before exhausting its retry sequence.
If throttling persists, reduce your collection frequency and increase --delay.
When a remote scraping browser is useful
For server deployments where maintaining Chromium is inconvenient, the scraper supports the 2Captcha Scraping Browser API through the RAKUTEN_CDP_ENDPOINT environment variable. Keep your authenticated endpoint in .env rather than your Python source or command history. Proxy configuration is also supported through RAKUTEN_PROXY, but neither integration is required for this tutorial.
Does Rakuten require CAPTCHA solving?
The repository examined 13 page captures and found no configured CAPTCHA widgets on the supported routes.
Although the scraper integrates reCAPTCHA v2/v3 solving through 2Captcha, there was no CAPTCHA to solve during those tests.
An access refusal without a CAPTCHA widget is not a CAPTCHA-solving task. Adding a solver would not address that response.
Understanding the JSON and CSV output
Here is a shortened selection of fields from a real record in the repository's sample_output.json, collected on September 21, 2026:
{ "source": "rakuten.co.jp", "scraped_at": "2026-09-21T09:22:22.033307+00:00", "url": "https://item.rakuten.co.jp/ajinomoto/r4901111371248/", "sku": "ajinomoto:r4901111371248", "price": 2447.0, "currency": "JPY", "original_price": null, "discount_pct": null, "points": 220, "point_rate": 10, "rating": 4.76, "review_count": 475, "shipping_fee": 0.0, "free_shipping": true, "shop_name": "味の素グループ公式ショップ", "price_source": "state" } This historical coffee listing shows a product priced at ¥2,447 with 220 advertised reward points and free shipping.
The points are rewards earned through the purchase, not an immediate reduction in the amount charged.
That's why a Rakuten price tracker should preserve both values rather than subtracting points from the price and saving the result as the actual selling price.
If you prefer working exclusively with spreadsheets, use the CSV-only output option:
python3 playwright_scraper.py \ --url "https://search.rakuten.co.jp/search/mall/ワイヤレスイヤホン/" \ --pages 3 --format csv Building a Rakuten price tracker in Python
A single scrape gives you a snapshot. Two scrapes let you see what changed.
Start by saving the first collection:
python3 playwright_scraper.py \ --url "https://search.rakuten.co.jp/search/mall/ワイヤレスイヤホン/" \ --pages 3 --out monday Run the same search again at your next monitoring interval:
python3 playwright_scraper.py \ --url "https://search.rakuten.co.jp/search/mall/ワイヤレスイヤホン/" \ --pages 3 --out tuesday Use the same search URL, filters, page count and browser engine for both runs.
The repository's diff_runs.py already compares prices and points, including point_rate. The short script below prints a compact per-shop listing summary for this project.
Save the following as track_prices.py:
import json from pathlib import Path def load_run(prefix): meta = json.loads( Path(f"{prefix}.meta.json").read_text(encoding="utf-8") ) if meta["status"] != "complete": raise ValueError(f"Incomplete run: {prefix}") rows = json.loads( Path(f"{prefix}.json").read_text(encoding="utf-8") ) return {row["sku"]: row for row in rows} old = load_run("monday") new = load_run("tuesday") for sku in sorted(old.keys() & new.keys()): a, b = old[sku], new[sku] if a["currency"] != "JPY" or b["currency"] != "JPY": continue if a["price_source"] != b["price_source"]: continue if None in (a["price"], b["price"], a["points"], b["points"]): continue price_change = b["price"] - a["price"] points_change = b["points"] - a["points"] if price_change == 0 and points_change == 0: continue print(f"SKU: {sku}") print(f"Shop: {b.get('shop_name', 'Unknown')}") print(f"Price change: {price_change:+,.0f} JPY") print(f"Points change: {points_change:+,}") print("-" * 40) Run it:
python3 track_prices.py The script uses only Python's standard library, so there are no additional packages to install.
This is a custom processing script written for this tutorial, not a bundled repository file. Its output depends on the two snapshots you collect.
A negative price change indicates that the listed price decreased. A positive points change indicates that the advertised reward increased.
The script ignores products missing from either snapshot because disappearing from the first three search pages does not prove that a product was removed from the marketplace.
It also skips records whose price_source changed, avoiding comparisons between prices obtained from different extraction sources.
Limitations to consider before scheduling your scraper
Rakuten's search results have a hard limit of 6,750 accessible products per query, corresponding to 150 pages of 45 products.
A query can match millions of products while exposing only that subset. Check total_results, reachable_max and capped_by_site in the metadata before treating your dataset as representative of the marketplace.
Other limitations include:
- Listing pages do not expose verified original prices or discount percentages.
- Merchant storefronts and ranking pages are not supported.
- Individual review text is not part of the output schema.
- Products without reviews have null ratings and review counts.
- Search results exclude sold-out items, limiting inventory monitoring.
-
--locale endoes not translate merchant-authored product information.
For scheduled jobs, pay attention to exit codes:
| Exit code | Meaning |
|---|---|
| 0 | Products written |
| 1 | Crash |
| 2 | Incorrect usage |
| 3 | Blocked before parsing |
| 4 | Page served but no products found |
| 5 | Content could not be obtained |
| 6 | Partial run |
A failed or partial collection should not become the baseline for your next price comparison.
Is scraping Rakuten legal?
Collect only publicly available information and review Rakuten's terms of use and robots.txt before starting. Keep your request rate moderate, respect access restrictions and consider copyright when storing product descriptions or images.
If your collection involves personal information, comply with applicable privacy legislation, including GDPR where relevant. This tutorial is not legal advice.
Frequently asked questions
Can I scrape Rakuten products without an API key?
Yes. The open-source scraper reads public listing and product pages without requiring an API key, proxy or account. A documented three-page run returned 135 products with exit code 0.
Do I need the Rakuten API to collect product prices?
No. This scraper reads data embedded in Rakuten's public pages rather than using its developer API. It extracts prices, points, merchant information and review scores directly from those pages.
How do I export Rakuten product data to CSV?
The scraper generates rakuten_products.csv alongside its JSON output by default. Use --format csv if you only need CSV output.
Can I scrape Rakuten product reviews with Python?
You can extract aggregate ratings and review counts. Individual review comments and reviewer profiles are not included in the scraper's product schema.
How do I scrape Rakuten without getting blocked?
Start with the default Playwright configuration, keep your request frequency moderate and respect the site's access restrictions. If you encounter HTTP 503, increase the delay between requests.
Can I track Rakuten discounts and reward points separately?
Yes. The scraper stores price, points and point_rate independently. Verified original prices are available on supported product pages when published. Comparing these fields across snapshots helps distinguish price changes from reward campaigns.
Start with a small product dataset
The Rakuten scraper on GitHub is a practical starting point for experimenting with Japanese marketplace data.
Additional project information is available on the Rakuten scraper page on 2scraper.com and its corresponding entry on ScrapingReview.
If your deployment requires managed browser infrastructure, evaluate the optional 2Captcha integration separately from your local scraper setup. The How to Scrape Rakuten guide on 2Captcha provides a full reference of the available options.
Disclosure: This article was prepared with AI assistance and is based on the scraper's repository documentation, changelog and recorded test data.