A Vacation Weather Checker

A Vacation Weather Checker · GPT-Aktionen

OpenWeatherMap API

Retrieves current weather data for a specific location.

  • GET /weatherGetCurrentWeather

    Get current weather data for a specific location

  • GET /forecast/dailyGetDailyForecast

    Get daily weather forecast data for a specific location

Ursprüngliches API-Schema
{
  "openapi": "3.1.0",
  "info": {
    "title": "OpenWeatherMap API",
    "description": "Retrieves current weather data for a specific location.",
    "version": "v1.0.0"
  },
  "servers": [
    {
      "url": "https://api.openweathermap.org/data/2.5"
    }
  ],
  "paths": {
    "/weather": {
      "get": {
        "description": "Get current weather data for a specific location",
        "operationId": "GetCurrentWeather",
        "parameters": [
          {
            "name": "lat",
            "in": "query",
            "required": true,
            "description": "Latitude of the location",
            "schema": {
              "type": "number",
              "format": "float"
            }
          },
          {
            "name": "lon",
            "in": "query",
            "required": true,
            "description": "Longitude of the location",
            "schema": {
              "type": "number",
              "format": "float"
            }
          },
          {
            "name": "appid",
            "in": "query",
            "required": true,
            "description": "Your unique API key",
            "schema": {
              "type": "string",
              "default": "8061ac42ecaf49d45ad4b9e42a429c74"
            }
          },
          {
            "name": "mode",
            "in": "query",
            "required": false,
            "description": "Response format (json, xml, html)",
            "schema": {
              "type": "string",
              "enum": [
                "json",
                "xml",
                "html"
              ]
            }
          },
          {
            "name": "units",
            "in": "query",
            "required": false,
            "description": "Units of measurement (standard, metric, imperial)",
            "schema": {
              "type": "string",
              "enum": [
                "standard",
                "metric",
                "imperial"
              ]
            }
          }
        ],
        "deprecated": false
      }
    },
    "/forecast/daily": {
      "get": {
        "description": "Get daily weather forecast data for a specific location",
        "operationId": "GetDailyForecast",
        "parameters": [
          {
            "name": "lat",
            "in": "query",
            "required": true,
            "description": "Latitude of the location",
            "schema": {
              "type": "number",
              "format": "float"
            }
          },
          {
            "name": "lon",
            "in": "query",
            "required": true,
            "description": "Longitude of the location",
            "schema": {
              "type": "number",
              "format": "float"
            }
          },
          {
            "name": "appid",
            "in": "query",
            "required": true,
            "description": "Your unique API key",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cnt",
            "in": "query",
            "required": false,
            "description": "Number of days for the forecast (from 1 to 16)",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "deprecated": false
      }
    }
  },
  "components": {
    "schemas": {}
  }
}