날씨 예보 GPT
날씨 예보 GPT · GPT Actions
7Timer Weather API
API for accessing weather forecasts from 7Timer.
GET /api.plGet Weather ForecastRetrieve weather forecast data for a specific location and product.
原始 API 定义
{
"openapi": "3.0.0",
"info": {
"title": "7Timer Weather API",
"description": "API for accessing weather forecasts from 7Timer.",
"version": "1.0.0"
},
"servers": [
{
"url": "https://www.7timer.info/bin/",
"description": "Main API Server"
}
],
"paths": {
"/api.pl": {
"get": {
"operationId": "getWeatherForecast",
"summary": "Get Weather Forecast",
"description": "Retrieve weather forecast data for a specific location and product.",
"parameters": [
{
"name": "lon",
"in": "query",
"description": "Geographic coordinates of the specified site, must be given as pure float numbers, such as +23.090 or -23.090. At this stage, the precision of any incoming coordinate float number is expected to be 0.001. Incoming float with higher precision will be rounded.",
"required": true,
"schema": {
"type": "number",
"format": "float"
}
},
{
"name": "lat",
"in": "query",
"required": true,
"schema": {
"type": "number",
"format": "float"
}
},
{
"name": "product",
"in": "query",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "output",
"in": "query",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/xml": {
"schema": {
"type": "string"
}
}
}
}
}
}
}
}
}