Response mapping index
With the new v3 the response object has changed around a lot so this guide will explain all the changes and help you navigate the new structure.
Important differences
routes,datesandquotesare all returned to the response.- The structure of the response has now changed, with the main content under
content.resultsinstead ofqueryobject Carriers&Placesare now under thecontent.resultsobject instead of the root node.Currencieshave been removed from the response data.- Changed a lot of objects types to be maps in
v3instead of arrays inv1.0. - All properties in the response now are formatted with camelCase instead of an PascalCase . For example
MinPricehas becomeminPrice. - Dates have now changed from a string value
2023-01-20T16:45:00to a Date object.
Changed in v3
Quotes
QuoteIdis now moved outside as the key.
Here is the new structure in v3 compared to v1.0.
| v1.0 (before) | v3 (after) |
|---|---|
| |
Places
PlaceIdhas been removed.SkyscannerCodehas been removed.entityIdhas been added to the places object. This is an internal ID for Skyscanner.- The object now has a key which is the
entityIdvalue. iatahas been addedparentIdhas been added referencing the id of the parent place.
Here is the new structure in v3 compared to v1.0.
| v1.0 (before) | v3 (after) |
|---|---|
| |
Carriers
CarrierIdis now moved outside as the key.iatahas been addedimageUrlhas been added
Here is the new structure in v3 compared to v1.0.
| v1.0 (before) | v3 (after) |
|---|---|
| |
Routes
Priceis now removed from routes. You can get it from the quotes referenced.QuoteDateTimeis now removed from routes.
Here is the new structure in v3 compared to v1.0.
| v1.0 (before) | v3 (after) |
|---|---|
| |
Dates
Priceis now removed from dates.
Here is the new structure in v3 compared to v1.0.
| v1.0 (before) | v3 (after) |
|---|---|
| |
Date values
Dates have changed from string values to an object.
Here is the new structure in v3 compared to v1.0.
| v1.0 (before) | v3 (after) |
|---|---|
| |
Layout
See the layout of the response in the API reference.