{"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":"a2df7718-13d4-4b48-a7a4-a3fd76458b4d","catalogType":"api","categories":["travel","data"],"dataPlatform":"greyhound","dataPlatformLogoUrl":"https://api.sh/logos/greyhound.png","dataPlatformTranslations":{},"dataProduct":"ground-transport","description":"Get Greyhound itineraries by journey UID or route and date via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as days_ahead, from, output, and retrieve structured data including opaque source itinerary identifier, source service-line label, source itinerary-leg type, source stop name, and source stop departure timestamp for journey detail, and stop display.","descriptionTranslations":{"ar":"استرجع مسار Greyhound بمعرّف الرحلة أو بحث الطريق البديل، مع مقاطع الركوب المرتبة وأوقات المحطات وسياق التحويلات لشرح الرحلة المختارة. استخدم السجلات المنظمة لبناء واجهة لاكتشاف الحافلات أو ربط مواقع المصدر ومراجع الرحلات، مع توضيح تواريخ السفر ونطاق الأجرة وأمثلة الطلبات المدعومة وتسعير التنفيذ الحالي في صفحة API.","ja":"出典の旅程 UID またはルート照会で Greyhound 旅程を取得し、区間順・停車時刻・接続情報を確認できます。 構造化記録をバス検索画面や出典の場所・旅程参照の連携に使い、旅行日・運賃範囲を明示できます。API 詳細ページには対応リクエスト例と選択した実装の料金があります。","zh":"通过来源行程 UID 或路线回退查询 Greyhound 行程，获取有序分段、停站时间和换乘上下文，展示所选路径。 可利用结构化记录构建巴士发现界面或关联来源地点与行程引用，保留出行日期和票价范围；API 详情页提供受支持的请求示例及当前实现价格。"},"effectContentHtml":"","executionMode":"sync","id":"e088ec86-1662-4ba7-b6e3-6e3ffbb03496","includedContentHtml":"","inputs":[{"description":"Trip uid from `/greyhound/v1/search` (`direct:…` or `interconnection:…`).","location":"query","name":"uid","nullable":false,"required":false,"type":"string"},{"description":"Instead of `uid`: departure city (with `to`).","location":"query","name":"from","nullable":false,"required":false,"type":"string"},{"description":"Arrival city.","location":"query","name":"to","nullable":false,"required":false,"type":"string"},{"description":"Travel date `YYYY-MM-DD` (with `from`/`to`).","location":"query","name":"date","nullable":false,"required":false,"type":"string"},{"description":"Days from today (with `from`/`to`).","location":"query","name":"days_ahead","nullable":false,"required":false,"type":"integer"},{"description":"Which departure of that day (0 = first).","location":"query","name":"index","nullable":false,"required":false,"type":"integer"},{"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/greyhound.png","method":"GET","name":"Greyhound trip itinerary API","nameTranslations":{},"overviewHtml":"\u003ch2\u003eGreyhound Trip Itinerary API\u003c/h2\u003e\n\u003cp\u003eUse uid exactly as returned by Trip Search. Alternatively pass from, to and date or days_ahead with index; the route fallback selects a source result rather than a stable identity across later searches.\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\u003eChoose the lookup or search inputs described below. Optional: uid, from, to, date, days_ahead, index. 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 · Greyhound trip itinerary 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\u003eJourney detail\u003c/strong\u003e: Keep the opaque UID and ordered source legs.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eStop display\u003c/strong\u003e: Preserve timestamps, source offsets and missing endpoint values.\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\u003euid\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eOpaque source itinerary identifier\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003elegs[].line\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eSource service-line label\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003elegs[].type\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eSource itinerary-leg type\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003elegs[].stops[].name\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eSource stop name\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003elegs[].stops[].departure\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eSource stop departure timestamp\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003elegs[].transfer_minutes\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eSource connection transfer minutes when present\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/greyhound/v1/trip \\\n  -H \u0026#34;Authorization: Bearer ${OPENANY_API_KEY}\u0026#34; \\\n  --data-urlencode days_ahead=30 \\\n  --data-urlencode \u0026#39;from=New York\u0026#39; \\\n  --data-urlencode output=json \\\n  --data-urlencode raw=0 \\\n  --data-urlencode to=Boston\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/e088ec86-1662-4ba7-b6e3-6e3ffbb03496\"\u003ePublished Greyhound Trip Itinerary 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\u003eWhere should uid come from?\u003c/h3\u003e\n\u003cp\u003eCopy the exact UID returned by Trip Search, including its direct or interconnection prefix. Do not construct it from individual fragments.\u003c/p\u003e\n\u003ch3\u003eWhat does index select in the route fallback?\u003c/h3\u003e\n\u003cp\u003eIt is zero-based; index 0 selects the first returned journey for the supplied route and date context. Later searches can have different ordering.\u003c/p\u003e\n\u003ch3\u003eShould a connecting journey be flattened into one ride?\u003c/h3\u003e\n\u003cp\u003eKeep ordered legs, stop sequences and transfer context so connections remain visible.\u003c/p\u003e\n\u003ch3\u003eIs a null first-stop arrival an error?\u003c/h3\u003e\n\u003cp\u003eNot by itself. A first departure can have no arrival timestamp; preserve missing endpoint times and source offsets.\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/greyhound/greyhound-city-autocomplete-api\"\u003eGreyhound city autocomplete API\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/greyhound/greyhound-city-profile-api\"\u003eGreyhound city profile API\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/greyhound/greyhound-destinations-from-a-city-api\"\u003eGreyhound destinations from a city API\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n","pagePath":"/markets/apis/greyhound/greyhound-trip-itinerary-api?offering=e088ec86-1662-4ba7-b6e3-6e3ffbb03496","providerId":"apish","publicPath":"/v1/agent-apis/apish/greyhound/v1/trip","requestContentType":"none","revision":3,"samples":[{"http_status":200,"name":"Official example · Live API.SH response · Minimal request","request":{"body":null,"headers":{},"path":{},"query":{"days_ahead":"30","from":"New York","output":"json","raw":"0","to":"Boston"}},"response_body":{"arrival":{"address":"700 Atlantic Ave","city":"Boston, MA","country":"US","description":"Greyhound and FlixBus buses will arrive and depart from the South Wing and departure gate numbers will be Gates #13, #14, and #18-27.","lat":42.350469,"lng":-71.05618,"name":"Boston (South Station)","zip_code":"02111"},"cached":false,"credits_used":1,"departure":{"address":"625 8Th Ave","city":"New York, NY","country":"US","description":"Bus will stop at the Port Authority Bus Terminal located at 625 8th Avenue. The ticket counter is located in the North wing on the subway level. Bus gates are on the lower level 60 - 68 and 79 - 85.","lat":40.75695,"lng":-73.9905,"name":"New York Port Authority","zip_code":"10018"},"fetched_at":"2026-11-19T12:25:09.662Z","legs":[{"brand":"Greyhound","brand_type":"core","carriers":["Greyhound Lines, Inc."],"line":"US0230","line_destination":"Boston (South Station)","line_id":49133,"messages":{"from":null,"to":null},"operators":["Greyhound Lines, Inc"],"stops":[{"arrival":null,"departure":"2026-12-19T01:00:00-05:00","name":"New York Port Authority","time":"2026-12-19T01:00:00-05:00"},{"arrival":"2026-12-19T03:30:00-05:00","departure":"2026-12-19T03:45:00-05:00","name":"Hartford (Union Station)","time":"2026-12-19T03:30:00-05:00"},{"arrival":"2026-12-19T05:30:00-05:00","departure":null,"name":"Boston (South Station)","time":"2026-12-19T05:30:00-05:00"}],"sub_brand":null,"transfer_minutes":null,"type":"ride","warnings":[]}],"uid":"direct:6d9dedb5-1502-4892-949c-1c1a5fd2667a:e204bb66-8ab9-4437-8d0d-2b603cdf0c43:9b6bfd56-3ecb-11ea-8017-02437075395e"}}],"seoDescription":"Get Greyhound itineraries by journey UID or route via REST or MCP powered by Apish. Pay per call, no subscription. Built for journey detail workflows.","updatedAt":"2026-12-03T02:47:04.224Z","usageInstructionsHtml":""}}