{
  "openapi": "3.0.1",
  "info": {
    "title": "Agoda Reviews Scraper",
    "description": "Agoda reviews scraper: rating, title, text with positives and negatives, review and stay dates, traveller type, room, source (Agoda, Booking.com) and hotel response for many hotels per run. Per-hotel score, sub-scores and response rate. Monitor mode returns only new reviews. No reviewer data.",
    "version": "0.1",
    "x-build-id": "mjj8zIH4sIma91iHy"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/datahamster~agoda-reviews-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-datahamster-agoda-reviews-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/datahamster~agoda-reviews-scraper/runs": {
      "post": {
        "operationId": "runs-sync-datahamster-agoda-reviews-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/datahamster~agoda-reviews-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-datahamster-agoda-reviews-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": {
          "startUrls": {
            "title": "Agoda hotel URLs or ids",
            "type": "array",
            "description": "Hotel pages from any Agoda locale, one per line, e.g. https://www.agoda.com/marina-bay-sands/hotel/singapore-sg.html, or numeric Agoda hotel ids (185945). The same hotel given twice, as a URL and as an id, is read once.",
            "default": [
              "https://www.agoda.com/marina-bay-sands/hotel/singapore-sg.html",
              "https://www.agoda.com/sai-kaew-beach-resort/hotel/ko-samet-th.html"
            ],
            "items": {
              "type": "string"
            }
          },
          "maxReviewsPerHotel": {
            "title": "Max reviews per hotel",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop a hotel after this many review rows, newest first, counted over all review sources together. Example: 100.",
            "default": 100
          },
          "sources": {
            "title": "Review sources",
            "type": "array",
            "description": "Keep only reviews from these sources. Empty = every source Agoda shows.",
            "items": {
              "type": "string",
              "enum": [
                "agoda",
                "booking",
                "other"
              ],
              "enumTitles": [
                "Agoda",
                "Booking.com",
                "Other (Priceline.com, Japanican.com and others)"
              ]
            },
            "default": []
          },
          "travellerTypes": {
            "title": "Traveller types",
            "type": "array",
            "description": "Keep only reviews from these kinds of guests. With exactly one type Agoda itself returns only that type, so the depth applies to it. Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "BUSINESS",
                "COUPLE",
                "SOLO",
                "FAMILY_YOUNG_CHILDREN",
                "FAMILY_TEENS",
                "GROUP"
              ],
              "enumTitles": [
                "Business traveller",
                "Couple",
                "Solo traveller",
                "Family with young children",
                "Family with teens",
                "Group"
              ]
            },
            "default": []
          },
          "minRating": {
            "title": "Minimum rating",
            "minimum": 1,
            "maximum": 10,
            "type": "number",
            "description": "Keep only reviews rated at least this on Agoda's 1 to 10 scale. Example: 9."
          },
          "maxRating": {
            "title": "Maximum rating",
            "minimum": 1,
            "maximum": 10,
            "type": "number",
            "description": "Keep only reviews rated at most this, e.g. 6 for complaints."
          },
          "languages": {
            "title": "Review languages",
            "type": "array",
            "description": "Agoda's own review-language filter. Empty = all languages. Texts come in English when Agoda has a translation (isTranslated tells you), and language is the review's original language.",
            "items": {
              "type": "string",
              "enum": [
                "en",
                "fr",
                "de",
                "it",
                "es",
                "ja",
                "zh-HK",
                "zh-CN",
                "ko",
                "ru",
                "pt",
                "nl",
                "en-GB",
                "en-AU",
                "en-SG",
                "zh-TW",
                "th",
                "ms",
                "sv",
                "pl",
                "no",
                "da",
                "fi",
                "tr",
                "hu",
                "ro",
                "he",
                "id",
                "vi"
              ],
              "enumTitles": [
                "English",
                "French",
                "German",
                "Italian",
                "Spanish",
                "Japanese",
                "Chinese (Hong Kong)",
                "Chinese (Simplified)",
                "Korean",
                "Russian",
                "Portuguese",
                "Dutch",
                "English (UK)",
                "English (Australia)",
                "English (Singapore)",
                "Chinese (Taiwan)",
                "Thai",
                "Malay",
                "Swedish",
                "Polish",
                "Norwegian",
                "Danish",
                "Finnish",
                "Turkish",
                "Hungarian",
                "Romanian",
                "Hebrew",
                "Indonesian",
                "Vietnamese"
              ]
            },
            "default": []
          },
          "hotelResponse": {
            "title": "Hotel response",
            "enum": [
              "any",
              "answered",
              "unanswered"
            ],
            "type": "string",
            "description": "Unanswered = the reviews a hotel still has to reply to.",
            "default": "any"
          },
          "since": {
            "title": "Only reviews since",
            "type": "string",
            "description": "A date (2026-01-31) or a period (30 days, 2 weeks, 6 months). Each source stops at its first review older than this, so older pages are never read."
          },
          "includeHotelSummary": {
            "title": "Add a summary row per hotel",
            "type": "boolean",
            "description": "One extra row per hotel (rowType hotel) with Agoda's score, sub-scores and their city averages, score distribution, review counts per source, the traveller-type mix and the hotel-response rate and response time over the reviews read. Charged as one result.",
            "default": true
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many results (you are charged only for pushed items)",
            "default": 1000
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "scrape",
              "monitor"
            ],
            "type": "string",
            "description": "scrape = full results; monitor = only new/changed items since the previous run of this task",
            "default": "scrape"
          },
          "monitorStateId": {
            "title": "Monitor state id",
            "type": "string",
            "description": "Optional state id when not running as a saved task (monitor mode)"
          },
          "webhookUrl": {
            "title": "Webhook URL",
            "type": "string",
            "description": "POST a change summary here in monitor mode"
          },
          "telegramBotToken": {
            "title": "Telegram bot token",
            "type": "string",
            "description": "Optional: bot token for monitor-mode change summaries"
          },
          "telegramChatId": {
            "title": "Telegram chat id",
            "type": "string",
            "description": "Optional: chat id that receives monitor-mode summaries"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}