{
  "openapi": "3.0.1",
  "info": {
    "title": "Traveloka Ground Transport (Bus & Shuttle) Monitor",
    "description": "Monitor Indonesian intercity bus and shuttle routes on Traveloka: operator, fare and promo price, departure and arrival times, duration, seats left, pickup and drop-off points with coordinates, and facilities.",
    "version": "0.0",
    "x-build-id": "4lkDgZPFau4weoDf3"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/fanndev~traveloka-ground-transport-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-fanndev-traveloka-ground-transport-monitor",
        "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-ground-transport-monitor/runs": {
      "post": {
        "operationId": "runs-sync-fanndev-traveloka-ground-transport-monitor",
        "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-ground-transport-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-fanndev-traveloka-ground-transport-monitor",
        "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": {
          "routes": {
            "title": "Routes",
            "type": "array",
            "description": "One route per line as ORIGIN-DESTINATION, using city names as Traveloka knows them, for example Jakarta-Bandung. Accepted separators: -, ->, > or the word 'to'.",
            "items": {
              "type": "string"
            }
          },
          "origin": {
            "title": "Origin",
            "type": "string",
            "description": "Single-route alternative to the Routes list: departure city, terminal or landmark."
          },
          "destination": {
            "title": "Destination",
            "type": "string",
            "description": "Single-route alternative to the Routes list: arrival city, terminal or landmark."
          },
          "departureDate": {
            "title": "First departure date",
            "type": "string",
            "description": "First travel date to check, in YYYY-MM-DD. Defaults to seven days from today."
          },
          "daysToMonitor": {
            "title": "Consecutive days",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "How many consecutive travel dates to check per route, starting from the first departure date. One search per route per day.",
            "default": 1
          },
          "adults": {
            "title": "Passengers",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Adult passengers. Affects which inventory Traveloka shows and the seat counts returned.",
            "default": 1
          },
          "maxDeparturesPerSearch": {
            "title": "Max departures per search",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Cap on departures kept per route per date. Traveloka expands every pickup point by drop-off point combination, so one busy city pair can return several thousand rows; 200 is usually plenty.",
            "default": 200
          },
          "dedupeBy": {
            "title": "De-duplicate by",
            "enum": [
              "trip",
              "none",
              "operator"
            ],
            "type": "string",
            "description": "The same trip is listed once per pickup point. 'Trip' keeps one row per physical departure and is what you normally want; 'None' keeps every boarding option; 'Operator' keeps one row per operator, time and class.",
            "default": "trip"
          },
          "productTypes": {
            "title": "Vehicle types",
            "type": "array",
            "description": "Keep only these product types, for example BUS or SHUTTLE. Leave empty for both.",
            "items": {
              "type": "string"
            }
          },
          "includeDepartures": {
            "title": "Include individual departures",
            "type": "boolean",
            "description": "Emit one DEPARTURE row per trip with operator, fare, times, pickup and drop-off points and facilities.",
            "default": true
          },
          "includeRouteSummary": {
            "title": "Include a route summary",
            "type": "boolean",
            "description": "Emit one ROUTE_SUMMARY row per route and date with fare range, operator count and a per-operator breakdown.",
            "default": true
          },
          "locale": {
            "title": "Locale",
            "enum": [
              "en-id",
              "id-id",
              "en-my",
              "th-th",
              "vi-vn"
            ],
            "type": "string",
            "description": "Traveloka locale, which drives the language of facility and point labels.",
            "default": "en-id"
          },
          "currency": {
            "title": "Currency",
            "enum": [
              "IDR",
              "MYR",
              "THB",
              "VND",
              "SGD",
              "USD"
            ],
            "type": "string",
            "description": "Currency for all fares in the output.",
            "default": "IDR"
          },
          "requestDelaySeconds": {
            "title": "Delay between requests",
            "type": "string",
            "description": "Seconds to pause between searches. Bus responses are large, so keep this above half a second on long runs.",
            "default": "0.6"
          },
          "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}