{
  "openapi": "3.0.1",
  "info": {
    "title": "Agoda Reviews Scraper: Ratings, Rooms, Stay Dates",
    "description": "Agoda guest reviews from every source Agoda shows (its own, Booking.com, Priceline) for hotels and homes by link, id, hotel name or city, no login. Rows: rating, text, liked and disliked, stay dates, room, traveller type, guest country, original text, reply. JSON, CSV, real-time API; pay per review.",
    "version": "0.1",
    "x-build-id": "JlsjdDQmoh0EMNcMT"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/automation_craft~agoda-reviews-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-automation_craft-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/automation_craft~agoda-reviews-scraper/runs": {
      "post": {
        "operationId": "runs-sync-automation_craft-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/automation_craft~agoda-reviews-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-automation_craft-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 links",
            "type": "array",
            "description": "Agoda hotel pages (\"agoda.com/hotel-boss/hotel/singapore-sg.html\", any language path), reviews pages, links with the property id (hotel_id=, selectedproperty=, propertyId=) and Agoda search links (their hotels in Agoda's order). A remote text or CSV file of links works too, and rows of another Actor's dataset (any object with a \"url\"; its \"userData\" comes back as \"customData\" on every row of that hotel).",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "hotelIds": {
            "title": "Property ids",
            "type": "array",
            "description": "Agoda property ids (digits, for example 1105091). A hotel page link names its id in its \"hotel_id\" or \"selectedproperty\" parameter.",
            "items": {
              "type": "string"
            }
          },
          "hotelNames": {
            "title": "Hotel names",
            "type": "array",
            "description": "Hotel names as Agoda shows them, with the city when the name is common (for example \"Hotel Boss Singapore\"). A name is read only when exactly one hotel Agoda's search box suggests holds every word; otherwise a free row lists the candidates.",
            "items": {
              "type": "string"
            }
          },
          "search": {
            "title": "Places",
            "type": "array",
            "description": "City, area, landmark or region names exactly as Agoda's search box names them (for example \"Bangkok\", or \"Sukhumvit, Bangkok\"); the reviews of the place's first hotels in Agoda's order are read (see \"maxHotelsPerSearch\").",
            "items": {
              "type": "string"
            }
          },
          "cityIds": {
            "title": "City ids",
            "type": "array",
            "description": "Agoda city ids (the \"city\" parameter of a search link, for example 9395 for Bangkok): the reviews of the city's first hotels.",
            "items": {
              "type": "string"
            }
          },
          "mapAreas": {
            "title": "Map areas",
            "type": "array",
            "description": "Circles {\"latitude\", \"longitude\", \"radiusKm\"} (0.1 to 50 km) or boxes {\"north\", \"south\", \"east\", \"west\"} (at most 1 degree by 1.5): the reviews of the first hotels Agoda shows inside."
          },
          "maxHotelsPerSearch": {
            "title": "Hotels per place or search",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "How many hotels of each place, city id, map area or search link are read, in Agoda's order (1 to 1000; 10 when left empty)."
          },
          "maxReviewsPerHotel": {
            "title": "Reviews per hotel",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "The most reviews read per hotel (0 reads every review Agoda shows; 100 when left empty). Agoda shows at most 10,000 reviews per source and order."
          },
          "maxItems": {
            "title": "Reviews per run",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "The most reviews the whole run delivers. One run keeps at most 300,000 reviews and 20,000 hotels."
          },
          "sortBy": {
            "title": "Order",
            "enum": [
              "newest",
              "highestRating",
              "lowestRating",
              "mostHelpful"
            ],
            "type": "string",
            "description": "The order Agoda gives the reviews in (newest first when left empty). Each order holds within each source (Agoda, Booking.com, the others): a page holds the next reviews of every source, so the rows of the sources come interleaved. Agoda offers no oldest first order."
          },
          "reviewSources": {
            "title": "Review sources",
            "type": "array",
            "description": "Which reviews: Agoda's own, the Booking.com reviews Agoda shows, Priceline and the other partners Agoda shows (every source when left empty).",
            "items": {
              "type": "string",
              "enum": [
                "agoda",
                "bookingCom",
                "priceline",
                "japanican",
                "other"
              ],
              "enumTitles": [
                "Agoda",
                "Booking.com",
                "Priceline",
                "Japanican",
                "Other partners Agoda shows"
              ]
            }
          },
          "reviewsFrom": {
            "title": "Posted on or after",
            "type": "string",
            "description": "Only reviews posted on or after this date (the day Agoda shows): YYYY-MM-DD, or an age such as \"7 days\", \"2 weeks\", \"3 months\" or \"1 year\" counted back from the run's day. Newest first in exactly one language, the walk stops at the first older page; otherwise every review is checked (Agoda lists each language newest first in turn)."
          },
          "reviewsTo": {
            "title": "Posted on or before",
            "type": "string",
            "description": "Only reviews posted on or before this date: YYYY-MM-DD, or an age such as \"1 month\". Newest first in exactly one language, the walk goes straight to the page where this date begins; otherwise every review is checked."
          },
          "topics": {
            "title": "Topics",
            "type": "array",
            "description": "Only Agoda's own reviews that Agoda tags with one of these topics (Agoda's own topic filter, one topic a request: with several, the hotel's reviews are read once per topic, a review in two topics delivered once). A topic Agoda answers with no review for a hotel is named on its walk row (topicsWithNoReview).",
            "items": {
              "type": "string",
              "enum": [
                "location",
                "service",
                "cleanliness",
                "roomSize",
                "roomComfort",
                "roomView",
                "roomDesign",
                "bedding",
                "bathroom",
                "soundproofing",
                "airConditioning",
                "inRoomAmenities",
                "kitchen",
                "breakfast",
                "restaurantOptions",
                "pool",
                "gym",
                "parking",
                "propertyFacilities",
                "checkIn",
                "checkOut",
                "valueForMoney",
                "family",
                "atmosphere",
                "transport",
                "airportAccess",
                "walkability",
                "shopping"
              ],
              "enumTitles": [
                "Location",
                "Service",
                "Cleanliness",
                "Room size",
                "Room comfort",
                "Room view",
                "Room design",
                "Bedding",
                "Bathroom",
                "Soundproofing",
                "Air conditioning",
                "In room amenities",
                "Kitchen",
                "Breakfast",
                "Restaurant options",
                "Pool",
                "Gym",
                "Parking",
                "Property facilities",
                "Check in",
                "Check-out",
                "Value for money",
                "Family",
                "Atmosphere",
                "Transport",
                "Airport access",
                "Walkability",
                "Shopping"
              ]
            }
          },
          "travellerTypes": {
            "title": "Traveller types",
            "type": "array",
            "description": "Only reviews of these traveller types (one type is Agoda's own filter; several are checked on each review).",
            "items": {
              "type": "string",
              "enum": [
                "business",
                "couples",
                "solo",
                "familiesYoungChildren",
                "familiesTeens",
                "groups"
              ],
              "enumTitles": [
                "Business travelers",
                "Couples",
                "Solo travelers",
                "Families with young children",
                "Families with teens",
                "Groups"
              ]
            }
          },
          "ratingBands": {
            "title": "Rating bands",
            "type": "array",
            "description": "Agoda's own rating bands, one or several.",
            "items": {
              "type": "string",
              "enum": [
                "exceptional",
                "excellent",
                "veryGood",
                "good",
                "belowExpectation"
              ],
              "enumTitles": [
                "Exceptional (over 9)",
                "Excellent (over 8, up to 9)",
                "Very good (over 7, up to 8)",
                "Good (over 6, up to 7)",
                "Below expectation (6 and under)"
              ]
            }
          },
          "minRating": {
            "title": "Minimum rating",
            "minimum": 1,
            "maximum": 10,
            "type": "number",
            "description": "Only reviews rated at least this (out of 10, one decimal, for example 8.4)."
          },
          "maxRating": {
            "title": "Maximum rating",
            "minimum": 1,
            "maximum": 10,
            "type": "number",
            "description": "Only reviews rated at most this (out of 10). With \"minRating\", a range: 1 to 6 reads the low rated reviews."
          },
          "languages": {
            "title": "Review languages",
            "type": "array",
            "description": "Only reviews written in these languages (Agoda's own filter, several at once): en, ja, ko, zh-cn, zh-tw, th, fr, de and the other codes of Agoda's list.",
            "items": {
              "type": "string",
              "enum": [
                "en",
                "en-gb",
                "en-au",
                "en-ca",
                "en-in",
                "en-nz",
                "en-sg",
                "en-za",
                "fr",
                "de",
                "it",
                "es",
                "ja",
                "zh-hk",
                "zh-cn",
                "ko",
                "el",
                "ru",
                "pt",
                "nl",
                "zh-tw",
                "th",
                "ms",
                "vi",
                "sv",
                "id",
                "pl",
                "nb",
                "da",
                "fi",
                "cs",
                "tr",
                "ca",
                "hu",
                "bg",
                "ro",
                "sl",
                "he",
                "ar",
                "pt-br",
                "lt",
                "lv",
                "hr",
                "et",
                "uk"
              ]
            }
          },
          "stayFrom": {
            "title": "Stayed on or after",
            "type": "string",
            "description": "Only reviews of stays that began (check-in) on or after this date, YYYY-MM-DD. Agoda gives the stay dates of its own reviews only."
          },
          "stayTo": {
            "title": "Stayed on or before",
            "type": "string",
            "description": "Only reviews of stays that began on or before this date, YYYY-MM-DD."
          },
          "seasons": {
            "title": "Seasons of the stay",
            "type": "array",
            "description": "Only reviews of stays that began in these months (Agoda's \"Time of the year\" seasons, checked on each review's check-in date; Agoda's own reviews only).",
            "items": {
              "type": "string",
              "enum": [
                "marchToMay",
                "juneToAugust",
                "septemberToNovember",
                "decemberToFebruary"
              ],
              "enumTitles": [
                "March to May",
                "June to August",
                "September to November",
                "December to February"
              ]
            }
          },
          "roomTypes": {
            "title": "Room types",
            "type": "array",
            "description": "Only reviews whose room type holds one of these texts, any case (for example \"deluxe\" or \"twin\"); up to 30. Agoda names the room of its own reviews only, in the site language (\"Superior Zimmer\" under de-de).",
            "items": {
              "type": "string"
            }
          },
          "reviewerCountries": {
            "title": "Reviewer countries",
            "type": "array",
            "description": "Only reviews by guests from these countries: a two letter code (JP, US) or, on an English site language, the English name (Japan); up to 100. Agoda gives the country of its own reviews only.",
            "items": {
              "type": "string"
            }
          },
          "keyword": {
            "title": "Keyword",
            "type": "string",
            "description": "Only reviews holding this word or phrase in their title, text, liked or disliked part (up to 100 characters, any case, as a whole word; in Chinese, Japanese, Korean and Thai anywhere in the text). Checked on each review."
          },
          "onlyWithText": {
            "title": "With text only",
            "type": "boolean",
            "description": "Leave out reviews that are a rating alone."
          },
          "minTextLength": {
            "title": "Minimum text length",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Only reviews whose title, text and liked and disliked parts run to at least this many characters."
          },
          "withPhotosOnly": {
            "title": "With guest photos only",
            "type": "boolean",
            "description": "Only reviews that carry guest photos."
          },
          "withResponseOnly": {
            "title": "With a property response only",
            "type": "boolean",
            "description": "Only reviews the property answered."
          },
          "outputFormat": {
            "title": "Output format",
            "enum": [
              "reviews",
              "nested"
            ],
            "type": "string",
            "description": "One row per review (and one hotel row per hotel), or one row per hotel with its reviews inside (at most 500 a hotel; hotels are then read one at a time)."
          },
          "hotelSummaryOnly": {
            "title": "Hotel summaries only",
            "type": "boolean",
            "description": "One row per hotel and no reviews: Agoda's overall score, review counts by source, scores by traveller type with the city average, category grades, rating bands, topics with their positive and negative share, Agoda's topic summaries and the phrases guests use most (billed Hotel summary). The review settings and filters do not apply; \"Max reviews per hotel\" is ignored."
          },
          "hotelScoresOnEveryReview": {
            "title": "Hotel scores on every review",
            "type": "boolean",
            "description": "Copy the hotel's overall score, review counts by source and category grades onto each review row."
          },
          "includeHotelDetails": {
            "title": "Property details",
            "type": "boolean",
            "description": "Add one row per hotel and stay (billed Property details): every room and offer with price, stay total with taxes, cancellation, payment, breakfast and rooms left, the exact rates per night, address, position, stars, description, facilities and policies. The stay: the settings below, else the hotel link's own, else 14 days ahead for 2 nights."
          },
          "maxHotelsWithDetails": {
            "title": "Property details rows",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "With \"includeHotelDetails\", the most Property details rows the run delivers."
          },
          "checkIn": {
            "title": "Check-in",
            "type": "string",
            "description": "Check-in date, YYYY-MM-DD (with \"checkOut\")."
          },
          "checkOut": {
            "title": "Check-out",
            "type": "string",
            "description": "Check-out date, YYYY-MM-DD (with \"checkIn\")."
          },
          "checkInDaysFromToday": {
            "title": "Check-in in this many days",
            "minimum": 0,
            "maximum": 480,
            "type": "integer",
            "description": "Instead of fixed dates: check-in this many days after the run's day (14 when no date is given)."
          },
          "nights": {
            "title": "Nights",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Instead of fixed dates: the length of the stay (2 when no date is given)."
          },
          "checkInWindowDays": {
            "title": "Check-in days in a row",
            "minimum": 1,
            "maximum": 60,
            "type": "integer",
            "description": "With \"includeHotelDetails\": one Property details row per check-in day for this many days from the check-in (each billed), for a price calendar."
          },
          "checkInWindowStepDays": {
            "title": "Days between check-ins",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "With \"checkInWindowDays\": read every n-th day (1 when left empty)."
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 36,
            "type": "integer",
            "description": "Adults of the stay (2 when left empty)."
          },
          "rooms": {
            "title": "Rooms",
            "minimum": 1,
            "maximum": 9,
            "type": "integer",
            "description": "Rooms of the stay (1 when left empty)."
          },
          "childrenAges": {
            "title": "Children's ages",
            "type": "array",
            "description": "The age of each child of the stay, 0 to 17 (for example [5, 9])."
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "Three letter currency code of the prices (USD when left empty)."
          },
          "language": {
            "title": "Site language",
            "enum": [
              "en-us",
              "fr-fr",
              "de-de",
              "it-it",
              "es-es",
              "ja-jp",
              "zh-hk",
              "zh-cn",
              "ko-kr",
              "el-gr",
              "ru-ru",
              "pt-pt",
              "nl-nl",
              "en-gb",
              "zh-tw",
              "th-th",
              "ms-my",
              "vi-vn",
              "sv-se",
              "id-id",
              "pl-pl",
              "nb-no",
              "da-dk",
              "fi-fi",
              "cs-cz",
              "tr-tr",
              "hu-hu",
              "he-il",
              "ar-ae",
              "pt-br",
              "uk-ua",
              "en-au",
              "ro-ro"
            ],
            "type": "string",
            "description": "The Agoda site language of the reviews, the Property details rows and place names (en-us when left empty), and the language Agoda translates reviews into: a review written in another language comes translated, its own words kept in originalTitle and originalText. Newest first, Agoda lists reviews of this language among the first."
          },
          "includeRawReview": {
            "title": "Raw review",
            "type": "boolean",
            "description": "Add the review exactly as Agoda served it (\"raw\") to each review row."
          },
          "maxConcurrency": {
            "title": "Hotels at once",
            "minimum": 1,
            "maximum": 3,
            "type": "integer",
            "description": "How many hotels are read side by side (3 when left empty; one at a time with the nested format and until the run delivered its first paid row)."
          },
          "requestDelaySeconds": {
            "title": "Pause between requests",
            "minimum": 0,
            "maximum": 30,
            "type": "integer",
            "description": "Extra seconds between two requests on one connection (none when left empty)."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Leave empty: the run reads Agoda through Apify's datacenter proxy, and a review page no datacenter exit answers through Apify's residential proxy (included in the price). You may give your own http:// proxy links instead, or switch Apify Proxy off to read from the run's own address."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}