{
  "openapi": "3.0.1",
  "info": {
    "title": "Rakuten Scraper | Japan Products, Shops and Rankings",
    "description": "Extract Rakuten Ichiba products, JPY prices, shop details, rankings, categories, and optional review snippets from Japan. Export structured JSON, CSV, or Excel for e-commerce analytics, price tracking, APIs, and AI agents via MCP.",
    "version": "0.1",
    "x-build-id": "unvV1Fn3HH0Ar4osv"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lentic_clockss~rakuten-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lentic_clockss-rakuten-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/lentic_clockss~rakuten-scraper/runs": {
      "post": {
        "operationId": "runs-sync-lentic_clockss-rakuten-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/lentic_clockss~rakuten-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-lentic_clockss-rakuten-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "auto",
              "search",
              "item",
              "shop",
              "ranking",
              "categories",
              "suggest",
              "review"
            ],
            "type": "string",
            "description": "Choose what to collect, or leave auto to select from the fields you fill. Ranking and category modes need no keyword; review mode needs an item or shop. genreId narrows the selected mode.",
            "default": "auto"
          },
          "keyword": {
            "title": "Search keyword",
            "type": "string",
            "description": "Search word or phrase for search or suggestion mode. Japanese keywords are recommended."
          },
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "Several keywords at once. Each keyword gets its own maxResults row allowance.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Rakuten Ichiba search, item, shop, ranking or review page addresses, including shop and item pages on a shop's own subdomain (<shop>.rakuten.co.jp). Each address selects its page type and has its own maxResults allowance.",
            "items": {
              "type": "string"
            }
          },
          "itemUrl": {
            "title": "Item URL",
            "pattern": "^(https?://([a-z0-9-]+\\.)*rakuten\\.co\\.jp/.*)?$",
            "type": "string",
            "description": "One item page address, e.g. https://item.rakuten.co.jp/<shop>/<item>/ or https://<shop>.rakuten.co.jp/item/<item>/"
          },
          "shopUrlCode": {
            "title": "Shop URL code",
            "pattern": "^[A-Za-z0-9_-]*$",
            "type": "string",
            "description": "Shop code from the shop address, e.g. rakutenmobile-store in https://www.rakuten.co.jp/rakutenmobile-store/. Alone it lists the shop; with a manage number it opens one item."
          },
          "manageNumber": {
            "title": "Manage number",
            "type": "string",
            "description": "Item code from the final part of an item page address. Use with shopUrlCode to select one item."
          },
          "shopId": {
            "title": "Shop ID",
            "type": "string",
            "description": "Numeric Rakuten shop identifier. Selects a shop for shop or review mode; use with itemId to select one item."
          },
          "itemId": {
            "title": "Item ID",
            "type": "string",
            "description": "Numeric Rakuten item identifier. Use with shopId to select one item for item or review mode."
          },
          "maxResults": {
            "title": "Max rows per query or URL",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum rows for each keyword or start URL; a single item, shop, ranking, category or suggestion request counts as one input. Default 70, collected in parts of 70 for larger requests; all row types share the allowance, subject to the run cost cap and the Free plan limit of 200 rows per run.",
            "default": 70
          },
          "genreId": {
            "title": "Genre ID",
            "type": "string",
            "description": "Rakuten genre identifier, such as 564500 for smartphones and tablets. Narrows search, ranking or category mode; does not select a mode by itself."
          },
          "genreSlug": {
            "title": "Genre slug / Japanese name",
            "type": "string",
            "description": "Recognized genre name or alias, such as smartphone. Used when genreId is empty; a known numeric genreId is more precise."
          },
          "sort": {
            "title": "Sort",
            "type": "string",
            "description": "Search result order: standard, price_asc, price_desc, newest, review_count or review_score. Leave empty for the site order."
          },
          "minPrice": {
            "title": "Min price (JPY)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum listed price in JPY for search results. Leave empty for no minimum."
          },
          "maxPrice": {
            "title": "Max price (JPY)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum listed price in JPY for search results. Leave empty for no maximum."
          },
          "filters": {
            "title": "Facet filters",
            "type": "array",
            "description": "Search filters: free_shipping, super_deal, student, subscription or include_sold_out. Availability depends on the search page.",
            "items": {
              "type": "string"
            }
          },
          "tags": {
            "title": "Tag filters",
            "type": "array",
            "description": "Tag identifiers from a Rakuten search page. Leave empty if you do not need tag filtering.",
            "items": {
              "type": "string"
            }
          },
          "used": {
            "title": "Used flag",
            "minimum": 0,
            "maximum": 1,
            "type": "integer",
            "description": "Optional used-item setting from the search page: 0 or 1. Availability depends on the page."
          },
          "period": {
            "title": "Ranking period",
            "enum": [
              "daily",
              "realtime",
              "weekly",
              "monthly"
            ],
            "type": "string",
            "description": "Ranking period: daily, realtime, weekly or monthly. Used in ranking mode.",
            "default": "daily"
          },
          "page": {
            "title": "Start page",
            "minimum": 1,
            "maximum": 150,
            "type": "integer",
            "description": "First search result page to collect, starting at 1.",
            "default": 1
          },
          "maxGenreNodes": {
            "title": "Max genre nodes",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Limit category exploration in categories mode. maxResults separately limits the rows delivered.",
            "default": 800
          },
          "enrichDetails": {
            "title": "Enrich item details",
            "type": "boolean",
            "description": "Add available item-page details to product listings. May increase run time.",
            "default": false
          },
          "enrichReviews": {
            "title": "Enrich reviews",
            "type": "boolean",
            "description": "Request available full-text reviews as separate billed rows. Review rows and product rows share the same maxResults allowance; a complete review history is not guaranteed.",
            "default": false
          },
          "enrichStock": {
            "title": "Enrich real-time stock",
            "type": "boolean",
            "description": "Request available stock and variant information for items. These details may be missing.",
            "default": false
          },
          "enrichShipping": {
            "title": "Enrich shipping",
            "type": "boolean",
            "description": "Request available item shipping fees and delivery estimates. These details may be missing.",
            "default": false
          },
          "enrichBenefits": {
            "title": "Enrich points/benefits",
            "type": "boolean",
            "description": "Request available item reward points and benefit eligibility. These details may be missing.",
            "default": false
          },
          "enrichLead": {
            "title": "Add shop business details",
            "type": "boolean",
            "description": "Add available public business disclosures to the shop row, such as company name, telephone and opening hours. Enabled by default for shop mode.",
            "default": true
          },
          "engine": {
            "title": "Search method",
            "enum": [
              "auto",
              "web",
              "bff"
            ],
            "type": "string",
            "description": "Choose a search method, or leave auto for the default. Availability of optional fields can differ between methods.",
            "default": "auto"
          },
          "proxyCountry": {
            "title": "Access country",
            "type": "string",
            "description": "Keep JP for Japan. This setting does not select a different Rakuten marketplace.",
            "default": "JP"
          },
          "workerBaseUrl": {
            "title": "Developer test setting",
            "type": "string",
            "description": "Leave empty. Used only by the developer for testing."
          },
          "cursor": {
            "title": "Continue from cursor",
            "type": "string",
            "description": "Continue a run that stopped at its time limit or was aborted gracefully: paste RUN_SUMMARY.nextCursor from that run and keep the rest of the input the same. A cursor works once and is valid for 6 hours. Usually leave empty."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}