Weather Wizard
Weather Wizard · GPT 작업
WeatherAPI Realtime Weather Data
Access current weather information for a specified location.
GET /current.jsonGet current weather information for a specified location.GET /forecast.jsonGet weather forecast information for a specified location.
원본 API 스키마
{
"openapi": "3.0.0",
"info": {
"title": "WeatherAPI Realtime Weather Data",
"description": "Access current weather information for a specified location.",
"version": "1.0.0"
},
"servers": [
{
"url": "https://api.weatherapi.com/v1",
"description": "WeatherAPI.com API server"
}
],
"paths": {
"/current.json": {
"get": {
"operationId": "getCurrentWeather",
"summary": "Get current weather information for a specified location.",
"parameters": [
{
"in": "query",
"name": "key",
"required": true,
"description": "55c10d46e43f4cb189b105344240901",
"schema": {
"type": "string"
}
},
{
"in": "query",
"name": "q",
"required": true,
"description": "Query parameter (latitude and longitude, city name, etc.).",
"schema": {
"type": "string"
}
},
{
"in": "query",
"name": "lang",
"required": false,
"description": "Language for the weather condition text.",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Successful response with current weather data.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"location": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"region": {
"type": "string"
},
"country": {
"type": "string"
},
"lat": {
"type": "number"
},
"lon": {
"type": "number"
},
"tz_id": {
"type": "string"
},
"localtime": {
"type": "string"
}
}
},
"current": {
"type": "object",
"properties": {
"last_updated": {
"type": "string"
},
"temp_c": {
"type": "number"
},
"condition": {
"type": "object",
"properties": {
"text": {
"type": "string"
},
"icon": {
"type": "string"
},
"code": {
"type": "integer"
}
}
},
"wind_mph": {
"type": "number"
},
"pressure_mb": {
"type": "number"
},
"precip_mm": {
"type": "number"
},
"humidity": {
"type": "integer"
},
"uv": {
"type": "number"
}
}
}
}
}
}
}
}
}
}
},
"/forecast.json": {
"get": {
"operationId": "getWeatherForecast",
"summary": "Get weather forecast information for a specified location.",
"parameters": [
{
"in": "query",
"name": "key",
"required": true,
"description": "55c10d46e43f4cb189b105344240901",
"schema": {
"type": "string"
}
},
{
"in": "query",
"name": "q",
"required": true,
"description": "Query parameter (latitude and longitude, city name, etc.).",
"schema": {
"type": "string"
}
},
{
"in": "query",
"name": "days",
"required": true,
"description": "Number of days of forecast required (1 to 14).",
"schema": {
"type": "integer"
}
},
{
"in": "query",
"name": "lang",
"required": false,
"description": "Language for the weather condition text.",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Successful response with forecast weather data.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"location": {
"$ref": "#/components/schemas/Location"
},
"forecast": {
"type": "object",
"properties": {
"forecastday": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ForecastDay"
}
}
}
}
}
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"Location": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"region": {
"type": "string"
},
"country": {
"type": "string"
},
"lat": {
"type": "number"
},
"lon": {
"type": "number"
},
"tz_id": {
"type": "string"
},
"localtime": {
"type": "string"
}
}
},
"ForecastDay": {
"type": "object",
"properties": {
"date": {
"type": "string"
},
"day": {
"type": "object",
"properties": {
"maxtemp_c": {
"type": "number"
},
"mintemp_c": {
"type": "number"
},
"avgtemp_c": {
"type": "number"
},
"maxwind_kph": {
"type": "number"
},
"totalprecip_mm": {
"type": "number"
},
"avgvis_km": {
"type": "number"
},
"avghumidity": {
"type": "number"
},
"condition": {
"type": "object",
"properties": {
"text": {
"type": "string"
},
"icon": {
"type": "string"
},
"code": {
"type": "integer"
}
}
},
"uv": {
"type": "number"
}
}
},
"astro": {
"type": "object",
"properties": {
"sunrise": {
"type": "string"
},
"sunset": {
"type": "string"
}
}
},
"hour": {
"type": "array",
"items": {
"type": "object",
"properties": {
"time": {
"type": "string"
},
"temp_c": {
"type": "number"
},
"condition": {
"type": "object",
"properties": {
"text": {
"type": "string"
},
"icon": {
"type": "string"
},
"code": {
"type": "integer"
}
}
},
"wind_kph": {
"type": "number"
}
}
}
}
}
}
}
}
}