{
  "openapi": "3.0.1",
  "info": {
    "title": "Traveloka Indonesia Lodging & Xperience Articles",
    "description": "Get guest house and hostel listings across Indonesia's major cities and resort areas with ratings and reviews, plus Traveloka Xperience travel-guide articles with author, publish date, and full article text.",
    "version": "1.0",
    "x-build-id": "fXSHrRLVZSK3zwWRR"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nimbryxo-studio~traveloka-indonesia-lodging-and-xperience-articles/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nimbryxo-studio-traveloka-indonesia-lodging-and-xperience-articles",
        "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/nimbryxo-studio~traveloka-indonesia-lodging-and-xperience-articles/runs": {
      "post": {
        "operationId": "runs-sync-nimbryxo-studio-traveloka-indonesia-lodging-and-xperience-articles",
        "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/nimbryxo-studio~traveloka-indonesia-lodging-and-xperience-articles/run-sync": {
      "post": {
        "operationId": "run-sync-nimbryxo-studio-traveloka-indonesia-lodging-and-xperience-articles",
        "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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "browseByCity",
              "browseExplore",
              "byUrl"
            ],
            "type": "string",
            "description": "What to fetch.",
            "default": "search"
          },
          "searchQuery": {
            "title": "Search query (mode=search)",
            "type": "string",
            "description": "City, area, or travel keyword (mode=search), e.g. `yogyakarta`, `bali`, `hotel bali`, `train`. City/area queries return accommodation listings; other keywords match Traveloka Xperience article titles and summaries.",
            "default": "yogyakarta"
          },
          "citySlug": {
            "title": "City / area (mode=browseByCity)",
            "enum": [
              "guest-house-yogyakarta",
              "guest-house-bali",
              "guest-house-bandung",
              "guest-house-surabaya",
              "guest-house-malang",
              "guest-house-semarang",
              "guest-house-labuan-bajo",
              "guest-house-bogor",
              "guest-house-tangerang",
              "guest-house-bekasi",
              "guest-house-medan",
              "guest-house-makassar",
              "guest-house-palembang",
              "guest-house-kuta",
              "guest-house-canggu",
              "guest-house-legian",
              "guest-house-nusa-dua",
              "hostel-yogyakarta",
              "hostel-bali",
              "hostel-bogor",
              "hostel-bandung"
            ],
            "type": "string",
            "description": "Traveloka accommodation listing page to scrape (mode=browseByCity). All pages are paginated automatically up to `maxPages`."
          },
          "startUrls": {
            "title": "Page URLs (mode=byUrl)",
            "type": "array",
            "description": "Traveloka URLs to scrape (mode=byUrl): accommodation listing pages, explore category pages, or explore article pages. Listing pages are paginated automatically.",
            "items": {
              "type": "object",
              "properties": {
                "url": {
                  "title": "Page URL",
                  "description": "A full Traveloka accommodation, explore category or article URL.",
                  "type": "string"
                }
              }
            },
            "default": []
          },
          "locale": {
            "title": "Locale / currency",
            "enum": [
              "en-id",
              "id-id",
              "en-sg",
              "en-my",
              "th-th",
              "en-ph"
            ],
            "type": "string",
            "description": "Traveloka store locale. The locale also sets the price currency shown on listing pages (e.g. `en-sg` → SGD).",
            "default": "en-id"
          },
          "exploreCategory": {
            "title": "Article category (mode=browseExplore)",
            "enum": [
              "activities",
              "tips"
            ],
            "type": "string",
            "description": "Traveloka Explore category to page through (mode=browseExplore).",
            "default": "activities"
          },
          "exploreSubcategory": {
            "title": "Article sub-category (mode=browseExplore)",
            "enum": [
              "",
              "art-design",
              "culture-history",
              "events-festivals",
              "family-friendly",
              "nature-wildlife",
              "shopping",
              "xp-new-normal",
              "xp-news-events",
              "xp-online-experience",
              "xp-promo",
              "xp-travel"
            ],
            "type": "string",
            "description": "Optional Activities sub-category filter (mode=browseExplore with `exploreCategory=activities`).",
            "default": ""
          },
          "minRating": {
            "title": "Min user rating",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Only hotels with a guest score of at least this (Traveloka uses a 0–10 scale)."
          },
          "minStarRating": {
            "title": "Min star rating",
            "minimum": 1,
            "maximum": 7,
            "type": "integer",
            "description": "Only hotels with at least this many stars."
          },
          "minReviewCount": {
            "title": "Min review count",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Only hotels with at least this many guest reviews."
          },
          "minPrice": {
            "title": "Min price",
            "minimum": 0,
            "maximum": 1000000000,
            "type": "integer",
            "description": "Only hotels whose listed starting price is at least this amount, in the locale's currency (see `locale`)."
          },
          "maxPrice": {
            "title": "Max price",
            "minimum": 0,
            "maximum": 1000000000,
            "type": "integer",
            "description": "Only hotels whose listed starting price is at most this amount, in the locale's currency (see `locale`)."
          },
          "containsKeyword": {
            "title": "Contains keyword",
            "type": "string",
            "description": "Only emit hotels whose name contains this text (case-insensitive)."
          },
          "sortBy": {
            "title": "Sort results",
            "enum": [
              "relevance",
              "ratingDesc",
              "mostReviewed",
              "starDesc",
              "priceAsc",
              "priceDesc"
            ],
            "type": "string",
            "description": "Applied to the fetched hotel records before the output cap. `relevance` keeps Traveloka's own popularity order.",
            "default": "relevance"
          },
          "includeArticles": {
            "title": "Include all explored articles",
            "type": "boolean",
            "description": "In search mode, also emit every article from the fetched Explore pages, not only keyword matches.",
            "default": false
          },
          "includeArticleDetails": {
            "title": "Fetch article details",
            "type": "boolean",
            "description": "Also open each article page to add the full body text, section headings and images, plus description, table of contents and related articles. Adds one request per article.",
            "default": false
          },
          "includeHotelDetails": {
            "title": "Fetch hotel details",
            "type": "boolean",
            "description": "Also fetch each hotel's cookieless detail data to add address, coordinates, facilities, check-in/out, policies and up to 20 reviews. Adds one request per hotel.",
            "default": false
          },
          "maxPages": {
            "title": "Max listing pages",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum listing/category pages to fetch per source. `0` means all pages until `maxItems` or the source is exhausted.",
            "default": 0
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Hard cap on emitted records.",
            "default": 50
          },
          "query": {
            "title": "Legacy query",
            "type": "string",
            "description": "Deprecated alias for `searchQuery`."
          },
          "keyword": {
            "title": "Legacy keyword",
            "type": "string",
            "description": "Deprecated alias for `searchQuery`."
          },
          "q": {
            "title": "Legacy q",
            "type": "string",
            "description": "Deprecated alias for `searchQuery`."
          },
          "location": {
            "title": "Legacy location",
            "type": "string",
            "description": "Deprecated alias for `searchQuery`."
          },
          "city": {
            "title": "Legacy city",
            "type": "string",
            "description": "Deprecated alias for `citySlug`."
          },
          "maxResults": {
            "title": "Legacy max results",
            "type": "integer",
            "description": "Deprecated alias for `maxItems`."
          },
          "limit": {
            "title": "Legacy limit",
            "type": "integer",
            "description": "Deprecated alias for `maxItems`."
          },
          "sort": {
            "title": "Legacy sort",
            "type": "string",
            "description": "Deprecated alias for `sortBy`."
          },
          "url": {
            "title": "Legacy URL",
            "type": "string",
            "description": "Deprecated single-URL alias for `startUrls`."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional Apify proxy. Only used after a direct request is blocked (403/429). Leave empty for the zero-cost 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}