Skyscanner Scraper

ENDPOINTS
GET/locations/auto-complete

Location Autocomplete

Place suggestions for a partial query with the entity_id and IATA/sky code every search accepts; flight or hotel places.

QUERY PARAMS

Partial place name to complete.

Examples:

  • new york
  • lond

Which typeahead to query: flight returns airports and cities; hotel returns cities, districts, landmarks and hotels with nearby points of interest.

Default: flight

Allowed values: flight, hotel

Point-of-sale country as a 2-letter code. Not cosmetic: it changes which fares, partners and prices Skyscanner offers.

Default: US

Allowed values: any ISO 3166-1 alpha-2 code (US, GB, IN, DE, FR, JP, ...)

Response language as a BCP-47 tag.

Default: en-US

Allowed values: en-US, en-GB, fr-FR, de-DE, es-ES, ja-JP, ... (ll-CC or ll)

Pricing currency as a 3-letter ISO code.

Default: USD

Allowed values: USD, GBP, EUR, INR, JPY, ...

{
  "query": "new york",
  "count": 10,
  "results": [
    {
      "entity_id": "27537542",
      "sky_id": "NYCA",
      "name": "New York",
      "type": "city",
      "iata_code": "NYC",
      "hierarchy": "New York|New York|United States",
      "coordinates": {
        "latitude": 40.6940959901,
        "longitude": -73.9282670243
      },
      "city": {
        "sky_id": "NYCA",
        "name": "New York"
      },
      "region": {
        "id": "NY"
      },
      "country": {
        "code": "US",
        "name": "United States"
      }
    },
    {
      "entity_id": "95565058",
      "sky_id": "JFK",
      "name": "New York John F. Kennedy",
      "type": "airport",
      "iata_code": "JFK",
      "hierarchy": "New York John F. Kennedy (JFK), New York|New York|United States",
      "coordinates": {
        "latitude": 40.6412215,
        "longitude": -73.7781176
      },
      "city": {
        "sky_id": "NYCA",
        "name": "New York"
      },
      "region": {
        "id": "NY"
      },
      "country": {
        "code": "US",
        "name": "United States"
      }
    },
    {
      "entity_id": "95565059",
      "sky_id": "EWR",
      "name": "New York Newark",
      "type": "airport",
      "iata_code": "EWR",
      "hierarchy": "New York Newark (EWR), New York|New York|United States",
      "coordinates": {
        "latitude": 40.695833,
        "longitude": -74.171667
      },
      "city": {
        "sky_id": "NYCA",
        "name": "New York"
      },
      "region": {
        "id": "NJ"
      },
      "country": {
        "code": "US",
        "name": "United States"
      }
    },
    {
      "entity_id": "95565057",
      "sky_id": "LGA",
      "name": "New York LaGuardia",
      "type": "airport",
      "iata_code": "LGA",
      "hierarchy": "New York LaGuardia (LGA), New York|New York|United States",
      "coordinates": {
        "latitude": 40.779444,
        "longitude": -73.875833
      },
      "city": {
        "sky_id": "NYCA",
        "name": "New York"
      },
      "region": {
        "id": "NY"
      },
      "country": {
        "code": "US",
        "name": "United States"
      }
    },
    {
      "entity_id": "95566280",
      "sky_id": "SWF",
      "name": "Stewart International",
      "type": "airport",
      "iata_code": "SWF",
      "hierarchy": "Stewart International (SWF), New York|New York|United States",
      "coordinates": {
        "latitude": 41.505833,
        "longitude": -74.097222
      },
      "city": {
        "sky_id": "NYCA",
        "name": "New York"
      },
      "region": {
        "id": "NY"
      },
      "country": {
        "code": "US",
        "name": "United States"
      }
    },
    {
      "entity_id": "95673358",
      "sky_id": "BUF",
      "name": "Buffalo Niagara",
      "type": "airport",
      "iata_code": "BUF",
      "hierarchy": "Buffalo Niagara (BUF), Buffalo|Erie County|New York|United States",
      "coordinates": {
        "latitude": 42.941111,
        "longitude": -78.736389
      },
      "city": {
        "sky_id": "BUFA",
        "name": "Buffalo"
      },
      "region": {
        "id": "NY"
      },
      "country": {
        "code": "US",
        "name": "United States"
      }
    },
    {
      "entity_id": "95674229",
      "sky_id": "ALB",
      "name": "Albany",
      "type": "airport",
      "iata_code": "ALB",
      "hierarchy": "Albany (ALB), Albany|New York|United States",
      "coordinates": {
        "latitude": 42.745833,
        "longitude": -73.805278
      },
      "city": {
        "sky_id": "ALBA",
        "name": "Albany"
      },
      "region": {
        "id": "NY"
      },
      "country": {
        "code": "US",
        "name": "United States"
      }
    },
    {
      "entity_id": "95674004",
      "sky_id": "SYR",
      "name": "Syracuse",
      "type": "airport",
      "iata_code": "SYR",
      "hierarchy": "Syracuse (SYR), Syracuse|Onondaga County|New York|United States",
      "coordinates": {
        "latitude": 43.110556,
        "longitude": -76.1025
      },
      "city": {
        "sky_id": "SYRA",
        "name": "Syracuse"
      },
      "region": {
        "id": "NY"
      },
      "country": {
        "code": "US",
        "name": "United States"
      }
    },
    {
      "entity_id": "95673928",
      "sky_id": "ROC",
      "name": "Rochester",
      "type": "airport",
      "iata_code": "ROC",
      "hierarchy": "Rochester (ROC), Rochester|Monroe County|New York|United States",
      "coordinates": {
        "latitude": 43.121389,
        "longitude": -77.670833
      },
      "city": {
        "sky_id": "ROCA",
        "name": "Rochester"
      },
      "region": {
        "id": "NY"
      },
      "country": {
        "code": "US",
        "name": "United States"
      }
    },
    {
      "entity_id": "95566005",
      "sky_id": "ISP",
      "name": "Islip",
      "type": "airport",
      "iata_code": "ISP",
      "hierarchy": "Islip (ISP), Islip|Suffolk County|New York|United States",
      "coordinates": {
        "latitude": 40.795278,
        "longitude": -73.100278
      },
      "city": {
        "sky_id": "ISPA",
        "name": "Islip"
      },
      "region": {
        "id": "NY"
      },
      "country": {
        "code": "US",
        "name": "United States"
      }
    }
  ]
}