{
  "openapi": "3.0.1",
  "info": {
    "title": "Agoda Scraper — Hotels, Flights, Packages & More",
    "description": "Scrape Agoda hotels, flights, packages, transportation, activities, deals & eSIM across locales. Get hotelId, prices, ratings, areas & detail URLs. Export JSON/CSV. Pay per result — no Agoda login.",
    "version": "0.3",
    "x-build-id": "fuCMRsOXGQf6OcWXG"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lentic_clockss~agoda-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lentic_clockss-agoda-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/lentic_clockss~agoda-scraper/runs": {
      "post": {
        "operationId": "runs-sync-lentic_clockss-agoda-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/lentic_clockss~agoda-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-lentic_clockss-agoda-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": {
          "destination": {
            "title": "Destination",
            "type": "string",
            "description": "A city name in any language (Chiang Mai, 서울, 東京). Areas, landmarks and hotel names are not cities; a name Agoda does not know returns no rows. Ignored when Hotel page URLs or a City page URL are set.",
            "default": "Bangkok"
          },
          "checkin": {
            "title": "Check-in date",
            "type": "string",
            "description": "YYYY-MM-DD. Empty = three weeks from today.",
            "default": ""
          },
          "checkout": {
            "title": "Check-out date",
            "type": "string",
            "description": "YYYY-MM-DD, 1 to 30 nights after check-in. Empty = two nights.",
            "default": ""
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Adult guests.",
            "default": 2
          },
          "children": {
            "title": "Children",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Children. Searches with children take longer (they run in a browser).",
            "default": 0
          },
          "rooms": {
            "title": "Rooms",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Rooms.",
            "default": 1
          },
          "maxResults": {
            "title": "Max results per search or hotel URL",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Most rows for each destination search, city page URL, or hotel page URL. Default 70; larger numbers are collected in parts of 70. Hotels and reviews count together. The whole run stops at your maximum total charge. Free Apify plan: up to 200 rows per run and 10 runs of this Actor.",
            "default": 70
          },
          "enrichDetails": {
            "title": "Read hotel pages",
            "type": "boolean",
            "description": "Fill the first hotels from their Agoda pages: description, facilities, FAQ and full address. Reviews are separate rows only when includeReviews is on.",
            "default": true
          },
          "enrichLimit": {
            "title": "Hotel pages to read",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "How many of the first hotels to fill from their pages.",
            "default": 1
          },
          "includeReviews": {
            "title": "Return guest reviews",
            "type": "boolean",
            "description": "Emit each sampled guest review as its own billed row. Hotel and review rows share maxResults.",
            "default": false
          },
          "includeSponsored": {
            "title": "Include sponsored hotels",
            "type": "boolean",
            "description": "Keep hotels Agoda marks as sponsored.",
            "default": false
          },
          "domain": {
            "title": "Agoda site",
            "type": "string",
            "description": "www.agoda.com, or a country site such as www.agoda.co.th or www.agoda.co.jp (sets language and currency).",
            "default": "www.agoda.com"
          },
          "locale": {
            "title": "Language (www.agoda.com)",
            "type": "string",
            "description": "en-us, ja-jp, th-th, ko-kr, zh-cn, ... Sets the currency too. A country site overrides it.",
            "default": "en-us"
          },
          "regionId": {
            "title": "Agoda city ID",
            "type": "string",
            "description": "Optional Agoda city ID (Bangkok = 9395). Overrides the destination. Ignored when Hotel page URLs or a City page URL are set.",
            "default": ""
          },
          "detailUrls": {
            "title": "Hotel page URLs",
            "type": "array",
            "description": "Optional Agoda hotel pages (https://www.agoda.com/.../hotel/....html), up to 20. Returns one row per page that could be read; no prices. When set, City page URL, destination and City ID are ignored.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "cityPageUrl": {
            "title": "City page URL",
            "type": "string",
            "description": "Optional https://www.agoda.com/city/*.html page. Returns the hotel names and links it lists, without dates or prices. When set, destination and City ID are ignored (Hotel page URLs still win).",
            "default": ""
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}