{
  "openapi": "3.0.1",
  "info": {
    "title": "Travelstart Flights Scraper | Africa OTA Fares",
    "description": "Scrape Travelstart flight search results & airport suggestions across .com / .co.za / .com.ng / .co.ke. Extract fares, airlines, segments. Export Excel/CSV/JSON. Unofficial — not affiliated with Travelstart.",
    "version": "0.1",
    "x-build-id": "83lWiOzmr31E7XtnZ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lentic_clockss~travelstart-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lentic_clockss-travelstart-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~travelstart-scraper/runs": {
      "post": {
        "operationId": "runs-sync-lentic_clockss-travelstart-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~travelstart-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-lentic_clockss-travelstart-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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "flightsSearch",
              "suggestions",
              "airportSuggest",
              "hotelsSearch",
              "hotelDetails",
              "hotelsRecommended",
              "buses",
              "busLocations",
              "carsSearch",
              "packages"
            ],
            "type": "string",
            "description": "flightsSearch uses from/to/dates; hotelsSearch uses query (a city) and checkin/checkout; hotelDetails uses hotelIds; buses use from/to as city names (IATA codes are turned into their city).",
            "default": "suggestions"
          },
          "countrySite": {
            "title": "Country site",
            "enum": [
              "travelstart.com",
              "travelstart.co.za",
              "travelstart.com.ng",
              "travelstart.co.ke",
              "AE",
              "BH",
              "BW",
              "DZ",
              "EG",
              "GH",
              "JO",
              "KW",
              "LY",
              "MA",
              "ME",
              "MW",
              "NA",
              "OM",
              "PK",
              "QA",
              "SA",
              "TN",
              "TT",
              "TZ"
            ],
            "type": "string",
            "description": "Flights market. .co.za / .com / .co.ke use their own sites; .com.ng and the market codes search on travelstart.com with that market's prices and routes.",
            "default": "travelstart.com"
          },
          "from": {
            "title": "Origin",
            "type": "string",
            "description": "Flights: origin IATA code or city. Buses: departure city (e.g. Johannesburg).",
            "default": "JNB"
          },
          "to": {
            "title": "Destination",
            "type": "string",
            "description": "Flights: destination IATA code or city. Buses: arrival city (e.g. Cape Town).",
            "default": "CPT"
          },
          "query": {
            "title": "Query",
            "type": "string",
            "description": "suggestions: airport / city text. hotelsSearch: the city or place (e.g. Cape Town). busLocations: a stop name.",
            "default": "JNB"
          },
          "departureDate": {
            "title": "Departure date",
            "type": "string",
            "description": "YYYY-MM-DD. Defaults to ~24 days ahead."
          },
          "returnDate": {
            "title": "Return date",
            "type": "string",
            "description": "YYYY-MM-DD for return trips. Empty for oneway."
          },
          "tripType": {
            "title": "Trip type",
            "enum": [
              "return",
              "oneway",
              "multi"
            ],
            "type": "string",
            "description": "return / oneway / multi (multi-city: fill legs). roundtrip and multicity are accepted as aliases.",
            "default": "return"
          },
          "cabin": {
            "title": "Cabin",
            "enum": [
              "ECONOMY",
              "PREMIUM",
              "BUSINESS",
              "FIRST"
            ],
            "type": "string",
            "description": "Cabin",
            "default": "ECONOMY"
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "type": "integer",
            "description": "Adults",
            "default": 1
          },
          "children": {
            "title": "Children",
            "minimum": 0,
            "type": "integer",
            "description": "Children",
            "default": 0
          },
          "infants": {
            "title": "Infants",
            "minimum": 0,
            "type": "integer",
            "description": "Infants",
            "default": 0
          },
          "youngAdults": {
            "title": "Young adults",
            "minimum": 0,
            "type": "integer",
            "description": "Young adults",
            "default": 0
          },
          "currency": {
            "title": "Hotel currency",
            "type": "string",
            "description": "Hotels: price currency (default ZAR). Flight prices come in the market's currency."
          },
          "legs": {
            "title": "Multi-city legs",
            "type": "array",
            "description": "tripType=multi: [{\"from\": \"JNB\", \"to\": \"CPT\", \"departureDate\": \"2026-11-10\"}, {\"from\": \"CPT\", \"to\": \"DUR\", \"departureDate\": \"2026-11-14\"}]"
          },
          "checkin": {
            "title": "Hotel check-in",
            "type": "string",
            "description": "YYYY-MM-DD (default: 24 days from today)."
          },
          "checkout": {
            "title": "Hotel check-out",
            "type": "string",
            "description": "YYYY-MM-DD (default: check-in + 1 night)."
          },
          "rooms": {
            "title": "Hotel rooms",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "Rooms (adults = guests per room)."
          },
          "childrenAges": {
            "title": "Hotel children ages",
            "type": "array",
            "description": "Ages of children per room, e.g. [5, 9]."
          },
          "guestNationality": {
            "title": "Guest nationality",
            "type": "string",
            "description": "Hotels: ISO country of the guests (default ZA)."
          },
          "placeId": {
            "title": "Hotel place id",
            "type": "string",
            "description": "Hotels: a Google place id instead of query (optional)."
          },
          "hotelIds": {
            "title": "Hotel ids",
            "type": "array",
            "description": "hotelDetails: hotel ids from hotelsSearch (e.g. lp2a8f4).",
            "items": {
              "type": "string"
            }
          },
          "scrapeDetails": {
            "title": "Hotel details in search",
            "type": "boolean",
            "description": "hotelsSearch: also read each hotel's details (its own phone, postal code, policies). Slower.",
            "default": false
          },
          "includeRooms": {
            "title": "Emit room offers",
            "type": "boolean",
            "description": "Opt in to one separately billed room row per hotel room/rate offer. Hotel rows keep room count and min/max room price.",
            "default": false
          },
          "maxResults": {
            "title": "Max results per search or hotel ID",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum rows for each search route/query or each hotel ID (default 70, up to 1000). Larger values are collected in parts of up to 70 rows. All row types, including opt-in room offers, share the budget for their input. The run stops at your maximum total charge; free Apify plans allow 200 rows per run and 10 runs.",
            "default": 70
          },
          "workerBaseUrl": {
            "title": "Worker base URL override",
            "type": "string",
            "description": "Optional override for the same control-plane endpoint configured in WORKER_BASE_URL. Production uses https://worker.opendata.best/b/travelstart-com."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}