{
  "openapi": "3.0.1",
  "info": {
    "title": "Rakuten Ichiba Scraper: Japan Products, Reviews & Rankings",
    "description": "Scrape Rakuten Ichiba (rakuten.co.jp) by keyword, genre, shop or link: price in JPY, price range, points, shipping, rating, reviews and shop. Add best-seller rankings, full item details with every variant's price, JAN code and stock, and buyer reviews.",
    "version": "0.0",
    "x-build-id": "ufoWYeNvfgK5GuRyt"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/memo23~rakuten-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-memo23-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/memo23~rakuten-scraper/runs": {
      "post": {
        "operationId": "runs-sync-memo23-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/memo23~rakuten-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-memo23-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": {
          "searchKeywords": {
            "title": "Keywords to search",
            "type": "array",
            "description": "Words to search Rakuten Ichiba for, in Japanese or English (for example ワイヤレスイヤホン or wireless earbuds). Each keyword is one search.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Rakuten links",
            "type": "array",
            "description": "Any rakuten.co.jp link: a search results page (its sort and price filters are kept), a category page (rakuten.co.jp/category/...), a shop (rakuten.co.jp/shopname/), an item page (item.rakuten.co.jp/...), a ranking page (ranking.rakuten.co.jp/...) or an item's review page (review.rakuten.co.jp/item/...).",
            "items": {
              "type": "string"
            }
          },
          "shops": {
            "title": "Shops (whole catalogue)",
            "type": "array",
            "description": "Shop codes or shop links. The code is the part after rakuten.co.jp/ or item.rakuten.co.jp/, for example jblstore or rakuten24. Every item the shop lists is returned.",
            "items": {
              "type": "string"
            }
          },
          "rankingGenres": {
            "title": "Best-seller rankings (genre ids)",
            "type": "array",
            "description": "Genre ids whose Rakuten best-seller ranking you want, up to 1,000 ranked items each. Use 0 for the ranking of all of Rakuten. A genre id is the number in a rakuten.co.jp/category/ link, for example 502835 for headphones and earphones.",
            "items": {
              "type": "string"
            }
          },
          "rankingPeriod": {
            "title": "Ranking period",
            "enum": [
              "daily",
              "weekly",
              "monthly",
              "realtime"
            ],
            "type": "string",
            "description": "Which ranking to read for the genres above. Rakuten updates the real-time ranking every hour.",
            "default": "daily"
          },
          "genreId": {
            "title": "Genre (category) id",
            "type": "string",
            "description": "Limit keyword searches and shop catalogues to one Rakuten genre, for example 502835 (headphones and earphones). With no keywords or shops, the whole genre is listed."
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "standard",
              "price_asc",
              "price_desc",
              "price_shipping_asc",
              "price_shipping_desc",
              "newest",
              "most_reviews",
              "top_rated"
            ],
            "type": "string",
            "description": "Order of search, genre and shop results. Rankings keep their own order.",
            "default": "standard"
          },
          "minPrice": {
            "title": "Minimum price (JPY)",
            "minimum": 0,
            "type": "integer",
            "description": "Only items at or above this price in yen, tax included."
          },
          "maxPrice": {
            "title": "Maximum price (JPY)",
            "minimum": 0,
            "type": "integer",
            "description": "Only items at or below this price in yen, tax included."
          },
          "includeSponsored": {
            "title": "Keep sponsored listings",
            "type": "boolean",
            "description": "Rakuten places up to 5 paid listings at the top of each search page. They are left out unless this is on; when on, those rows carry sponsored: true.",
            "default": false
          },
          "maxItemsPerInput": {
            "title": "Max items per input",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Most products to return for each keyword, link, shop or ranking. A search returns up to 6,750 items (150 pages of 45), a ranking up to 1,000.",
            "default": 100
          },
          "includeDetails": {
            "title": "Include full item details",
            "type": "boolean",
            "description": "Open each item's page for its description, specifications, breadcrumbs, reference price, stock status and every variant (colour, size and so on) with its own price, JAN code and stock count. Charged per item page. Item links always come with full details.",
            "default": false
          },
          "includeReviews": {
            "title": "Include buyer reviews",
            "type": "boolean",
            "description": "Add each item's buyer reviews as separate rows (rowType: review): rating, title, text, reviewer age band and gender, post and order date, helpful votes, the variant bought and photos. Charged per review.",
            "default": false
          },
          "maxReviewsPerItem": {
            "title": "Max reviews per item",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Most reviews to return for each item, in Rakuten's own order (30 a page).",
            "default": 30
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}