Trip Com Scraper

ENDPOINTS
GET/flights/airports

Search Airports

Find cities and airports by name or code: IATA codes, country, coordinates and time zone.

QUERY PARAMS

City, airport name or IATA code.

Examples:

  • New York
  • JFK

Language of city, airport and country names.

Default: en-US

Examples: en-US, en-GB, ja-JP, de-DE, fr-FR

{
  "query": "New York",
  "count": 2,
  "results": [
    {
      "id": 633,
      "kind": "city",
      "name": "New York",
      "code": "NYC",
      "airport_code": null,
      "city": "New York",
      "country": "United States",
      "country_code": "US",
      "latitude": 40.751667,
      "longitude": -73.994164,
      "timezone_offset_hours": -5.0,
      "airports": [
        {
          "id": 4003,
          "name": "John F. Kennedy International Airport",
          "code": "JFK",
          "city_code": "NYC",
          "city": "New York",
          "country": "United States",
          "latitude": 40.751667,
          "longitude": -73.994164,
          "timezone_offset_hours": -5.0
        },
        {
          "id": 1293,
          "name": "LaGuardia Airport",
          "code": "LGA",
          "city_code": "NYC",
          "city": "New York",
          "country": "United States",
          "latitude": 40.751667,
          "longitude": -73.994164,
          "timezone_offset_hours": -5.0
        },
        {
          "id": 2230,
          "name": "Newark Liberty International Airport",
          "code": "EWR",
          "city_code": "NYC",
          "city": "New York",
          "country": "United States",
          "latitude": 40.751667,
          "longitude": -73.994164,
          "timezone_offset_hours": -5.0
        },
        {
          "id": 527,
          "name": "Stewart International Airport",
          "code": "SWF",
          "city_code": "NYC",
          "city": "New York",
          "country": "United States",
          "latitude": 40.751667,
          "longitude": -73.994164,
          "timezone_offset_hours": -5.0
        }
      ]
    },
    {
      "id": 10204,
      "kind": "place",
      "name": "New York State",
      "code": null,
      "airport_code": null,
      "city": null,
      "country": "United States",
      "country_code": "US",
      "latitude": null,
      "longitude": null,
      "timezone_offset_hours": -10000.0,
      "airports": [
        {
          "id": 633,
          "name": "New York",
          "code": null,
          "city_code": "NYC",
          "city": "New York",
          "country": "United States",
          "latitude": 40.751667,
          "longitude": -73.994164,
          "timezone_offset_hours": -5.0
        },
        {
          "id": 1865,
          "name": "Albany",
          "code": null,
          "city_code": "ALB",
          "city": "Albany",
          "country": "United States",
          "latitude": 42.733334,
          "longitude": -73.800003,
          "timezone_offset_hours": -5.0
        },
        {
          "id": 1298,
          "name": "Buffalo",
          "code": null,
          "city_code": "BUF",
          "city": "Buffalo",
          "country": "United States",
          "latitude": 42.940556,
          "longitude": -78.732224,
          "timezone_offset_hours": -5.0
        },
        {
          "id": 3281,
          "name": "Syracuse",
          "code": null,
          "city_code": "SYR",
          "city": "Syracuse",
          "country": "United States",
          "latitude": 43.111111,
          "longitude": -76.106384,
          "timezone_offset_hours": -5.0
        },
        {
          "id": 1860,
          "name": "Rochester",
          "code": null,
          "city_code": "ROC",
          "city": "Rochester",
          "country": "United States",
          "latitude": 43.118889,
          "longitude": -77.672501,
          "timezone_offset_hours": -5.0
        },
        {
          "id": 7029,
          "name": "Islip",
          "code": null,
          "city_code": "ISP",
          "city": "Islip",
          "country": "United States",
          "latitude": 40.795277,
          "longitude": -73.100273,
          "timezone_offset_hours": -5.0
        }
      ]
    }
  ]
}