Scraper APIRakuten
rakuten.book
One item on Rakuten Books (a book, a disc, a game or a Kobo e-book): title, creators, price, rating, release, publisher, ISBN or JAN, stock, description and every fact the page lists.
- Id
rakuten.book- Version
- 1
- Billed per
- request — 1 unit for a charged run
- Runs
- within one request
Start it with POST /v1/scrapers/rakuten.book/runs. How runs work is in Running a scraper; what a run costs is in Usage and units.
Inputs
The fields of input. A field that is not listed here is refused.
| Field | Type | Description |
|---|---|---|
itemrequired | string | The item's address on books.rakuten.co.jp (https://books.rakuten.co.jp/rb/18513563/, or …/rk/<code>/ for a Kobo e-book), or its id as rakuten.books_search returns it (rb:18513563).Limit: at least 4 characters, at most 2048 characters. |
Record fields
Every record of a run has these fields. A value that is not known is null — never an empty string and never 0.
| Field | Type | Notes |
|---|---|---|
item_id | string | The item's id: rb:<number>, rd:<number> for a download, or rk:<code> for a Kobo e-book. |
url | string | The item's page on books.rakuten.co.jp. |
title | string | The title as the page writes it; a Kobo e-book's ends in [電子書籍版]. |
creators | array of string | The authors, artists or makers the page names, in its order, with their role where it gives one (菅原 朋子(著)). |
price | integer or null | The price in yen, tax included. 0 for a free e-book. |
currency | string | Always JPY.Default: "JPY". |
rating | number or null | The average of its reviews, out of 5; null for an item without reviews. |
review_count | integer or null | How many reviews it has. |
release | string or null | The release day as the page writes it (発売日, or for a download 配信開始日), e.g. 2026年04月01日頃. |
release_date | string (date) or null | The day of release, when it names one. |
publisher | string or null | The publisher (出版社), the label that issues a disc (発売元), the seller of a game (販売元), or the maker of a download (提供元). |
isbn | string or null | The ISBN, for a book. |
jan | string or null | The JAN (the barcode number), for a disc or a game. |
availability | string or null | What the page says of stock, in Japanese, e.g. 在庫あり (in stock); null for an e-book. |
description | string or null | The item's description (商品説明), as text. |
image | string or null | The cover's picture. |
details | object of string values | Every fact the page lists under 商品情報, as label and value in Japanese: 発売日, 出版社, 発行形態 (format), ページ数 (pages), 収録時間 (running time), 言語 (language), ... |
fetched_at | string (date-time) | When the store answered, in UTC. |
Example request
# Start a run and wait up to 60 seconds for it to finish
curl -X POST "https://api.enrichednow.com/v1/scrapers/rakuten.book/runs?wait=60" \
-H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"item":"rb:18513563"}}'
# Read its records, with the id the first call answered
curl "https://api.enrichednow.com/v1/runs/$RUN_ID/records?limit=100" \
-H "Authorization: Bearer $ENRICHEDNOW_API_KEY"from enrichednow import EnrichedNow
client = EnrichedNow() # reads ENRICHEDNOW_API_KEY
# Start a run, wait for it to end, and get its records
result = client.scrape("rakuten.book", {"item": "rb:18513563"})
print(result.run.id, result.run.status, result.run.record_count)
# Read its records: pages are fetched as you go
for record in result.records:
print(record)Install it with pip install enrichednow, then save as run.py and run python3 run.py
import EnrichedNow from "enrichednow";
const client = new EnrichedNow(); // reads ENRICHEDNOW_API_KEY
// Start a run, wait for it to end, and get its records
const { run, records } = await client.scrape("rakuten.book", { item: "rb:18513563" });
console.log(run.id, run.status, run.record_count);
// Read its records: pages are fetched as you go
for await (const record of records) console.log(record);Install it with npm install enrichednow, then save as run.mjs and run node run.mjs
package main
import (
"context"
"fmt"
"log"
"time"
enrichednow "github.com/enrichednow/enrichednow-go"
)
func main() {
client, err := enrichednow.NewClient() // reads ENRICHEDNOW_API_KEY
if err != nil {
log.Fatal(err)
}
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Minute)
defer cancel()
// Start a run, wait for it to end, and get its records
run, records, err := client.Scrape(ctx, "rakuten.book", map[string]any{"item": "rb:18513563"})
if err != nil {
log.Fatal(err)
}
fmt.Println(run.ID, run.Status, run.RecordCount)
// Read its records: pages are fetched as you go
for records.Next() {
fmt.Println(string(records.Current()))
}
if err := records.Err(); err != nil {
log.Fatal(err)
}
}Install it with go get github.com/enrichednow/enrichednow-go@latest, then save as run.go and run go run run.go
import com.enrichednow.EnrichedNowClient;
import com.enrichednow.ScrapeResult;
import java.util.Map;
public class Run {
public static void main(String[] args) {
EnrichedNowClient client = EnrichedNowClient.fromEnv(); // reads ENRICHEDNOW_API_KEY
// Start a run, wait for it to end, and get its records
ScrapeResult result = client.scrape("rakuten.book", Map.of("item", "rb:18513563"));
System.out.println(result.run().id() + " " + result.run().status() + " " + result.run().recordCount());
// Read its records: pages are fetched as you go
for (Map<String, Object> record : result.records()) {
System.out.println(record);
}
}
}Add com.enrichednow:enrichednow-java:0.4.0 to your Maven or Gradle build, then save as Run.java
enrichednow run rakuten.book --input item=rb:18513563Install it with curl -fsSL https://raw.githubusercontent.com/enrichednow/enrichednow-cli/main/install.sh | sh
It starts a run with this scraper’s example input, waits for it to finish and reads its records a page at a time. The key is read from ENRICHEDNOW_API_KEY.
The body on its own:
{
"input": {
"item": "rb:18513563"
}
}Example response
The run, once it has ended. A run that has not ended within wait comes back with 202 and the status queued or running.
{
"id": "run_841742f37553189ff9c27ba1",
"scraper_id": "rakuten.book",
"scraper_version": 1,
"status": "ok",
"reason": null,
"input": {
"item": "rb:18513563"
},
"record_count": 1,
"units": 1,
"units_per_request": 1,
"units_per_record": null,
"units_per_page": null,
"diagnostics": {
"requests": 1,
"bytes": 259214,
"wall_ms": 885,
"facts": {}
},
"created_at": "2026-11-16T22:37:50.170950Z",
"started_at": "2026-11-16T22:37:50.178331Z",
"finished_at": "2026-11-16T22:37:51.066313Z"
}Its records, from GET /v1/runs/{id}/records. The record is a real one: this scraper's own parser read it from a page recorded from the site.
{
"records": [
{
"item_id": "rb:18513563",
"url": "https://books.rakuten.co.jp/rb/18513563/",
"title": "ひとつひとつしっかり身につく Pythonの教科書 (基礎から丁寧に学ぶ教科書シリーズ)",
"creators": [
"菅原 朋子 (著)"
],
"price": 3080,
"currency": "JPY",
"rating": 4,
"review_count": 1,
"release": "2026年04月01日頃",
"release_date": "2026-04-01",
"publisher": "SBクリエイティブ",
"isbn": "9784815630614",
"jan": null,
"availability": "在庫あり",
"description": "内容紹介(出版社より)\n\nPythonの基礎から“とことん丁寧に”解説\n初心者の方には、パソコンの基本操作や開発環境の整え方から、変数や関数、リスト、クラスといったPythonの基礎構文を一つひとつ、わかりやすい言葉でご説明します。また、プログラムの流れやエラーの原因と対処法(例外処理)、データの可視化など、実践的な知識も豊富にご用意。コード例や図解を交え、難しい理論もイメージしやすく解説いたします。\n\nPythonの重要なポイントが分かる! … [truncated]",
"image": "https://tshop.r10s.jp/book/cabinet/0614/9784815630614_1_7.jpg?downsize=600:*",
"details": {
"発売日": "2026年04月01日頃",
"著者/編集": "菅原 朋子 (著)",
"レーベル": "基礎から丁寧に学ぶ教科書シリーズ",
"出版社": "SBクリエイティブ",
"発行形態": "単行本",
"ページ数": "536p",
"ISBN": "9784815630614"
},
"fetched_at": "2026-11-19T21:13:52.976916Z"
}
],
"next_cursor": null
}What was done to the record for this page, and nothing else — the API returns every value whole. A text that was cut ends with … [truncated].
- Shortened:
description: 3,623 characters, the first 223 shown.
A run does not always end ok. Results and statuses lists every status and the reasons every scraper shares; the reasons of the Rakuten scrapers are in their own section there.