WeatherSnap

WeatherSnap · Actions GPT

Weather Data Service

Retrieves current weather data including time, condition, and temperature for a specified location.

  • GET /{location}?format=%T,+%C,+%t&uGetWeatherByLocation

    Get weather information including time, condition, and temperature for a specific location.

Schéma original API
{
  "openapi": "3.1.0",
  "info": {
    "title": "Weather Data Service",
    "description": "Retrieves current weather data including time, condition, and temperature for a specified location.",
    "version": "v1.0.1"
  },
  "servers": [
    {
      "url": "https://wttr.in"
    }
  ],
  "paths": {
    "/{location}?format=%T,+%C,+%t&u": {
      "get": {
        "description": "Get weather information including time, condition, and temperature for a specific location.",
        "operationId": "GetWeatherByLocation",
        "parameters": [
          {
            "name": "location",
            "in": "path",
            "description": "The city and state to retrieve the weather for, in the format 'city+state'. Replace spaces with '+' in the location string.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response with weather data.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string",
                  "example": "12:49:13-0500, Overcast, +52°F"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request - location or format is incorrect."
          },
          "404": {
            "description": "Location not found."
          }
        },
        "deprecated": false
      }
    }
  },
  "components": {
    "schemas": {}
  }
}