{"openapi":"3.1.0","info":{"title":"Travelstart Flights Hotels and Buses Data (x402 & MCP)","version":"0.1.0","description":"Travelstart flight fares, airline segments, hotel offers, bus trips and airport suggestions, one row per entity.","x-guidance":"Structured real-time web intelligence APIs paid per delivered row in USDC via x402 on Base. All endpoints are synchronous at POST /s/<site>/v1/<endpoint> and also exposed over stateless MCP at POST /mcp. Supports x402 v2 'upto' (Permit2, charged strictly for delivered rows) and 'exact' (EIP-3009). Empty/0-row (404), invalid input (422), timeout (504), and upstream failures (502) are never charged.","contact":{"email":"ops@opendata.best"}},"servers":[{"url":"https://ai.opendata.best"}],"paths":{"/s/travelstart-com/v1/search":{"post":{"operationId":"travelstart_com_search","summary":"Travelstart Flights Hotels and Buses Data: Search Travelstart flights, hotels and airports","description":"Query Travelstart flights, hotels, hotel details, buses and airport autocomplete suggestions. Unit price: $0.003000/row USDC (default quote 10 rows, max 20 rows). Unsettled / 0-row / error responses are never charged.","tags":["travelstart-com","Travel"],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","amount":"0.030000"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"type":"string","description":"Choose a mode or leave auto to infer it from target fields. Hotel IDs select hotelDetails, a place ID selects hotelsSearch, a query selects suggestions, and from plus to selects flightsSearch.","default":"auto","enum":["auto","flightsSearch","suggestions","airportSuggest","hotelsSearch","hotelDetails","hotelsRecommended","buses","busLocations","carsSearch","packages"]},"query":{"type":"string","description":"Enter airport or city text for suggestions, a hotel city for hotelsSearch, or a stop name for busLocations. Choose hotelsSearch explicitly for a hotel city query."},"from":{"type":"string","description":"Flights: origin IATA code or city. Buses: departure city (e.g. Johannesburg)."},"to":{"type":"string","description":"Flights: destination IATA code or city. Buses: arrival city (e.g. Cape Town)."},"hotelIds":{"type":"array","items":{"type":"string"},"description":"For hotelDetails, enter hotel IDs returned by hotelsSearch. Multiple IDs can be supplied in one run."},"placeId":{"type":"string","description":"For hotelsSearch, enter a known hotel place identifier instead of a city query."},"countrySite":{"type":"string","description":"Select a flight market using a Travelstart domain or a listed market code. Flight prices use that market currency; hotel and bus coverage is mode-specific.","default":"travelstart.com","enum":["travelstart.com","travelstart.co.za","travelstart.com.ng","travelstart.co.ke","AE","BH","BW","DZ","EG","GH","JO","KW","LY","MA","ME","MW","NA","OM","PK","QA","SA","TN","TT","TZ"]},"departureDate":{"type":"string","description":"Departure date in YYYY-MM-DD format. When omitted, defaults to 24 days from today.","pattern":"^(\\d{4}-\\d{2}-\\d{2})?$"},"returnDate":{"type":"string","description":"Return date in YYYY-MM-DD format. Return flights default to seven days after departure; enter a date explicitly for return bus trips.","pattern":"^(\\d{4}-\\d{2}-\\d{2})?$"},"tripType":{"type":"string","description":"Choose return, oneway or multi. Multi-city flights require at least two entries in legs, each with from, to and departureDate.","default":"return","enum":["return","oneway","multi"]},"cabin":{"type":"string","description":"Choose ECONOMY, PREMIUM, BUSINESS or FIRST for flight searches.","default":"ECONOMY","enum":["ECONOMY","PREMIUM","BUSINESS","FIRST"]},"adults":{"type":"integer","description":"Number of adult flight travellers or bus passengers, from 1 to 9. For hotels, this is the adult count per room.","default":1,"minimum":1},"children":{"type":"integer","description":"Number of child flight travellers, from 0 to 8. Use childrenAges for hotels.","default":0,"minimum":0},"infants":{"type":"integer","description":"Number of infant flight travellers, from 0 to 4.","default":0,"minimum":0},"youngAdults":{"type":"integer","description":"Number of young-adult flight travellers, from 0 to 8.","default":0,"minimum":0},"currency":{"type":"string","description":"Hotels: price currency (default ZAR). Flight prices come in the market's currency."},"legs":{"type":"array","items":{"type":"string"},"description":"For multi-city flights, enter at least two objects containing from, to and departureDate. Use IATA codes or city names and YYYY-MM-DD dates."},"checkin":{"type":"string","description":"YYYY-MM-DD (default: 24 days from today).","pattern":"^(\\d{4}-\\d{2}-\\d{2})?$"},"checkout":{"type":"string","description":"Hotel check-out date in YYYY-MM-DD format. If omitted or not after check-in, it is set to one day after check-in.","pattern":"^(\\d{4}-\\d{2}-\\d{2})?$"},"rooms":{"type":"integer","description":"Hotel room count from 1 to 8; defaults to 1. The adults and childrenAges values apply to each room.","minimum":1,"maximum":8},"childrenAges":{"type":"array","items":{"type":"string"},"description":"Hotel children's ages per room, such as [5, 9], with at most eight ages. Omit for no children."},"guestNationality":{"type":"string","description":"Hotels: ISO country of the guests (default ZA)."},"scrapeDetails":{"type":"boolean","description":"hotelsSearch: also read each hotel's details (its own phone, postal code, policies). Slower.","default":false},"includeRooms":{"type":"boolean","description":"For hotelDetails, emit separate room-offer rows when available; each is billed at the same price as a hotel row. Off by default; all rows share the per-hotel limit.","default":false},"maxResults":{"type":"integer","description":"Maximum rows for each search route/query or each hotel ID (default 70, up to 1000). Larger values are collected in parts of up to 70 rows. All row types, including opt-in room offers, share the budget for their input. The run stops at your maximum total charge; free platform plans allow 200 rows per run and 10 runs.","default":10,"minimum":1,"maximum":20}},"additionalProperties":false},"example":{"mode":"flightsSearch","from":"JNB","to":"CPT","tripType":"oneway","maxResults":10}}}},"responses":{"200":{"description":"Synchronous data rows with x402 PAYMENT-RESPONSE receipt header.","headers":{"PAYMENT-RESPONSE":{"description":"Base64-encoded x402 v2 SettleResponse receipt.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Response_travelstart_com"},"example":{"jobId":"job_travelst_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"rowType":"example_rowType","mode":"example_mode","direction":"example_direction","countrySite":"example_countrySite","market":"example_market","id":"example_001"}],"meta":{"site":"travelstart-com","endpoint":"search","maxResults":10,"payment":{"scheme":"upto","network":"eip155:8453","quotedMicrousd":30000,"settledMicrousd":3000,"transaction":"0x0000000000000000000000000000000000000000000000000000000000000000"}}}}}},"402":{"description":"Payment required or invalid/declined payment authorization (never charged).","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 v2 PaymentRequired quote.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"no_results: 0 rows matched the query; aborted before settlement (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"payment_id_conflict: payment-identifier reused with different parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Invalid or missing request parameters (validated before /verify; charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit or payer cooldown exceeded (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Upstream source failed or blocked (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"settlement_pending or facilitator_unavailable; retry same payment to reconcile.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"upstream_timeout: synchronous deadline reached and task cancelled (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/s/travelstart-com/v1/health":{"get":{"operationId":"travelstart_com_health","summary":"Travelstart Flights Hotels and Buses Data: health check","description":"Free readiness check (never returns 402 and never starts a collection).","tags":["travelstart-com","health"],"responses":{"200":{"description":"Operational","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}}}}}},"components":{"schemas":{"ErrorDetail":{"type":"object","required":["code","message","retryable"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"retryable":{"type":"boolean"},"charged":{"type":"boolean"}}},"ErrorResponse":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/ErrorDetail"}}},"HealthStatus":{"type":"object","required":["ok","site","status","endpoints","rowsBilled"],"properties":{"ok":{"type":"boolean"},"site":{"type":"string"},"status":{"type":"string","enum":["operational","unavailable"]},"endpoints":{"type":"array","items":{"type":"string"}},"rowsBilled":{"type":"integer"}}},"Row_travelstart_com":{"type":"object","properties":{"rowType":{"type":["string","null"],"title":"Type"},"mode":{"type":["string","null"],"title":"Mode"},"direction":{"type":["string","null"],"title":"Dir"},"countrySite":{"type":["string","null"],"title":"Site"},"market":{"type":["string","null"],"title":"Market"},"id":{"type":["string","null"],"title":"id"},"name":{"type":["string","null"],"title":"name"},"airlineCode":{"type":["string","null"],"title":"Airline"},"airlineName":{"type":["string","null"],"title":"Airline name"},"amount":{"type":["string","null"],"title":"Amount"},"currencyCode":{"type":["string","null"],"title":"Ccy"},"priceText":{"type":["string","null"],"title":"Price"},"origin":{"type":["string","null"],"title":"From"},"destination":{"type":["string","null"],"title":"Leg1 to"},"finalDestination":{"type":["string","null"],"title":"To"},"iata":{"type":["string","null"],"title":"IATA"},"provider":{"type":["string","null"],"title":"Provider"},"from":{"type":["string","null"],"title":"from"},"to":{"type":["string","null"],"title":"to"},"price":{"type":["string","null"],"title":"Price"},"currency":{"type":["string","null"],"title":"Ccy"},"org":{"type":["string","null"],"title":"org"},"phones":{"type":["string","null"],"title":"phones"},"phone":{"type":["string","null"],"title":"phone"},"emails":{"type":["string","null"],"title":"emails"},"address":{"type":["string","null"],"title":"address"},"geo":{"type":["string","null"],"title":"geo"},"person":{"type":["string","null"],"title":"person"},"web":{"type":["string","null"],"title":"web"},"leadSource":{"type":["string","null"],"title":"leadSource"},"leadReveal":{"type":["string","null"],"title":"leadReveal"},"leadAbsences":{"type":["string","null"],"title":"leadAbsences"},"capturedAt":{"type":["string","null"],"title":"capturedAt"}},"additionalProperties":true},"Response_travelstart_com":{"type":"object","properties":{"jobId":{"type":"string"},"status":{"type":"string"},"done":{"type":"boolean"},"rowCount":{"type":"integer","minimum":1},"rowsBilled":{"type":"integer","minimum":1},"rowsDelivered":{"type":"integer","minimum":1},"rows":{"type":"array","items":{"$ref":"#/components/schemas/Row_travelstart_com"}},"meta":{"type":"object","properties":{"site":{"type":"string"},"endpoint":{"type":"string"},"maxResults":{"type":"integer"},"payment":{"type":"object","properties":{"scheme":{"type":"string"},"network":{"type":"string"},"quotedMicrousd":{"type":"integer"},"settledMicrousd":{"type":"integer"},"transaction":{"type":"string"},"payer":{"type":"string"}}}}}},"required":["jobId","status","done","rowCount","rows"]}}}}