Outfit Weather Guide

Outfit Weather Guide · GPT-Aktionen

MET Norway Weather API Integration

Integration with the MET Norway Weather API to retrieve weather forecasts.

  • GET /compactgetWeatherForecast

    Retrieve weather forecast data for a specific location

Ursprüngliches API-Schema
{
  "openapi": "3.1.0",
  "info": {
    "title": "MET Norway Weather API Integration",
    "description": "Integration with the MET Norway Weather API to retrieve weather forecasts.",
    "version": "v1.0.0"
  },
  "servers": [
    {
      "url": "https://api.met.no/weatherapi/locationforecast/2.0"
    }
  ],
  "paths": {
    "/compact": {
      "get": {
        "description": "Retrieve weather forecast data for a specific location",
        "operationId": "getWeatherForecast",
        "parameters": [
          {
            "name": "lat",
            "in": "query",
            "description": "Latitude of the location",
            "required": true,
            "schema": {
              "type": "number",
              "format": "float"
            }
          },
          {
            "name": "lon",
            "in": "query",
            "description": "Longitude of the location",
            "required": true,
            "schema": {
              "type": "number",
              "format": "float"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response with weather forecast data",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "properties": {
                      "type": "object",
                      "properties": {
                        "meta": {
                          "type": "object",
                          "properties": {
                            "updated_at": {
                              "type": "string",
                              "description": "Update time for this forecast"
                            }
                          }
                        },
                        "timeseries": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {}
  }
}