METAR GPT

METAR GPT · GPT-Aktionen

Aviation Weather API

API for retrieving aviation weather data including airport and METAR information.

  • GET /airportGet airport data
  • GET /metarGet METAR data
Ursprüngliches API-Schema
{
  "openapi": "3.1.1",
  "info": {
    "title": "Aviation Weather API",
    "version": "1.0.0",
    "description": "API for retrieving aviation weather data including airport and METAR information."
  },
  "servers": [
    {
      "url": "https://aviationweather.gov/api/data"
    }
  ],
  "paths": {
    "/airport": {
      "get": {
        "summary": "Get airport data",
        "operationId": "getAirportData",
        "parameters": [
          {
            "name": "ids",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "ICAO airport code"
          },
          {
            "name": "format",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "json",
                "raw"
              ]
            },
            "description": "Response format"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response"
          }
        }
      }
    },
    "/metar": {
      "get": {
        "summary": "Get METAR data",
        "operationId": "getMetarData",
        "parameters": [
          {
            "name": "ids",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "ICAO airport code"
          },
          {
            "name": "format",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "json",
                "raw"
              ]
            },
            "description": "Response format"
          },
          {
            "name": "taf",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            },
            "description": "Include TAF data"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response"
          }
        }
      }
    }
  }
}