all-about-apikey/aviationstack
Muhammad Daffa 2eba183f8b Added 13 templates 2022-08-18 14:40:21 +07:00
..
README.md Added 13 templates 2022-08-18 14:40:21 +07:00

README.md

aviationstack

Description

Real-time Flight Status & Global Aviation Data API

Example Request

  • Curl
curl "https://api.aviationstack.com/v1/flights?access_key={{token}}"
  • Raw
GET /v1/flights?access_key={{token}} HTTP/1.1
Host: api.aviationstack.com
...

Response

  • Success
{
    "pagination": {
        "limit": 100,
        "offset": 0,
        "count": 100,
        "total": 1669022
    },
    "data": [
        {
            "flight_date": "2019-12-12",
            "flight_status": "active",
            "departure": {
                "airport": "San Francisco International",
                "timezone": "America/Los_Angeles",
                "iata": "SFO",
                "icao": "KSFO",
                "terminal": "2",
                "gate": "D11",
                ...
            }
        }
    ]
}
  • Error
{
    "error": {
        "code": "invalid_access_key",
        "message": "You have not supplied a valid API Access Key."
    }
}

Regex

[a-z0-9]{32}

Example API key

tue3sv9hzsey1me4l7fwq3t46u5k8wag