{
  "openapi": "3.0.1",
  "info": {
    "title": "Rakuten Travel Room Rates Scraper (楽天トラベル)",
    "description": "Scrape every plan and room Rakuten Travel (楽天トラベル) prices for a hotel and your dates. Just add hotel numbers, URLs or Japanese names and get stay totals with and without tax, per-night and per-person prices, meals, payment, points, rooms left and hotel details. $3.50 per 1,000 priced hotel-stays.",
    "version": "1.0",
    "x-build-id": "k4Hxbi7l9uaOb00Db"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/boncross~rakuten-travel-room-rates/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-boncross-rakuten-travel-room-rates",
        "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/boncross~rakuten-travel-room-rates/runs": {
      "post": {
        "operationId": "runs-sync-boncross-rakuten-travel-room-rates",
        "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/boncross~rakuten-travel-room-rates/run-sync": {
      "post": {
        "operationId": "run-sync-boncross-rakuten-travel-room-rates",
        "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": {
          "hotels": {
            "title": "Hotels",
            "type": "array",
            "description": "Rakuten hotel numbers (7365), any travel.rakuten.co.jp / hotel.travel.rakuten.co.jp / review.travel.rakuten.co.jp URL, or Japanese hotel names (resolved through Rakuten's keyword search; English names are not indexed there)."
          },
          "startUrls": {
            "title": "Start URLs (bulk upload)",
            "type": "array",
            "description": "Rakuten Travel page addresses, with the option to load them in bulk from a file, a Google Sheet or a remote list. Use this when you have more links than you want to paste. Combined with anything in the list above.",
            "default": [],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxItems": {
            "title": "Maximum hotel-stays for the whole run",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many priced hotel-stays across the run: one hotel and one stay, with all its plans and rooms. 0 means no limit. Sold-out and unchanged stays are not counted.",
            "default": 0
          },
          "maxRows": {
            "title": "Maximum rows for the whole run",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many rows (one per plan and room when rows are flattened, one per stay otherwise). The last hotel-stay is cut to fit, keeping its cheapest offers, and billed as one stay. 0 means no limit; the run stops at whichever cap it reaches first.",
            "default": 0
          },
          "maxRowsPerStay": {
            "title": "Maximum rows per hotel-stay (flattened rows)",
            "minimum": 1,
            "maximum": 300,
            "type": "integer",
            "description": "With flattened rows, keep at most this many offers per hotel-stay, cheapest first (up to 300). A stay is billed once however many rows it has.",
            "default": 300
          },
          "checkIn": {
            "title": "Check-in (YYYY-MM-DD)",
            "type": "string",
            "description": "Leave empty to use checkinDaysAhead. Lowercase `checkin` also works.",
            "default": ""
          },
          "checkOut": {
            "title": "Check-out (YYYY-MM-DD)",
            "type": "string",
            "description": "Leave empty to use nights. Lowercase `checkout` also works.",
            "default": ""
          },
          "checkInDaysAhead": {
            "title": "Check-in days ahead",
            "minimum": 0,
            "maximum": 365,
            "type": "integer",
            "description": "Used when checkin is empty. Lowercase `checkinDaysAhead` also works.",
            "default": 30
          },
          "nights": {
            "title": "Nights",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Used when checkout is empty.",
            "default": 1
          },
          "stays": {
            "title": "Multiple stays",
            "maxItems": 366,
            "type": "array",
            "description": "Optional list of {\"checkin\", \"checkout\"} pairs; every hotel is priced for every stay (overrides the single dates). Up to 366 stays a run.",
            "default": []
          },
          "adults": {
            "title": "Adults per room",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "1–10.",
            "default": 2
          },
          "rooms": {
            "title": "Rooms",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "1–10.",
            "default": 1
          },
          "children": {
            "title": "Children",
            "type": "object",
            "description": "Rakuten's child categories per room: upperElementary (小学生高学年), lowerElementary (小学生低学年), infantMealBed (幼児 食事・布団付), infantMeal (幼児 食事のみ), infantBed (幼児 布団のみ), infantNone (幼児 食事・布団不要). Counts, e.g. {\"lowerElementary\": 1}.",
            "default": {}
          },
          "availableOnly": {
            "title": "Available rooms only",
            "type": "boolean",
            "description": "Drop plan × room rows Rakuten shows without a price (sold out for these dates or outside the plan's capacity).",
            "default": true
          },
          "refundableOnly": {
            "title": "Refundable plans only",
            "type": "boolean",
            "description": "Drop plans named 返金不可 (non-refundable).",
            "default": false
          },
          "breakfastOnly": {
            "title": "Breakfast included only",
            "type": "boolean",
            "description": "Keep rows with 朝食あり.",
            "default": false
          },
          "dinnerOnly": {
            "title": "Dinner included only",
            "type": "boolean",
            "description": "Keep rows with 夕食あり.",
            "default": false
          },
          "minTotalForStay": {
            "title": "Minimum stay total (JPY)",
            "minimum": 0,
            "type": "integer",
            "description": "Post-filter on the tax-inclusive stay total.",
            "default": 0
          },
          "maxTotalForStay": {
            "title": "Maximum stay total (JPY)",
            "minimum": 0,
            "type": "integer",
            "description": "Post-filter on the tax-inclusive stay total.",
            "default": 0
          },
          "includeHotelDetails": {
            "title": "Include hotel details",
            "type": "boolean",
            "description": "Also return the hotel's address, check-in and check-out times, access, parking, FAQ and coordinates. Included in the hotel-priced price.",
            "default": false
          },
          "includeDescriptions": {
            "title": "Include plan descriptions",
            "type": "boolean",
            "description": "Plan text can be long; switch off to keep records small.",
            "default": true
          },
          "flattenRooms": {
            "title": "One row per plan × room",
            "type": "boolean",
            "description": "Instead of one record per hotel × stay with an offers array.",
            "default": false
          },
          "priceStoreName": {
            "title": "Price memory store",
            "type": "string",
            "description": "Key-value store name remembering each hotel-stay's lowest total, so previousLowestTotal / priceChange are filled on later runs.",
            "default": ""
          },
          "onlyNewOrChanged": {
            "title": "Only new or changed",
            "type": "boolean",
            "description": "With a price store: skip hotel-stays whose lowest total is unchanged.",
            "default": false
          },
          "delayMs": {
            "title": "Delay between requests (ms)",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Optional pause before each call, in milliseconds. 0 (the default) runs as fast as the parallel limit allows.",
            "default": 0
          },
          "maxConcurrency": {
            "title": "Parallel requests",
            "minimum": 1,
            "maximum": 32,
            "type": "integer",
            "description": "How many requests run at once across the whole run. The default is the fastest level measured clean; lower it only if a run reports refusals or errors.",
            "default": 16
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}