{
  "openapi": "3.0.1",
  "info": {
    "title": "Weather Forecast API - MET Norway (Yr), Hourly & Daily",
    "description": "Official MET Norway (Yr) weather forecast for any coordinates worldwide: hourly steps, daily min/max, rain and wind, local time. No API key. Your results are cached until the source's own expiry. Rows ready for spreadsheets.",
    "version": "0.1",
    "x-build-id": "j35Q73niY9eyCyKll"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/far003~weather-forecast-met-norway/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-far003-weather-forecast-met-norway",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/far003~weather-forecast-met-norway/runs": {
      "post": {
        "operationId": "runs-sync-far003-weather-forecast-met-norway",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/far003~weather-forecast-met-norway/run-sync": {
      "post": {
        "operationId": "run-sync-far003-weather-forecast-met-norway",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "locations": {
            "title": "Locations",
            "type": "array",
            "description": "The places to forecast, by coordinates. Each entry is either an object {\"name\": \"Oslo\", \"latitude\": 59.9139, \"longitude\": 10.7522} (optional \"altitude\" in metres and optional \"timeZone\" such as \"Europe/Oslo\") or the text \"latitude, longitude\" / \"Name: latitude, longitude\". Use a dot as decimal separator. Coordinates are cut to 4 decimals (about 11 m), as the source requires. The Actor does not look up city names: it never guesses which \"Springfield\" you meant. Duplicates are merged and charged once; up to 10,000 places per run."
          },
          "forecastDays": {
            "title": "Forecast days",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many local calendar days to return, counting today (the day of the current hour). MET Norway forecasts about 9 to 10 days ahead; if the source ends sooner you get fewer days. Today is usually a partial day: its rows say so (`partial`, `hoursCovered`).",
            "default": 3
          },
          "outputMode": {
            "title": "Output layout",
            "enum": [
              "location",
              "day",
              "step"
            ],
            "type": "string",
            "description": "location = one record per place with the daily summaries (`days`) and the time steps (`steps`) inside it. day = one flat row per place and day (min/max temperature, rain, wind), ready for a spreadsheet. step = one flat row per place and time step (hourly, then 6-hourly). Every layout costs the same: one charge per place.",
            "default": "location"
          },
          "timeStep": {
            "title": "Time step",
            "enum": [
              "hourly",
              "six-hourly"
            ],
            "type": "string",
            "description": "hourly = every step the source gives: 1 hour apart for roughly the first 2.5 days, then 6 hours apart (each step says its `stepHours`). six-hourly = only the steps at 00, 06, 12 and 18 UTC, each with its 6-hour precipitation, minimum and maximum. Used by the `steps` and the step rows.",
            "default": "hourly"
          },
          "units": {
            "title": "Units",
            "enum": [
              "metric",
              "imperial",
              "source"
            ],
            "type": "string",
            "description": "metric = °C, km/h, mm, hPa. imperial = °F, mph, inches, inHg. source = exactly as MET Norway delivers: °C, m/s, mm, hPa. Every record carries its `units`.",
            "default": "metric"
          },
          "includeDaily": {
            "title": "Include daily summaries",
            "type": "boolean",
            "description": "Only for the \"one record per place\" layout: add `days`. Turn off to get only the time steps.",
            "default": true
          },
          "includeSteps": {
            "title": "Include time steps",
            "type": "boolean",
            "description": "Only for the \"one record per place\" layout: add `steps`. Turn off to get only the daily summaries (about 10 times smaller).",
            "default": true
          },
          "includeExtendedFields": {
            "title": "Include extended fields",
            "type": "boolean",
            "description": "Add apparent (feels-like) temperature, dew point, low/medium/high cloud cover, fog and clear-sky UV index. They exist in MET Norway's detailed product only, for part of the horizon (fog and UV for the first days); otherwise they stay null.",
            "default": false
          },
          "useCache": {
            "title": "Reuse stored answers until they expire",
            "type": "boolean",
            "description": "MET Norway asks clients not to repeat a request before the `Expires` time of the last answer. With this on, each answer is kept (compressed, about 7 KB per place) in a key-value store named met-norway-forecast-cache in your account, and a place whose stored answer has not expired is served from it without any request, which is the polite and faster way. Turn off to always ask the source; delete the store at any time to clear it.",
            "default": true
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}