날씨 전문가
날씨 전문가 · GPT Actions
7Timer Weather Forecast API
API for accessing weather forecast data from 7Timer.
GET /api.plRetrieve weather forecast dataReturns weather forecast data for a specified location and product.
原始 API 定义
{
"openapi": "3.0.0",
"info": {
"title": "7Timer Weather Forecast API",
"description": "API for accessing weather forecast data from 7Timer.",
"version": "1.0.0"
},
"servers": [
{
"url": "https://www.7timer.info/bin/",
"description": "7Timer Weather Forecast API Server"
}
],
"paths": {
"/api.pl": {
"get": {
"operationId": "getWeatherForecast",
"summary": "Retrieve weather forecast data",
"description": "Returns weather forecast data for a specified location and product.",
"parameters": [
{
"name": "lon",
"in": "query",
"description": "Longitude of the location (float).",
"required": true,
"schema": {
"type": "number",
"format": "float"
}
},
{
"name": "lat",
"in": "query",
"description": "Latitude of the location (float).",
"required": true,
"schema": {
"type": "number",
"format": "float"
}
},
{
"name": "product",
"in": "query",
"description": "Type of forecast product (astro, civil, civillight, meteo, two).",
"required": true,
"schema": {
"type": "string",
"enum": [
"astro",
"civil",
"civillight",
"meteo",
"two"
]
}
},
{
"name": "output",
"in": "query",
"description": "Output format (xml or json).",
"required": true,
"schema": {
"type": "string",
"enum": [
"xml",
"json"
]
}
},
{
"name": "ac",
"in": "query",
"description": "Altitude Correction for ASTRO forecast (0, 2, 7).",
"schema": {
"type": "integer",
"enum": [
0,
2,
7
]
}
},
{
"name": "lang",
"in": "query",
"description": "Language of the response.",
"schema": {
"type": "string"
}
},
{
"name": "unit",
"in": "query",
"description": "Unit system (Metric or British).",
"schema": {
"type": "string",
"enum": [
"Metric",
"British"
]
}
},
{
"name": "tzshift",
"in": "query",
"description": "Timezone shift (0, 1, -1).",
"schema": {
"type": "integer",
"enum": [
0,
1,
-1
]
}
}
],
"responses": {
"200": {
"description": "Successful response with weather forecast data.",
"content": {
"application/xml": {
"schema": {
"type": "string"
}
},
"application/json": {
"schema": {
"type": "string"
}
}
}
}
}
}
}
}
}