{
  "openapi": "3.0.1",
  "info": {
    "title": "Japan Hotel Rates and Date Watchlist",
    "description": "Monitor dated room-and-plan stay prices for Japan hotels on Jalan and Rakuten across multiple properties and dates. Preserve exact source IDs and unknown fees; optionally compare verified Haneda same-room totals.",
    "version": "0.1",
    "x-build-id": "8VBBzGOvrsfjn4y7y"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/jpmarketdata~japan-hotel-refundable-total-comparison/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-jpmarketdata-japan-hotel-refundable-total-comparison",
        "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/jpmarketdata~japan-hotel-refundable-total-comparison/runs": {
      "post": {
        "operationId": "runs-sync-jpmarketdata-japan-hotel-refundable-total-comparison",
        "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/jpmarketdata~japan-hotel-refundable-total-comparison/run-sync": {
      "post": {
        "operationId": "run-sync-jpmarketdata-japan-hotel-refundable-total-comparison",
        "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": {
          "hotel": {
            "title": "Supported hotel",
            "enum": [
              "royal-park-tokyo-haneda"
            ],
            "type": "string",
            "description": "Optional legacy comparison mode only. Supply hotel,checkIn,checkOut; do not combine with targets/stays. Exact same-room all-in comparison is verified for Royal Park Haneda Superior Twin only."
          },
          "checkIn": {
            "title": "Check-in date",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Explicit future YYYY-MM-DD in Asia/Tokyo. No date default. Stay is 1–7 nights and must finish before the tax amendment affects any charged night."
          },
          "checkOut": {
            "title": "Check-out date",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Explicit YYYY-MM-DD, 1–7 nights after check-in and no later than 2027-04-01. Missing nightly lodging bases prevent multi-night all-in ranking; stay averages cannot determine nightly tax brackets."
          },
          "freeCancellationBy": {
            "title": "Required free-cancellation date",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Optional YYYY-MM-DD cutoff for the curated comparison. Omit to compare ordinary supported-room rates without a required refund deadline. Refund facts still remain visible."
          },
          "maxOffersPerProvider": {
            "title": "Offer limit per provider",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Rate watchlist: default 50,range1–50 room/plan entries per provider/property/stay. Curated comparison: default 8,maximum8 detail requests. Source order is preserved; truncation cannot establish a global minimum."
          },
          "requireLocalPayment": {
            "title": "Require pay at hotel",
            "type": "boolean",
            "description": "Optional curated-comparison filter, default false. Local payment uncertainty or denial prevents ranking only when this is true; ordinary rate observations retain payment facts without this gate."
          },
          "targets": {
            "title": "Hotel rate watchlist",
            "minItems": 1,
            "maxItems": 10,
            "type": "array",
            "description": "Main rate-shopping mode:1–10 provider/property-ID objects. Jalan IDs are six digits from /yadNNNNNN/ URLs; Rakuten IDs are numeric from /hotelinfo/plan/ID. IDs are independent and never converted or assumed equivalent. Live source identity is checked. Do not supply legacy hotel/checkIn/checkOut fields.",
            "items": {
              "type": "object",
              "properties": {
                "provider": {
                  "type": "string",
                  "enum": [
                    "jalan",
                    "rakuten"
                  ],
                  "title": "Booking provider",
                  "description": "Choose jalan or rakuten for this property observation."
                },
                "hotelId": {
                  "type": "string",
                  "title": "Hotel ID",
                  "description": "Use the provider-native hotel ID: six digits from a Jalan yad URL, or a positive numeric Rakuten hotel ID. IDs are not converted across providers."
                }
              },
              "required": [
                "provider",
                "hotelId"
              ],
              "additionalProperties": false
            }
          },
          "stays": {
            "title": "Stays to monitor",
            "minItems": 1,
            "maxItems": 7,
            "type": "array",
            "description": "1–7 unique checkIn/checkOut pairs,1–7 nights each; future check-in within365 days in Asia/Tokyo. At most20 target/stay combinations in one run. The provider echoes exact dates and occupancy.",
            "items": {
              "type": "object",
              "properties": {
                "checkIn": {
                  "type": "string",
                  "title": "Check-in date",
                  "description": "Future local check-in date in YYYY-MM-DD form for this stay."
                },
                "checkOut": {
                  "type": "string",
                  "title": "Check-out date",
                  "description": "Local checkout date in YYYY-MM-DD form, one to seven nights after check-in."
                }
              },
              "required": [
                "checkIn",
                "checkOut"
              ],
              "additionalProperties": false
            }
          },
          "adults": {
            "title": "Adults in one room",
            "minimum": 1,
            "maximum": 4,
            "type": "integer",
            "description": "Rate watchlist only: 1–4 adults,default 2,one room and no children. Curated comparison remains exactlytwo adults."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}