토키(Talkie)

토키(Talkie) · GPT アクション

7timer Weather API

API for accessing weather forecast data from 7timer.

  • GET /Retrieve weather forecast data

    Returns weather forecast data for a specific longitude and latitude.

元の API スキーマ
{
  "openapi": "3.0.0",
  "info": {
    "title": "7timer Weather API",
    "description": "API for accessing weather forecast data from 7timer.",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://www.7timer.info/bin/api.pl",
      "description": "Main API Server"
    }
  ],
  "paths": {
    "/": {
      "get": {
        "operationId": "getWeatherForecast",
        "summary": "Retrieve weather forecast data",
        "description": "Returns weather forecast data for a specific longitude and latitude.",
        "parameters": [
          {
            "name": "lon",
            "in": "query",
            "required": true,
            "description": "Longitude for the weather forecast",
            "schema": {
              "type": "number",
              "format": "float"
            }
          },
          {
            "name": "lat",
            "in": "query",
            "required": true,
            "description": "Latitude for the weather forecast",
            "schema": {
              "type": "number",
              "format": "float"
            }
          },
          {
            "name": "product",
            "in": "query",
            "description": "Type of weather forecast product",
            "schema": {
              "type": "string",
              "enum": [
                "astro",
                "civil",
                "civillight",
                "meteo",
                "two"
              ]
            }
          },
          {
            "name": "output",
            "in": "query",
            "description": "Output format",
            "schema": {
              "type": "string",
              "enum": [
                "json",
                "xml"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response with weather data",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "dataseries": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    }
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    }
  }
}