# FlixBus destinations from a city API

Explore FlixBus destinations from a city via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as from, limit, output, and retrieve structured data including destination source city UUID, source route minimum-fare summary, source fare currency, source average route duration, and source minimum route duration to route discovery, and destination comparison.

Documentation: https://openany.si/market/apis/flixbus/flixbus-destinations-from-a-city-api/?offering=4ddca80b-92ad-40bf-8e56-f8426369260a
API ID: 4ddca80b-92ad-40bf-8e56-f8426369260a
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/flixbus/v1/destinations
Page update time: 2026-12-03T02:47:05.513Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.002 / billing credit
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract. Price update time: not supplied.
Contract update time: 2026-12-03T02:47:02.774Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "rules",
  "parameters": [],
  "policy_version": 2,
  "sale": {
    "addons": [],
    "base_price_micro_usd": "0",
    "max_cost_micro_usd": "2000",
    "quantities": [
      {
        "id": "upstream_credits",
        "label": "Actual API.SH credits consumed",
        "max_quantity": "1",
        "measure": "value",
        "pointer": "/credits_used",
        "price_micro_usd": "2000",
        "quantity_scale": 0,
        "source": "response",
        "unit": "credit",
        "unit_quantity": "1"
      }
    ],
    "rounding": "ceil",
    "variants": []
  }
}
```

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "FlixBus destinations from a city API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "from": {
          "type": "string",
          "description": "City name or id."
        },
        "limit": {
          "type": "integer",
          "description": "Up to 500 (default 100)."
        },
        "currency": {
          "type": "string",
          "description": "3-letter currency code (default `EUR`)."
        },
        "country": {
          "type": "string",
          "description": "Only destinations in this 2-letter country."
        },
        "max_price": {
          "type": "number",
          "description": "Only destinations whose lowest fare is at most this."
        },
        "sort": {
          "type": "string",
          "description": "`popularity` (default), `price` or `duration`.",
          "enum": [
            "popularity",
            "price",
            "duration"
          ]
        },
        "raw": {
          "type": "string",
          "description": "0 leaves out the bulky `raw` source blocks (often 10-30x smaller).",
          "enum": [
            "0",
            "1"
          ]
        },
        "fields": {
          "type": "string",
          "description": "Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included."
        },
        "fresh": {
          "type": "string",
          "description": "1 skips the 24-hour cache and fetches live.",
          "enum": [
            "1"
          ]
        },
        "output": {
          "type": "string",
          "description": "JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.",
          "enum": [
            "json"
          ]
        },
        "records": {
          "type": "string",
          "description": "With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row."
        }
      },
      "required": [
        "from"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "applied_filters": {
      "type": "object",
      "properties": {
        "country": {
          "type": "null"
        },
        "max_price": {
          "type": "null"
        },
        "sort": {
          "type": "string"
        }
      }
    },
    "cached": {
      "type": "boolean"
    },
    "count": {
      "type": "integer"
    },
    "credits_used": {
      "type": "integer"
    },
    "currency": {
      "type": "string"
    },
    "destinations": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "avg_duration_minutes": {
            "type": "integer"
          },
          "country": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "lat": {
            "type": "number"
          },
          "legacy_id": {
            "type": "integer"
          },
          "lng": {
            "type": "number"
          },
          "min_duration_minutes": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "price": {
            "type": "object",
            "properties": {
              "avg": {
                "type": "number"
              },
              "currency": {
                "type": "string"
              },
              "max": {
                "type": "number"
              },
              "min": {
                "type": "number"
              }
            }
          },
          "route_popularity": {
            "type": "integer"
          },
          "search_volume": {
            "type": "integer"
          },
          "slug": {
            "type": "string"
          },
          "transfer_needed": {
            "type": "boolean"
          },
          "transport": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      }
    },
    "fetched_at": {
      "type": "string"
    },
    "from": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      }
    }
  }
}
```

## Request example
Scenario: Official example · Live API.SH response · Minimal request
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/flixbus/v1/destinations?from=Berlin&limit=1&output=json&raw=0' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "applied_filters": {
    "country": null,
    "max_price": null,
    "sort": "popularity"
  },
  "cached": false,
  "count": 1,
  "credits_used": 1,
  "currency": "EUR",
  "destinations": [
    {
      "avg_duration_minutes": 986,
      "country": "FR",
      "id": "40de8964-8646-11e6-9066-549f350fcb0c",
      "lat": 48.835335,
      "legacy_id": 2015,
      "lng": 2.380503,
      "min_duration_minutes": 735,
      "name": "Paris",
      "price": {
        "avg": 51.47,
        "currency": "EUR",
        "max": 90.97,
        "min": 41.98
      },
      "route_popularity": 32900,
      "search_volume": 26239900,
      "slug": "paris",
      "transfer_needed": false,
      "transport": [
        "bus"
      ]
    }
  ],
  "fetched_at": "2026-11-19T12:24:59.810Z",
  "from": {
    "id": "40d8f682-8646-11e6-9066-549f350fcb0c",
    "name": "Berlin"
  }
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Available implementations
- apish: https://openany.si/market/apis/flixbus/flixbus-destinations-from-a-city-api/?offering=4ddca80b-92ad-40bf-8e56-f8426369260a

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
