{
  "openapi": "3.0.1",
  "info": {
    "title": "Agoda Rate Shopper — Hotel Comp-Set Rate Calendar, $1/1K",
    "description": "Daily hotel rate shopping on Agoda: your comp set × up to 180 check-in dates in one run. Nightly price with and without taxes, stay total, rooms left, free cancellation, pay later, sold-out + next available date, comp-set rank and median, changes-only monitor. No login.",
    "version": "0.1",
    "x-build-id": "Ngzs2YsvXUAnSdnNH"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/yugenox~agoda-rate-shopper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-yugenox-agoda-rate-shopper",
        "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/yugenox~agoda-rate-shopper/runs": {
      "post": {
        "operationId": "runs-sync-yugenox-agoda-rate-shopper",
        "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/yugenox~agoda-rate-shopper/run-sync": {
      "post": {
        "operationId": "run-sync-yugenox-agoda-rate-shopper",
        "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",
        "required": [
          "hotels"
        ],
        "properties": {
          "hotels": {
            "title": "Hotels (comp set)",
            "type": "array",
            "description": "Agoda hotel links, Agoda hotel IDs (e.g. 6779) or hotel names (\"Lily Hotel, London\"). Hotels can be in different cities. Up to 100.",
            "items": {
              "type": "string"
            }
          },
          "myHotel": {
            "title": "My hotel (optional)",
            "type": "string",
            "description": "Your own hotel (link, ID or name). It is added to the comp set and every row shows its price, the price gap in % and its rank."
          },
          "checkInDates": {
            "title": "Check-in dates",
            "type": "array",
            "description": "Exact check-in dates (YYYY-MM-DD, or relative like \"+14 days\"). Leave empty to use a window of dates starting at Start date.",
            "items": {
              "type": "string"
            }
          },
          "startDate": {
            "title": "Start date",
            "type": "string",
            "description": "First check-in date of the window: YYYY-MM-DD, \"today\", \"tomorrow\" or \"+7 days\". Relative values keep scheduled runs rolling forward.",
            "default": "tomorrow"
          },
          "windowDays": {
            "title": "Window (days)",
            "minimum": 1,
            "maximum": 180,
            "type": "integer",
            "description": "How many consecutive check-in dates to price, from Start date (1–180).",
            "default": 7
          },
          "dayStep": {
            "title": "Every Nth day",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "1 = every day; 7 = one check-in date per week across the window.",
            "default": 1
          },
          "nights": {
            "title": "Nights",
            "type": "array",
            "description": "Length of stay. Give up to 3 values (e.g. 1, 2, 7) to price each length.",
            "default": [
              "1"
            ],
            "items": {
              "type": "string"
            }
          },
          "adults": {
            "title": "Adults",
            "type": "array",
            "description": "Adults per stay. Up to 3 values (e.g. 1, 2) to price each occupancy.",
            "default": [
              "2"
            ],
            "items": {
              "type": "string"
            }
          },
          "rooms": {
            "title": "Rooms",
            "minimum": 1,
            "maximum": 9,
            "type": "integer",
            "description": "Rooms per stay.",
            "default": 1
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "3-letter currency code Agoda shows prices in (USD, EUR, THB, JPY, VND, IDR, MYR, SGD…).",
            "default": "USD"
          },
          "marketCountry": {
            "title": "Market (point of sale)",
            "type": "string",
            "description": "2-letter country the prices are shown for (US, TH, JP, SG…). Agoda prices can differ by market.",
            "default": "US"
          },
          "onlyChanged": {
            "title": "Changes only (monitor)",
            "type": "boolean",
            "description": "Write only hotel-dates whose price or availability changed since the last run (first run writes everything as \"new\"). Unchanged cells are not written and not charged.",
            "default": false
          },
          "minChangePct": {
            "title": "Minimum change %",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "In changes-only mode, ignore price moves smaller than this percentage. 0 = any change.",
            "default": 0
          },
          "maxItems": {
            "title": "Max rows",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many rows. 0 = no limit.",
            "default": 0
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Language of hotel names (en-us, th-th, ja-jp, vi-vn, id-id, ko-kr, zh-cn…).",
            "default": "en-us"
          },
          "monitorStoreName": {
            "title": "Monitor memory name",
            "type": "string",
            "description": "Key-value store that remembers last prices for changes-only mode. Use a different name for each schedule that runs at the same time.",
            "default": "agoda-rate-shopper"
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify datacenter proxy (the default) works for Agoda; no residential proxy is needed.",
            "default": {
              "useApifyProxy": true
            }
          },
          "_noResidential": {
            "title": "No residential (test drill)",
            "type": "boolean",
            "description": "Internal test switch. This actor never uses residential proxy anyway.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}