{"openapi":"3.0.0","info":{"title":"Skyscanner Flights Hotels and Travel Deals Data","version":"1.0.0","description":"Public Skyscanner flight fares, airlines, stops, destination route deals and hotel listings, one row per entity."},"servers":[{"url":"https://ah-skyscanner-net.opendata.best/s/skyscanner-net"}],"paths":{"/v1/search":{"post":{"operationId":"search","summary":"Search Skyscanner flights, routes and hotels","description":"Query public Skyscanner flight offers, route deals, hotels and listing details by origin, destination or place.","tags":["search"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"service":{"type":"string","enum":["auto","flights","hotels","flights_seo","hotel_detail","flight_detail"],"description":"Service. Auto chooses a service from your target: hotel or flight link, city identifier, destination name, or route codes, in that order. Select a service explicitly to use a city name for hotels instead of destination deals.","default":"auto","example":"auto"},"origin":{"type":"string","description":"Origin place code. Skyscanner origin code for flights, such as bkk. You can enter a route as bkk|sin; if only destination is supplied, the origin is bkk.","example":"bkk"},"destination":{"type":"string","description":"Destination place code. Skyscanner destination code for flights, such as sin. If only origin is supplied, the destination is sin.","example":"sin"},"place":{"type":"string","description":"Destination code or city name. A supported destination code or city name, such as sin, dxb or london. Auto selects destination deals; select hotels to search a city for stays."},"entityId":{"type":"string","description":"Hotel-search city identifier. City or area identifier for hotel searches, such as 27546111 for Singapore. This is not a hotel ID from an /ht- link; alternatively select hotels and supply a supported city in place."},"hotelUrl":{"type":"string","description":"Live hotel URL. Paste a current HTTPS hotel detail link from skyscanner.net or www.skyscanner.net containing /ht- followed by the hotel ID. Copy a real result link rather than inventing an ID."},"flightUrl":{"type":"string","description":"Flight detail URL. Paste a current HTTPS flight detail link from skyscanner.net or www.skyscanner.net containing /config/ followed by the itinerary ID. Copy a real result link rather than inventing an ID."},"maxResults":{"type":"integer","minimum":1,"maximum":20,"description":"Max rows per input (each listed URL, ID or keyword; a single target counts as one input). All row types share this allowance. Each plan caps the rows of one request (BASIC 10, PRO 70, ULTRA 200, MEGA 500); larger values are lowered to your plan's cap. You pay per delivered row (Rows).","default":10,"example":3},"departureDate":{"type":"string","description":"Flight departure (YYYY-MM-DD). Flight departure in YYYY-MM-DD format. Leave empty for 21 days from today; past dates are not accepted."},"returnDate":{"type":"string","description":"Flight return (YYYY-MM-DD). Return date for a round trip, in YYYY-MM-DD format, on or after departure. Leave empty for seven days after departure."},"tripType":{"type":"string","enum":["roundtrip","oneway"],"description":"Trip type. Choose roundtrip to include a return flight, or oneway for an outbound flight only.","default":"roundtrip","example":"roundtrip"},"checkin":{"type":"string","description":"Hotel check-in (YYYY-MM-DD). Hotel arrival date in YYYY-MM-DD format. Leave empty for 21 days from today."},"checkout":{"type":"string","description":"Hotel check-out (YYYY-MM-DD). Hotel departure date in YYYY-MM-DD format, after check-in. Leave empty for two days after check-in."},"adults":{"type":"integer","minimum":1,"maximum":10,"description":"Adults. Number of adult passengers or hotel guests, from 1 to 10.","default":1,"example":1},"children":{"type":"integer","minimum":0,"maximum":10,"description":"Children count. Number of children, from 0 to 10. Flights assume age 8 if child ages are omitted; hotel searches use age 8 for every child.","default":0,"example":0},"childrenv2":{"type":"string","description":"Flight child ages. Flight child ages separated by a pipe, such as 8|5. Hotel searches use the children count instead of these ages."},"rooms":{"type":"integer","minimum":1,"maximum":8,"description":"Hotel rooms. Number of hotel rooms, from 1 to 8. Not used for flight searches.","default":1,"example":1},"cabinclass":{"type":"string","enum":["economy","premiumeconomy","business","first"],"description":"Cabin. Flight cabin: economy, premiumeconomy, business or first.","default":"economy","example":"economy"},"preferDirects":{"type":"boolean","description":"Prefer direct flights. Prefer direct flights and exclude itineraries with known stops. Rows without stop information may remain; this does not apply to hotels or destination deals.","default":false,"example":false},"market":{"type":"string","enum":["skyscanner.net"],"description":"Market. Only skyscanner.net is supported, using English and GBP.","default":"skyscanner.net","example":"skyscanner.net"},"placeSlug":{"type":"string","description":"Destination-page URL slug. For a destination code outside the supported list, enter the exact slug after cheap-flights-to- from a real Skyscanner flights-to URL. Leave empty for supported codes and city names."},"geoId":{"type":"string","description":"Alternative hotel-search city identifier. An alternative to entityId for selecting a hotel-search city or area. Auto selects hotels when this field is filled."},"dropoffGeoId":{"type":"string","description":"Car drop-off identifier (not available). Leave empty."},"driverAge":{"type":"integer","minimum":18,"maximum":99,"description":"Driver age (not available). Not used by the supported services.","default":30,"example":30},"sort":{"type":"string","description":"Sort. Compatibility setting. Leave empty and sort exported rows yourself; a global result order is not guaranteed."},"includeDetail":{"type":"boolean","description":"Optional flight detail follow-up. Request a follow-up to a current flight detail link when available within the row limit. This is off by default, does not guarantee extra fields, and is not required for hotel-search addresses.","default":false,"example":false},"requestId":{"type":"string","pattern":"^[A-Za-z0-9._:-]{1,80}$","description":"Optional. Your id for this request: repeating it while the job runs returns the same job."}}},"example":{"service":"flights","origin":"bkk","destination":"sin","tripType":"roundtrip","maxResults":3}}}},"responses":{"200":{"description":"Done within the request: the rows.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RowsPage"}}}},"404":{"description":"No results matched the query (nothing was billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid or missing parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"At capacity, too many running jobs, or rolling 24-hour row limit reached; retry after Retry-After seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"The source could not be collected this time (not billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"504":{"description":"Synchronous timeout reached before completion; task cancelled (nothing was billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/health":{"get":{"operationId":"health","summary":"API health check","description":"Lightweight readiness check for this API. Never starts a collection and always bills 0 rows.","tags":["health"],"responses":{"200":{"description":"API is operational (0 rows).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}},"503":{"description":"API is temporarily unavailable (not billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}}}}}},"components":{"schemas":{"Row":{"type":"object","description":"One collected entity. Field availability depends on rowType and the source. Fields always present (a|b = at least one of them): every row: listingId, name, url, price.","properties":{"name":{"type":"string","minLength":1,"pattern":"\\S"},"type":{"type":"string"},"authority":{"type":"string"},"listingId":{"type":"string","minLength":1,"pattern":"\\S"},"hotelId":{"nullable":true,"type":"string"},"itineraryConfigId":{"nullable":true,"type":"string"},"service":{"nullable":true,"type":"string"},"url":{"nullable":true,"type":"string"},"priceDisplay":{"nullable":true,"type":"string"},"price":{"nullable":true,"type":"number"},"currency":{"nullable":true,"type":"string"},"origin":{"nullable":true,"type":"string"},"destination":{"nullable":true,"type":"string"},"phones":{"type":"array","items":{}},"emails":{"type":"array","items":{}},"address":{"nullable":true,"type":"object"},"person":{"nullable":true,"type":"object"},"leadAbsences":{"nullable":true,"type":"object"}},"additionalProperties":true},"Error":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/ErrorDetail"}}},"ErrorDetail":{"type":"object","required":["code","message","retryable"],"properties":{"code":{"type":"string","example":"invalid_input"},"message":{"type":"string"},"retryable":{"type":"boolean"}}},"JobStatus":{"type":"object","properties":{"jobId":{"type":"string"},"status":{"type":"string","enum":["queued","running","succeeded","partial","failed","cancelled"]},"done":{"type":"boolean"},"rowsAvailable":{"type":"integer"},"rowsDelivered":{"type":"integer","description":"Rows already delivered (and billed) to you for this job."},"rowsLimit":{"type":"integer","description":"Most rows this job can deliver."},"estimatedFinishSec":{"type":"integer","description":"While running: estimated seconds until done."},"statusUrl":{"type":"string"},"resultsUrl":{"type":"string"},"expiresAt":{"type":"string","format":"date-time"},"retentionHours":{"type":"integer"},"error":{"$ref":"#/components/schemas/ErrorDetail"}}},"RowsPage":{"allOf":[{"$ref":"#/components/schemas/JobStatus"},{"type":"object","properties":{"offset":{"type":"integer"},"nextOffset":{"type":"integer"},"hasMore":{"type":"boolean"},"rowCount":{"type":"integer"},"rowsBilled":{"type":"integer","description":"Rows delivered by this response."},"rows":{"type":"array","items":{"$ref":"#/components/schemas/Row"}},"meta":{"type":"object","additionalProperties":true}}}]},"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"}}}}}}