Skip to content
Scrappa Get API key
Rakuten API 1 credit / request

Rakuten Ranking API Documentation

GET https://scrappa.co/api/rakuten/ranking

Rakuten Ranking API Documentation Read the Rakuten Ichiba sales ranking. Choose the period (daily, weekly, monthly or realtime), a genre, and optionally the female or male buyer ranking. Each row has the rank, the change since the last period (up, down, same or new), the price as a number in JPY, the review count, the shop and an id, shop_code and manage_number that the item and reviews endpoints accept unchanged. Rakuten shortens long titles on the ranking page: use the item endpoint for the full title. Some genres have no ranking for a period. The list is then empty and the request is not billed. updated_on is the day of the ranking. Cost: 1 credit per request. Empty lists and failed requests are not billed.

Rakuten Ranking API Documentation 1 credit / request

Endpoint

Request preview
GET
https://scrappa.co/api/rakuten/ranking
Auth header
x-api-key
Cost
1 credit / request
Response preview
200 OK
{
    "data": {
        "page": 1,
        "items": [
            {
                "id": "310201_10004562",
                "url": "https://item.rakuten.co.jp/zoff/lucky_bag_ec/",
                "rank": 1,
                "shop": {
                    "id": 310201,
                    "url": "https://www.rakuten.co.jp/zoff/",
                    "code": "zoff",
                    "name": "Zoff \uff08\u30be\u30d5\uff09\u3000\u697d\u5929\u5e02\u5834\u5e97"
                },
...

Parameters

Start with the required fields, then add optional filters only when your use case needs them.

Runnable path

This endpoint has no required query parameters.

4 optional filters available.

period string Optional

Ranking period: daily (default), weekly, monthly or realtime.

Example value example
genre_id integer Optional

Rakuten genre id, e.g. 100227 for food. Leave it out for the overall ranking. Take the ids from the genre path of an item.

Example value 1234567890
gender string Optional

Ranking of items that sell well to female or male buyers: female or male.

Example value example
page integer Optional

Page number from 1. Each page has up to 80 rows. A page beyond the end answers 422.

Example value 1

Response Schema

Example response fields are illustrative; inspect the JSON before integrating.

Example response fields

Scan these fields before integrating.

data meta success
JSON Response
200 OK
{
    "data": {
        "page": 1,
        "items": [
            {
                "id": "310201_10004562",
                "url": "https://item.rakuten.co.jp/zoff/lucky_bag_ec/",
                "rank": 1,
                "shop": {
                    "id": 310201,
                    "url": "https://www.rakuten.co.jp/zoff/",
                    "code": "zoff",
                    "name": "Zoff \uff08\u30be\u30d5\uff09\u3000\u697d\u5929\u5e02\u5834\u5e97"
                },
                "image": "https://tshop.r10s.jp/zoff/cabinet/mail/2027fuku_1006.jpg",
                "price": 6600,
                "title": "|\u3010Zoff \u798f\u888b2027 \u3011\u3010\u30dd\u30a4\u30f3\u30c810\u500d\u3011\u300812\u6708\u4e0a\u65ec\u9803\u304b\u3089\u9806\u6b21\u767a\u9001\u3009\u30be\u30d5\u5e97\u8217\u3067\u4f7f\u3048\u308b10,0",
                "rating": {
                    "count": 1051,
                    "stars": 4
                },
                "item_id": 10004562,
                "shop_id": 310201,
                "currency": "JPY",
                "shop_code": "zoff",
                "rank_change": "up",
                "manage_number": "lucky_bag_ec",
                "price_is_from": false
            },
            {
                "id": "213310_22159108",
                "url": "https://item.rakuten.co.jp/book/18877285/",
                "rank": 2,
                "shop": {
                    "id": 213310,
                    "url": "https://www.rakuten.co.jp/book/",
                    "code": "book",
                    "name": "\u697d\u5929\u30d6\u30c3\u30af\u30b9"
                },
                "image": "https://tshop.r10s.jp/book/cabinet/4074/4988031934074_1_2.jpg",
                "price": 6042,
                "title": "Fujii Kaze \u201cPre: Prema Tour\u201d\u3010Blu-ray\u3011 [ \u85e4\u4e95 \u98a8 ]",
                "rating": {
                    "count": 0,
                    "stars": null
                },
                "item_id": 22159108,
                "shop_id": 213310,
                "currency": "JPY",
                "shop_code": "book",
                "rank_change": "down",
                "manage_number": "18877285",
                "price_is_from": false
            }
        ],
        "gender": null,
        "period": "daily",
        "currency": "JPY",
        "genre_id": null,
        "fetched_at": "2026-11-08T19:30:00+00:00",
        "genre_name": "\u7dcf\u5408",
        "updated_on": "2026-11-08"
    },
    "meta": {
        "credits": 1,
        "billable": true,
        "endpoint_family": "ranking"
    },
    "success": true
}

Errors

Handle these documented responses before retrying or showing customer-facing failures.

422

Validation Error

A query parameter is missing or invalid. This response is not billable.

{
    "errors": {
        "period": [
            "The period is one of daily, weekly, monthly, realtime."
        ]
    },
    "message": "The request validation failed"
}
422

Invalid Request

The page is beyond the end of the ranking. This response is not billable.

{
    "meta": {
        "billable": false,
        "retryable": false,
        "endpoint_family": "ranking"
    },
    "error": {
        "code": "INVALID_REQUEST",
        "message": "The ranking has no page 99."
    },
    "success": false
}
503

Upstream Unavailable

Rakuten did not answer after the internal retries. This response is not billable. Retry after a few seconds.

{
    "meta": {
        "billable": false,
        "retryable": true,
        "endpoint_family": "search"
    },
    "error": {
        "code": "UPSTREAM_UNAVAILABLE",
        "message": "Rakuten is temporarily unavailable. Please retry. This request was not charged."
    },
    "success": false
}

Generate Code with AI

Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.

Try It Live

Test this endpoint in our interactive playground with real data.