{
  "openapi": "3.0.1",
  "info": {
    "title": "Traveloka Hotel & Accommodation Scraper",
    "description": "Scrape Traveloka hotels, villas and apartments: profile, coordinates, star rating, facilities, room inventory and a full month of nightly rates per property, with an automatic weekday-versus-weekend price comparison. HTTP-only, no browser.",
    "version": "0.0",
    "x-build-id": "Y1GQzyH12XXVpscjE"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/fanndev~traveloka-hotel-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-fanndev-traveloka-hotel-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/fanndev~traveloka-hotel-scraper/runs": {
      "post": {
        "operationId": "runs-sync-fanndev-traveloka-hotel-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/fanndev~traveloka-hotel-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-fanndev-traveloka-hotel-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": {
          "hotelUrls": {
            "title": "Property URLs",
            "type": "array",
            "description": "Traveloka hotel, villa or apartment page URLs, for example https://www.traveloka.com/id-id/hotel/indonesia/hotel-borobudur-jakarta-7584. The numeric ID at the end of the URL is what matters; the slug is ignored.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "hotelIds": {
            "title": "Property IDs",
            "type": "array",
            "description": "Bare numeric Traveloka property IDs, if you already have them from a previous run.",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Property name searches",
            "type": "array",
            "description": "Property names to look up, one per line, for building a competitor set. This matches PROPERTY NAMES, not cities: 'Kempinski Jakarta' works, 'hotels in Jakarta' does not. Listing every hotel in a city is not available (see README).",
            "items": {
              "type": "string"
            }
          },
          "maxPropertiesPerQuery": {
            "title": "Max properties per search",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many matching properties to keep from each entry in 'Property name searches'.",
            "default": 10
          },
          "sitemapSweepLimit": {
            "title": "Sitemap sweep size",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Collect this many property IDs from Traveloka's public hotel sitemaps for broad market sampling. Leave at 0 to skip. Each sitemap leaf holds 5,000 properties.",
            "default": 0
          },
          "sitemapSkipLeaves": {
            "title": "Sitemap leaves to skip",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "Start the sitemap sweep this many leaf files in, so repeat runs sample different properties instead of the same first page.",
            "default": 0
          },
          "maxProperties": {
            "title": "Max properties per run",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Hard cap on how many properties this run scrapes, across all input sources.",
            "default": 50
          },
          "checkInDate": {
            "title": "Check-in date",
            "type": "string",
            "description": "Stay date in YYYY-MM-DD, used for the room list and as the first month of the price calendar. Defaults to 30 days from today."
          },
          "nights": {
            "title": "Nights",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Length of stay used when requesting the room list.",
            "default": 1
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Number of adult guests priced for. Rates change with occupancy.",
            "default": 2
          },
          "rooms": {
            "title": "Rooms",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "Number of rooms priced for.",
            "default": 1
          },
          "calendarMonths": {
            "title": "Price calendar months",
            "minimum": 1,
            "maximum": 12,
            "type": "integer",
            "description": "How many consecutive months of nightly rates to pull per property, starting at the check-in month. One request per month; each returns up to 31 nightly prices.",
            "default": 1
          },
          "includePriceCalendar": {
            "title": "Include nightly price calendar",
            "type": "boolean",
            "description": "Pull nightly rates and the weekday-versus-weekend summary. Turn off for a faster profile-only run.",
            "default": true
          },
          "includeRooms": {
            "title": "Include room inventory",
            "type": "boolean",
            "description": "Pull room names, photos, bedding, size and amenities. Note that per-room nightly rates are not available (see README); rates come from the price calendar.",
            "default": true
          },
          "includeReviewSummary": {
            "title": "Include review summary",
            "type": "boolean",
            "description": "Pull the overall guest rating and review count for each property.",
            "default": true
          },
          "locale": {
            "title": "Locale",
            "enum": [
              "en-id",
              "id-id",
              "en-sg",
              "en-my",
              "th-th",
              "vi-vn"
            ],
            "type": "string",
            "description": "Traveloka locale. This drives the language of facility names, room descriptions and labels.",
            "default": "en-id"
          },
          "currency": {
            "title": "Currency",
            "enum": [
              "IDR",
              "USD",
              "SGD",
              "MYR",
              "THB",
              "VND",
              "AUD",
              "EUR"
            ],
            "type": "string",
            "description": "Currency for all prices in the output.",
            "default": "IDR"
          },
          "requestDelaySeconds": {
            "title": "Delay between requests",
            "type": "string",
            "description": "Seconds to pause between API calls. Raise it if you see repeated 429 or 5xx responses.",
            "default": "0.4"
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Proxy settings. Residential is the default: Traveloka's AWS WAF answers a captcha to the session bootstrap on most Apify datacenter IPs. If you pick a datacenter group, the actor tries it first and falls back to residential sessions when it is challenged.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}