---
title: "FlixBus API: Search | Perceptlayer"
description: "Search from FlixBus as JSON. 1 credit per successful call."
url: https://perceptlayer.com/apis/flixbus/search
---

[APIs](https://perceptlayer.com/apis) / [FlixBus](https://perceptlayer.com/apis/flixbus) / Search

# FlixBus: Search

Search from FlixBus as JSON. 1 credit per successful call.

GET `/v1/flixbus/search`

## Parameters

Send parameters in the query string.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `from_city_id` | string | Required | Any |
| `to_city_id` | string | Required | Any |
| `adults` | integer | Optional | Any |
| `currency` | string | Optional | EUR, USD |
| `departure_date` | string | Required | Any |
| `sort` | string | Optional | departure, price, duration |
| `max_price` | number | Optional | Any |
| `max_transfers` | integer | Optional | Any |
| `departure_after` | string | Optional | Any |
| `departure_before` | string | Optional | Any |

## Example request

cURL shell 

```
curl "https://api.perceptlayer.com/v1/flixbus/search" \
  -H "X-API-Key: $API_KEY"
```

[Run this endpoint in the playground](https://perceptlayer.com/apis/flixbus?try=search#playground) with your own parameters. 1 credit per successful call; failed calls are free.
