# Omio train, bus and flight search API

Search Omio journeys by places, date and passengers 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 source transport mode, source trip fare, fare currency, source booking-availability flag, and ordered journey segments for multimodal comparison, and journey detail.

Documentation: https://openany.si/market/apis/omio/omio-train-bus-and-flight-search-api/?offering=21f5e751-6463-4f00-9cc1-a96783b0cf34
API ID: 21f5e751-6463-4f00-9cc1-a96783b0cf34
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/omio/v1/search
Page update time: 2026-12-03T02:47:13.410Z
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:11.403Z. 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": "Omio train, bus and flight search 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": "Origin: an Omio place id from /omio/v1/places, or a city or station name."
        },
        "to": {
          "type": "string",
          "description": "Destination: place id or name."
        },
        "date": {
          "type": "string",
          "description": "Travel date (YYYY-MM-DD). Default: `days_ahead` days from today."
        },
        "days_ahead": {
          "type": "integer",
          "description": "Days from today when no `date` is given (default 30)."
        },
        "modes": {
          "type": "string",
          "description": "Only these modes, comma separated: `train`, `bus`, `flight`, `ferry`."
        },
        "passenger_ages": {
          "type": "string",
          "description": "Passenger ages, comma separated (e.g. `35,8`). Default one adult."
        },
        "adults": {
          "type": "integer",
          "description": "Number of adults when no ages are given (default 1)."
        },
        "currency": {
          "type": "string",
          "description": "Price currency (3 letters). Default `EUR`."
        },
        "max_stops": {
          "type": "integer",
          "description": "At most this many changes."
        },
        "sort": {
          "type": "string",
          "description": "Order of trips. Default `departure`.",
          "enum": [
            "departure",
            "price",
            "duration"
          ]
        },
        "limit": {
          "type": "integer",
          "description": "Trips (default 100, max 300)."
        },
        "locale": {
          "type": "string",
          "description": "Language (2 letters). Default `en`."
        },
        "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",
        "to"
      ]
    },
    "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": {
        "max_stops": {
          "type": "null"
        },
        "modes": {
          "type": "null"
        },
        "sort": {
          "type": "string"
        }
      }
    },
    "cached": {
      "type": "boolean"
    },
    "cheapest_by_mode": {
      "type": "object",
      "properties": {
        "bus": {
          "type": "object",
          "properties": {
            "departure": {
              "type": "string"
            },
            "operator": {
              "type": "string"
            },
            "price": {
              "type": "integer"
            }
          }
        }
      }
    },
    "count": {
      "type": "integer"
    },
    "credits_used": {
      "type": "integer"
    },
    "currency": {
      "type": "string"
    },
    "date": {
      "type": "string"
    },
    "fetched_at": {
      "type": "string"
    },
    "from": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "name": {
          "type": "string"
        }
      }
    },
    "modes": {
      "type": "object",
      "properties": {
        "bus": {
          "type": "object",
          "properties": {
            "results": {
              "type": "integer"
            },
            "status": {
              "type": "string"
            }
          }
        },
        "ferry": {
          "type": "object",
          "properties": {
            "results": {
              "type": "integer"
            },
            "status": {
              "type": "string"
            }
          }
        },
        "flight": {
          "type": "object",
          "properties": {
            "results": {
              "type": "integer"
            },
            "status": {
              "type": "string"
            }
          }
        },
        "train": {
          "type": "object",
          "properties": {
            "results": {
              "type": "integer"
            },
            "status": {
              "type": "string"
            }
          }
        }
      }
    },
    "passenger_ages": {
      "type": "array",
      "items": {
        "type": "integer"
      }
    },
    "search_id": {
      "type": "string"
    },
    "to": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "name": {
          "type": "string"
        }
      }
    },
    "total": {
      "type": "integer"
    },
    "trips": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "airport_transfer": {
            "type": "boolean"
          },
          "arrival": {
            "type": "string"
          },
          "bookable": {
            "type": "boolean"
          },
          "classes": {
            "type": "array",
            "items": {}
          },
          "connection_guarantee": {
            "type": "boolean"
          },
          "currency": {
            "type": "string"
          },
          "departure": {
            "type": "string"
          },
          "duration_min": {
            "type": "integer"
          },
          "fare_options": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "available": {
                  "type": "boolean"
                },
                "class": {
                  "type": "null"
                },
                "discounts": {
                  "type": "array",
                  "items": {}
                },
                "fare_id": {
                  "type": "string"
                },
                "price": {
                  "type": "integer"
                },
                "type": {
                  "type": "string"
                }
              }
            }
          },
          "id": {
            "type": "string"
          },
          "journey_id": {
            "type": "string"
          },
          "mode": {
            "type": "string"
          },
          "nearby_arrival": {
            "type": "boolean"
          },
          "nearby_departure": {
            "type": "boolean"
          },
          "operator": {
            "type": "string"
          },
          "operator_code": {
            "type": "string"
          },
          "operator_logo": {
            "type": "string"
          },
          "price": {
            "type": "integer"
          },
          "providers": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "segments": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "arrival": {
                  "type": "string"
                },
                "arrival_time_zone": {
                  "type": "string"
                },
                "departure": {
                  "type": "string"
                },
                "departure_time_zone": {
                  "type": "string"
                },
                "duration_min": {
                  "type": "integer"
                },
                "from": {
                  "type": "object",
                  "properties": {
                    "city": {
                      "type": "string"
                    },
                    "country_code": {
                      "type": "string"
                    },
                    "id": {
                      "type": "integer"
                    },
                    "lat": {
                      "type": "number"
                    },
                    "lng": {
                      "type": "number"
                    },
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    }
                  }
                },
                "mode": {
                  "type": "string"
                },
                "operator": {
                  "type": "string"
                },
                "operator_code": {
                  "type": "string"
                },
                "service": {
                  "type": "string"
                },
                "tags": {
                  "type": "array",
                  "items": {}
                },
                "to": {
                  "type": "object",
                  "properties": {
                    "city": {
                      "type": "string"
                    },
                    "country_code": {
                      "type": "string"
                    },
                    "id": {
                      "type": "integer"
                    },
                    "lat": {
                      "type": "number"
                    },
                    "lng": {
                      "type": "number"
                    },
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "sold_by": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "split_ticket": {
            "type": "boolean"
          },
          "status": {
            "type": "string"
          },
          "stops": {
            "type": "integer"
          },
          "tickets_left": {
            "type": "integer"
          }
        }
      }
    },
    "url": {
      "type": "string"
    }
  }
}
```

## Request example
Scenario: Official example · Live API.SH response · Minimal request
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/omio/v1/search?from=Berlin&limit=1&output=json&raw=0&to=Munich' \
  -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": {
    "max_stops": null,
    "modes": null,
    "sort": "departure"
  },
  "cached": false,
  "cheapest_by_mode": {
    "bus": {
      "departure": "2026-12-19T00:15:00.000+01:00",
      "operator": "FlixBus",
      "price": 58
    }
  },
  "count": 1,
  "credits_used": 1,
  "currency": "EUR",
  "date": "2026-12-19",
  "fetched_at": "2026-11-19T12:25:19.976Z",
  "from": {
    "id": 376217,
    "name": "Berlin"
  },
  "modes": {
    "bus": {
      "results": 19,
      "status": "done"
    },
    "ferry": {
      "results": 0,
      "status": "notavailable"
    },
    "flight": {
      "results": 32,
      "status": "done"
    },
    "train": {
      "results": 7,
      "status": "done"
    }
  },
  "passenger_ages": [
    30
  ],
  "search_id": "ED6A56F011E96456E869608D629C914A3",
  "to": {
    "id": 376946,
    "name": "Munich"
  },
  "total": 58,
  "trips": [
    {
      "airport_transfer": false,
      "arrival": "2026-12-19T09:55:00.000+01:00",
      "bookable": true,
      "classes": [],
      "connection_guarantee": false,
      "currency": "EUR",
      "departure": "2026-12-19T00:15:00.000+01:00",
      "duration_min": 580,
      "fare_options": [
        {
          "available": true,
          "class": null,
          "discounts": [],
          "fare_id": "flixbusConnect.NORMAL",
          "price": 58,
          "type": "ONE_WAY"
        }
      ],
      "id": "4685047820974844826",
      "journey_id": "-1818076049",
      "mode": "bus",
      "nearby_arrival": false,
      "nearby_departure": false,
      "operator": "FlixBus",
      "operator_code": "meinfernbus_flixbus",
      "operator_logo": "https://static.omio.design/web/logos/100/meinfernbus_flixbus.png",
      "price": 58,
      "providers": [
        "Flixbus"
      ],
      "segments": [
        {
          "arrival": "2026-12-19T02:50:00.000+01:00",
          "arrival_time_zone": "Europe/Berlin",
          "departure": "2026-12-19T00:15:00.000+01:00",
          "departure_time_zone": "Europe/Berlin",
          "duration_min": 155,
          "from": {
            "city": "Berlin",
            "country_code": "DE",
            "id": 8596206,
            "lat": 52.47622516200133,
            "lng": 13.364395486525495,
            "name": "Berlin, Bahnhof Südkreuz",
            "type": "busstation"
          },
          "mode": "bus",
          "operator": "FlixBus",
          "operator_code": "meinfernbus_flixbus",
          "service": "FlixBus",
          "tags": [],
          "to": {
            "city": "Dresden",
            "country_code": "DE",
            "id": 475553,
            "lat": 51.039306599739675,
            "lng": 13.732375563507048,
            "name": "Dresden, Bayrische Straße (Hauptbahnhof)",
            "type": "busstation"
          }
        },
        {
          "arrival": "2026-12-19T09:55:00.000+01:00",
          "arrival_time_zone": "Europe/Berlin",
          "departure": "2026-12-19T03:15:00.000+01:00",
          "departure_time_zone": "Europe/Berlin",
          "duration_min": 400,
          "from": {
            "city": "Dresden",
            "country_code": "DE",
            "id": 475553,
            "lat": 51.039306599739675,
            "lng": 13.732375563507048,
            "name": "Dresden, Bayrische Straße (Hauptbahnhof)",
            "type": "busstation"
          },
          "mode": "bus",
          "operator": "FlixBus",
          "operator_code": "meinfernbus_flixbus",
          "service": "FlixBus",
          "tags": [],
          "to": {
            "city": "Munich",
            "country_code": "DE",
            "id": 318076,
            "lat": 48.14224,
            "lng": 11.54997,
            "name": "Munich, Central Bus Station (ZOB)",
            "type": "busstation"
          }
        }
      ],
      "sold_by": [
        "FlixBus"
      ],
      "split_ticket": false,
      "status": "available",
      "stops": 1,
      "tickets_left": 39
    }
  ],
  "url": "https://www.omio.com/app/search-frontend/results/ED6A56F011E96456E869608D629C914A3/train?locale=en"
}
```

## 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/omio/omio-train-bus-and-flight-search-api/?offering=21f5e751-6463-4f00-9cc1-a96783b0cf34

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