天気予報AIツール
天気予報AIツール · GPT-Aktionen
OpenWeatherMap 5 Day Weather Forecast API
This specification provides access to the 5 day weather forecast using the OpenWeatherMap API.
GET /forecastGet 5 day weather forecastRetrieve a 5 day weather forecast for a specific location.
Ursprüngliches API-Schema
{
"openapi": "3.1.0",
"info": {
"title": "OpenWeatherMap 5 Day Weather Forecast API",
"description": "This specification provides access to the 5 day weather forecast using the OpenWeatherMap API.",
"version": "v1.0.0"
},
"servers": [
{
"url": "https://api.openweathermap.org/data/2.5"
}
],
"paths": {
"/forecast": {
"get": {
"summary": "Get 5 day weather forecast",
"description": "Retrieve a 5 day weather forecast for a specific location.",
"operationId": "get5DayWeatherForecast",
"parameters": [
{
"name": "q",
"in": "query",
"required": true,
"description": "City name and country code divided by comma, use ISO 3166 country codes.",
"schema": {
"type": "string"
}
},
{
"name": "appid",
"in": "query",
"required": true,
"description": "our unique API key (you can find it in your account).",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "A successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ForecastResponse"
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"ForecastResponse": {
"type": "object",
"properties": {
"cod": {
"type": "string"
},
"message": {
"type": "number"
},
"cnt": {
"type": "number"
},
"list": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ForecastData"
}
}
}
},
"ForecastData": {
"type": "object",
"properties": {
"dt": {
"type": "number"
},
"main": {
"$ref": "#/components/schemas/MainData"
},
"weather": {
"type": "array",
"items": {
"$ref": "#/components/schemas/WeatherData"
}
}
}
},
"MainData": {
"type": "object",
"properties": {
"temp": {
"type": "number"
},
"feels_like": {
"type": "number"
},
"temp_min": {
"type": "number"
},
"temp_max": {
"type": "number"
},
"pressure": {
"type": "number"
},
"humidity": {
"type": "number"
}
}
},
"WeatherData": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"main": {
"type": "string"
},
"description": {
"type": "string"
},
"icon": {
"type": "string"
}
}
}
}
}
}