{"data":{"billing":{"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":[]}},"capabilityId":"ee0a0ab7-8947-4c71-bb3c-3b3e5949b2cc","catalogType":"api","categories":["travel","data"],"dataPlatform":"omio","dataPlatformLogoUrl":"https://api.sh/logos/omio.png","dataPlatformTranslations":{},"dataProduct":"ground-transport","description":"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.","descriptionTranslations":{"ar":"ابحث عن خيارات نقل Omio بالأماكن والتاريخ والركاب، مع الوسيلة والتحويلات لمقارنة القطار والحافلة والطيران والعبّارة ضمن توفر المصدر. استخدم سجلات السفر المنظمة لإعداد مقارنة رحلات أو واجهة اكتشاف مسارات، مع توضيح الطريق والركاب وسياق أجرة المصدر وأمثلة الطلبات المدعومة وتسعير التنفيذ الحالي في صفحة API.","ja":"場所・日付・乗客で Omio を検索し、交通手段・乗継条件から鉄道・バス・飛行機・フェリーを比較できます。 構造化旅行記録をフライト比較や旅程検索に使い、ルート・乗客・出典運賃の条件を保持できます。API 詳細ページには対応リクエスト例と選択した実装の料金があります。","zh":"按地点、日期和旅客查询 Omio，可筛选交通方式和换乘，在来源可用性上下文中比较列车、巴士、航班或渡轮。 可利用结构化出行记录构建航班比较或行程发现界面，保留路线、旅客与来源票价上下文；API 详情页提供受支持的请求示例及当前实现价格。"},"effectContentHtml":"","executionMode":"sync","id":"21f5e751-6463-4f00-9cc1-a96783b0cf34","includedContentHtml":"","inputs":[{"description":"Origin: an Omio place id from /omio/v1/places, or a city or station name.","location":"query","name":"from","nullable":false,"required":true,"type":"string"},{"description":"Destination: place id or name.","location":"query","name":"to","nullable":false,"required":true,"type":"string"},{"description":"Travel date (YYYY-MM-DD). Default: `days_ahead` days from today.","location":"query","name":"date","nullable":false,"required":false,"type":"string"},{"description":"Days from today when no `date` is given (default 30).","location":"query","name":"days_ahead","nullable":false,"required":false,"type":"integer"},{"description":"Only these modes, comma separated: `train`, `bus`, `flight`, `ferry`.","location":"query","name":"modes","nullable":false,"required":false,"type":"string"},{"description":"Passenger ages, comma separated (e.g. `35,8`). Default one adult.","location":"query","name":"passenger_ages","nullable":false,"required":false,"type":"string"},{"description":"Number of adults when no ages are given (default 1).","location":"query","name":"adults","nullable":false,"required":false,"type":"integer"},{"description":"Price currency (3 letters). Default `EUR`.","location":"query","name":"currency","nullable":false,"required":false,"type":"string"},{"description":"At most this many changes.","location":"query","name":"max_stops","nullable":false,"required":false,"type":"integer"},{"description":"Order of trips. Default `departure`.","enum_values":["departure","price","duration"],"location":"query","name":"sort","nullable":false,"required":false,"type":"string"},{"description":"Trips (default 100, max 300).","location":"query","name":"limit","nullable":false,"required":false,"type":"integer"},{"description":"Language (2 letters). Default `en`.","location":"query","name":"locale","nullable":false,"required":false,"type":"string"},{"description":"0 leaves out the bulky `raw` source blocks (often 10-30x smaller).","enum_values":["0","1"],"location":"query","name":"raw","nullable":false,"required":false,"type":"string"},{"description":"Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.","location":"query","name":"fields","nullable":false,"required":false,"type":"string"},{"description":"1 skips the 24-hour cache and fetches live.","enum_values":["1"],"location":"query","name":"fresh","nullable":false,"required":false,"type":"string"},{"description":"JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.","enum_values":["json"],"location":"query","name":"output","nullable":false,"required":false,"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.","location":"query","name":"records","nullable":false,"required":false,"type":"string"}],"logoUrl":"https://api.sh/logos/omio.png","method":"GET","name":"Omio train, bus and flight search API","nameTranslations":{},"overviewHtml":"\u003ch2\u003eOmio Journey Search API\u003c/h2\u003e\n\u003cp\u003ePass from and to as Omio place IDs or supported names, with date or days_ahead. The response keeps mode status, matching totals, returned trips and source fare options distinct.\u003c/p\u003e\n\u003ch2\u003eQuick Facts\u003c/h2\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eFact\u003c/th\u003e\n\u003cth\u003eValue\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003eAccess\u003c/td\u003e\n\u003ctd\u003eOpenAny REST\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eAuthentication\u003c/td\u003e\n\u003ctd\u003eOpenAny API key in the Authorization header\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eCore inputs\u003c/td\u003e\n\u003ctd\u003eRequired: from, to. Optional: date, days_ahead, modes, passenger_ages, adults, currency, max_stops, sort, limit, locale. JSON output; fresh=1 bypasses cache and raw=0 omits raw source blocks.\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eSelected implementation\u003c/td\u003e\n\u003ctd\u003eapish · Omio train, bus and flight search API\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eBilling\u003c/td\u003e\n\u003ctd\u003eSee the pricing area for the selected implementation and request options\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2\u003eWhat You Can Build\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003cstrong\u003eMultimodal comparison\u003c/strong\u003e: Keep travel dates and source passenger context.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eJourney detail\u003c/strong\u003e: Retain segment order, fare options and per-mode availability.\u003c/li\u003e\n\u003c/ul\u003e\n\u003ch2\u003eReturned Data\u003c/h2\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eField\u003c/th\u003e\n\u003cth\u003eMeaning\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003etrips[].mode\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eSource transport mode\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003etrips[].price\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eSource trip fare\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003etrips[].currency\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eFare currency\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003etrips[].bookable\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eSource booking-availability flag\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003etrips[].segments\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eOrdered journey segments\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003emodes\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eSource result status and counts by transport mode\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2\u003eQuick Start\u003c/h2\u003e\n\u003col\u003e\n\u003cli\u003eSet OPENANY_API_KEY to your OpenAny API key.\u003c/li\u003e\n\u003cli\u003eReview the selected implementation and pricing, then adapt the request below to your target.\u003c/li\u003e\n\u003cli\u003eCheck the HTTP response and business result before reading optional fields.\u003c/li\u003e\n\u003c/ol\u003e\n\u003cpre\u003e\u003ccode class=\"language-bash\"\u003ecurl --request GET --get \\\n  https://api.openany.si/v1/agent-apis/apish/omio/v1/search \\\n  -H \u0026#34;Authorization: Bearer ${OPENANY_API_KEY}\u0026#34; \\\n  --data-urlencode from=Berlin \\\n  --data-urlencode limit=1 \\\n  --data-urlencode output=json \\\n  --data-urlencode raw=0 \\\n  --data-urlencode to=Munich\n\u003c/code\u003e\u003c/pre\u003e\n\u003ch2\u003eRequest and Response Examples\u003c/h2\u003e\n\u003cp\u003eThe response example is a documentation reference and may be abbreviated. The documented request is a calling template; use the published contract and returned response for the selected implementation.\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"https://openany.si/api/v1/agent-apis/21f5e751-6463-4f00-9cc1-a96783b0cf34\"\u003ePublished Omio Journey Search API implementation contract\u003c/a\u003e.\u003c/p\u003e\n\u003ch2\u003ePricing and Billing\u003c/h2\u003e\n\u003cp\u003eThe pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service\u0026#39;s public availability does not determine OpenAny billing.\u003c/p\u003e\n\u003ch2\u003eFrequently Asked Questions\u003c/h2\u003e\n\u003ch3\u003eWhich date and passenger defaults apply?\u003c/h3\u003e\n\u003cp\u003eWithout date, days_ahead defaults to 30. passenger_ages accepts comma-separated ages; adults is used when ages are absent.\u003c/p\u003e\n\u003ch3\u003eWhich modes and sorts are supported?\u003c/h3\u003e\n\u003cp\u003emodes accepts train, bus, flight or ferry. sort supports departure, price or duration; limit defaults to 100 and accepts up to 300.\u003c/p\u003e\n\u003ch3\u003eDoes notavailable mean a free or zero-duration journey?\u003c/h3\u003e\n\u003cp\u003eNo. Preserve per-mode status separately from returned trips and fares. count is the returned subset, while total describes source matching results.\u003c/p\u003e\n\u003ch3\u003eDoes bookable hold or buy a ticket?\u003c/h3\u003e\n\u003cp\u003eNo. It is a source flag. Keep fare options, nearby-station flags and connection_guarantee with each trip.\u003c/p\u003e\n\u003ch3\u003eHow do I bypass cached results?\u003c/h3\u003e\n\u003cp\u003ePass fresh=1. A cache bypass retrieves available source data; it does not make unpublished or restricted records available.\u003c/p\u003e\n\u003ch3\u003eCan I request CSV or NDJSON?\u003c/h3\u003e\n\u003cp\u003eThis OpenAny implementation serves JSON only. Omit output or set output=json.\u003c/p\u003e\n\u003ch2\u003eRelated APIs\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/omio/omio-place-search-api\"\u003eOmio place search API\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n","pagePath":"/markets/apis/omio/omio-train-bus-and-flight-search-api?offering=21f5e751-6463-4f00-9cc1-a96783b0cf34","providerId":"apish","publicPath":"/v1/agent-apis/apish/omio/v1/search","requestContentType":"none","revision":3,"samples":[{"http_status":200,"name":"Official example · Live API.SH response · Minimal request","request":{"body":null,"headers":{},"path":{},"query":{"from":"Berlin","limit":"1","output":"json","raw":"0","to":"Munich"}},"response_body":{"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"}}],"seoDescription":"Search Omio journeys by places, date and passengers via REST or MCP powered by Apish. Pay per call, no subscription. Ideal for multimodal comparison.","updatedAt":"2026-12-03T02:47:11.403Z","usageInstructionsHtml":""}}