{
  "openapi": "3.0.1",
  "info": {
    "title": "Traveloka Hotel Scraper – Prices, Deals & Availability",
    "description": "Scrape Traveloka hotel prices and availability for any destination and dates. Get nightly and total prices, discounts, free cancellation, star ratings, review scores, photos and GPS. Filter by price, stars, rating, property type and facilities. 24 currencies. Export JSON, CSV or Excel.",
    "version": "0.0",
    "x-build-id": "Fwr8gaGDiO7NqaSmd"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/knagymate~traveloka-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-knagymate-traveloka-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/knagymate~traveloka-scraper/runs": {
      "post": {
        "operationId": "runs-sync-knagymate-traveloka-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/knagymate~traveloka-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-knagymate-traveloka-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": {
          "search": {
            "title": "Destination",
            "type": "string",
            "description": "City, region, area or country to search, as you would type it into Traveloka's search box, e.g. Berlin, Bali, Bangkok or Seminyak.",
            "default": "Berlin"
          },
          "searchUrl": {
            "title": "Search URL",
            "type": "string",
            "description": "Optional full URL of a Traveloka hotel search results page (https://www.traveloka.com/en-en/hotel/search?spec=...). When set, it overrides the destination, dates, guests, sorting, filters and currency fields."
          },
          "maxItems": {
            "title": "Max properties",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of properties to scrape.",
            "default": 100
          },
          "checkIn": {
            "title": "Check-in date",
            "type": "string",
            "description": "Check-in date, YYYY-MM-DD. Leave both dates empty to search a 1-night stay 7 days from today."
          },
          "checkOut": {
            "title": "Check-out date",
            "type": "string",
            "description": "Check-out date, YYYY-MM-DD, later than the check-in date."
          },
          "rooms": {
            "title": "Number of rooms",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "Number of rooms to book.",
            "default": 1
          },
          "adults": {
            "title": "Number of adults",
            "minimum": 1,
            "maximum": 32,
            "type": "integer",
            "description": "Number of adults, at least one per room.",
            "default": 2
          },
          "children": {
            "title": "Number of children",
            "minimum": 0,
            "maximum": 12,
            "type": "integer",
            "description": "Number of children (0–17 years).",
            "default": 0
          },
          "childrenAges": {
            "title": "Children's ages",
            "type": "array",
            "description": "Age of each child (0–17), in the same order. Children without an age are searched as 8 years old.",
            "items": {
              "type": "integer"
            },
            "default": []
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "popularity",
              "lowest_price",
              "highest_price",
              "review_score"
            ],
            "type": "string",
            "description": "Order of the results, as on Traveloka's search page.",
            "default": "popularity"
          },
          "minPrice": {
            "title": "Minimum price per night",
            "minimum": 0,
            "type": "integer",
            "description": "Lowest nightly price per room, in the selected currency."
          },
          "maxPrice": {
            "title": "Maximum price per night",
            "minimum": 1,
            "type": "integer",
            "description": "Highest nightly price per room, in the selected currency."
          },
          "starRating": {
            "title": "Star rating",
            "type": "array",
            "description": "Only properties with any of these star ratings.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "5"
              ],
              "enumTitles": [
                "1 star",
                "2 stars",
                "3 stars",
                "4 stars",
                "5 stars"
              ]
            },
            "default": []
          },
          "minReviewScore": {
            "title": "Minimum review score",
            "enum": [
              "any",
              "7",
              "8",
              "9"
            ],
            "type": "string",
            "description": "Lowest guest review score, out of 10.",
            "default": "any"
          },
          "propertyTypes": {
            "title": "Property types",
            "type": "array",
            "description": "Only properties of any of these types. Leave empty for all types.",
            "items": {
              "type": "string",
              "enum": [
                "HOTEL",
                "APARTMENT",
                "VILLA",
                "RESORT",
                "HOSTEL",
                "GUESTHOUSE",
                "BED_AND_BREAKFAST",
                "RYOKAN"
              ],
              "enumTitles": [
                "Hotel",
                "Apartment",
                "Villa",
                "Resort",
                "Hostel",
                "Guesthouse",
                "B&B",
                "Ryokan"
              ]
            },
            "default": []
          },
          "facilities": {
            "title": "Facilities",
            "type": "array",
            "description": "Only properties that offer the selected facilities.",
            "items": {
              "type": "string",
              "enum": [
                "PARKING",
                "BREAKFAST",
                "EARLY_CHECK_IN",
                "AIRPORT_TRANSFER",
                "LATE_CHECK_OUT",
                "POOL",
                "24_HOUR_FRONT_DESK",
                "LUGGAGE_STORAGE",
                "RESTAURANT",
                "ACCESSIBILITY",
                "SMOKE_FREE",
                "SPA",
                "ELEVATOR",
                "FRONT_DESK",
                "LAUNDRY",
                "MULTILINGUAL_STAFF",
                "SMOKING_AREA",
                "FITNESS",
                "CHILDREN_POOL",
                "BEACH_ACCESS",
                "WATERSPORTS",
                "PETS_ALLOWED",
                "MEETING_FACILITY",
                "LOCKERS",
                "CONFERENCE_ROOM",
                "ROOM_SERVICE",
                "CHILDREN_FACILITIES",
                "RV_BUS_TRUCK_PARKING",
                "OUTDOOR_HEATED_POOL"
              ],
              "enumTitles": [
                "Parking",
                "Breakfast available",
                "Early check-in",
                "Airport transfer",
                "Late check-out",
                "Pool",
                "24-hour front desk",
                "Luggage storage",
                "Restaurant",
                "Accessibility",
                "Smoke-free",
                "Spa & wellness",
                "Elevator",
                "Front desk",
                "Laundry",
                "Multilingual staff",
                "Smoking area",
                "Fitness center",
                "Children pool",
                "Beach access",
                "Watersports",
                "Pets allowed",
                "Meeting facilities",
                "Lockers",
                "Conference room",
                "Room service",
                "Children facilities",
                "Large vehicle parking",
                "Heated pool"
              ]
            },
            "default": []
          },
          "uniqueFacilities": {
            "title": "Activities & unique facilities",
            "type": "array",
            "description": "Only properties that offer the selected activities or unique facilities.",
            "items": {
              "type": "string",
              "enum": [
                "ENTERTAINMENT",
                "BAR",
                "INDOOR_SPORTS",
                "SHOPPING",
                "GOLF",
                "TENNIS",
                "SPORTS_COURT",
                "ROMANTIC_PACKAGE",
                "WINERY",
                "WATER_PARK",
                "CYCLING",
                "HORSE_RIDING",
                "CASINO",
                "THEME_PARK",
                "WELLNESS_CLASS",
                "CRUISE",
                "CULINARY"
              ],
              "enumTitles": [
                "Entertainment area",
                "Bars & pub",
                "Indoor sports",
                "Shopping area",
                "Golf",
                "Tennis",
                "Sports court",
                "Romantic package",
                "Winery",
                "Water park access",
                "Cycling",
                "Horse riding",
                "Casino",
                "Theme park access",
                "Wellness class",
                "Cruise service",
                "Culinary experience"
              ]
            },
            "default": []
          },
          "roomFacilities": {
            "title": "Room facilities",
            "type": "array",
            "description": "Only properties with rooms that have the selected facilities.",
            "items": {
              "type": "string",
              "enum": [
                "REFRIGERATOR",
                "CONNECTING_ROOMS",
                "NON_SMOKING_ROOM",
                "KITCHENETTE",
                "AIR_CONDITIONING",
                "HAIR_DRYER",
                "BATHTUB",
                "HEATER",
                "FAMILY_ROOM"
              ],
              "enumTitles": [
                "Refrigerator",
                "Connecting rooms",
                "Non-smoking room",
                "Kitchenette",
                "Air conditioning",
                "Hair dryer",
                "Bathtub",
                "Heater",
                "Family room"
              ]
            },
            "default": []
          },
          "currency": {
            "title": "Currency",
            "enum": [
              "USD",
              "EUR",
              "GBP",
              "IDR",
              "MYR",
              "SGD",
              "THB",
              "PHP",
              "VND",
              "AUD",
              "HKD",
              "MMK",
              "TWD",
              "JPY",
              "CHF",
              "CAD",
              "NZD",
              "INR",
              "KRW",
              "KHR",
              "TRY",
              "SAR",
              "BRL",
              "CNY"
            ],
            "type": "string",
            "description": "Currency of all prices and of the price filter.",
            "default": "USD"
          },
          "language": {
            "title": "Language",
            "enum": [
              "en-en",
              "id-id",
              "en-id",
              "en-my",
              "ms-my",
              "en-ph",
              "en-sg",
              "en-th",
              "th-th",
              "vi-vn",
              "en-vn",
              "en-au",
              "en-kr",
              "ko-kr",
              "en-jp",
              "ja-jp",
              "zh-my",
              "zh-tw",
              "zh-en",
              "zh-hk",
              "en-hk",
              "en-tw"
            ],
            "type": "string",
            "description": "Traveloka site language and region; sets the language of property names, labels and the links in the output.",
            "default": "en-en"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}