{
  "openapi": "3.0.1",
  "info": {
    "title": "FlixBus Fares Scraper — Bus Prices, Times & Seats by Date",
    "description": "Scrape FlixBus fares between any cities for any dates: departure and arrival times, stations, duration, transfers, total and per-passenger price, seats left, operator and amenities. Date ranges, return trips, passengers, 14 currencies. No login.",
    "version": "0.1",
    "x-build-id": "8vClyKB9TG6jhT7HX"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/yugenox~flixbus-fares-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-yugenox-flixbus-fares-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/yugenox~flixbus-fares-scraper/runs": {
      "post": {
        "operationId": "runs-sync-yugenox-flixbus-fares-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/yugenox~flixbus-fares-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-yugenox-flixbus-fares-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": {
          "routes": {
            "title": "🚌 Routes",
            "type": "array",
            "description": "One route per line: from city -> to city, e.g. \"Berlin -> Munich\", \"Toronto -> Montreal\", \"Paris, FR -> Amsterdam\". \"to\", \"→\" and \"|\" work too. Add a country code after a comma when a city name exists in several countries. FlixBus city IDs (UUIDs) are accepted as well.",
            "items": {
              "type": "string"
            }
          },
          "returnTrips": {
            "title": "Also search the way back",
            "type": "boolean",
            "description": "Also search every route in the opposite direction (Munich -> Berlin for Berlin -> Munich) on the same dates.",
            "default": false
          },
          "startDate": {
            "title": "📅 Departure date",
            "type": "string",
            "description": "First departure date to search (YYYY-MM-DD). Empty = tomorrow."
          },
          "days": {
            "title": "Number of days",
            "minimum": 1,
            "maximum": 120,
            "type": "integer",
            "description": "How many consecutive days to search from the departure date, e.g. 7 for a week or 30 for a month of fares per route. Each day of each route is one search.",
            "default": 1
          },
          "dates": {
            "title": "Specific dates",
            "type": "array",
            "description": "Optional: exact dates to search instead of a date range (YYYY-MM-DD), e.g. 2026-12-23, 2026-12-30.",
            "items": {
              "type": "string"
            }
          },
          "adults": {
            "title": "Adults",
            "minimum": 0,
            "maximum": 9,
            "type": "integer",
            "description": "Adult passengers (15+). Prices are the total for all passengers; the per-passenger price is in its own field.",
            "default": 1
          },
          "children6to14": {
            "title": "Children 6-14",
            "minimum": 0,
            "maximum": 9,
            "type": "integer",
            "description": "Children aged 6 to 14.",
            "default": 0
          },
          "children0to5": {
            "title": "Children 0-5",
            "minimum": 0,
            "maximum": 9,
            "type": "integer",
            "description": "Children aged 0 to 5.",
            "default": 0
          },
          "currency": {
            "title": "Currency",
            "enum": [
              "EUR",
              "USD",
              "CAD",
              "GBP",
              "PLN",
              "CZK",
              "CHF",
              "SEK",
              "DKK",
              "NOK",
              "HUF",
              "RON",
              "BGN",
              "BRL"
            ],
            "type": "string",
            "description": "Currency FlixBus prices the trips in.",
            "default": "EUR"
          },
          "directOnly": {
            "title": "Direct trips only",
            "type": "boolean",
            "description": "Keep only trips without a change of bus or train.",
            "default": false
          },
          "onlyAvailable": {
            "title": "Bookable trips only",
            "type": "boolean",
            "description": "Leave out trips FlixBus marks as sold out or not bookable.",
            "default": false
          },
          "maxPrice": {
            "title": "Max price",
            "minimum": 0,
            "type": "integer",
            "description": "Optional: leave out trips whose total price (all passengers, in the chosen currency) is above this. 0 = no limit.",
            "default": 0
          },
          "maxItems": {
            "title": "Max trips",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum number of trips to save for the whole run. 0 = no limit.",
            "default": 500
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify Proxy (datacenter) works well for FlixBus and comes with every Apify plan.",
            "default": {
              "useApifyProxy": true
            }
          },
          "_noResidential": {
            "title": "Never use residential proxies",
            "type": "boolean",
            "description": "Test switch: use Apify datacenter proxy even if residential is selected above.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}