AIお天気キャスター
AIお天気キャスター · GPT-Aktionen
Open-Meteo API
Retrieve hourly weather information for a specific location.
GET /forecastRetrieve hourly weather information based on latitude and longitude.
Ursprüngliches API-Schema
{
"openapi": "3.0.0",
"info": {
"title": "Open-Meteo API",
"description": "Retrieve hourly weather information for a specific location.",
"version": "1.0.0"
},
"servers": [
{
"url": "https://api.open-meteo.com/v1",
"description": "Main API server"
}
],
"paths": {
"/forecast": {
"get": {
"operationId": "getHourlyWeather",
"summary": "Retrieve hourly weather information based on latitude and longitude.",
"parameters": [
{
"name": "latitude",
"in": "query",
"description": "Latitude of the location",
"required": true,
"schema": {
"type": "number",
"format": "double"
}
},
{
"name": "longitude",
"in": "query",
"description": "Longitude of the location",
"required": true,
"schema": {
"type": "number",
"format": "double"
}
},
{
"name": "hourly",
"in": "query",
"description": "Comma-separated list of weather parameters to retrieve hourly",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "timezone",
"in": "query",
"description": "Timezone of the requested location",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "A JSON object containing hourly weather data",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"temperature_2m": {
"type": "array",
"items": {
"type": "number"
},
"description": "Hourly temperatures 2 meters above ground level"
},
"precipitation": {
"type": "array",
"items": {
"type": "number"
},
"description": "Hourly precipitation levels"
},
"weather_code": {
"type": "array",
"items": {
"type": "integer"
},
"description": "Hourly weather condition codes"
},
"wind_speed_10m": {
"type": "array",
"items": {
"type": "number"
},
"description": "Hourly wind speeds 10 meters above ground level"
},
"wind_direction_10m": {
"type": "array",
"items": {
"type": "number"
},
"description": "Hourly wind directions 10 meters above ground level"
}
}
}
}
}
}
}
}
}
}
}