{
  "openapi": "3.0.1",
  "info": {
    "title": "German Pollen & UV Index Forecast (DWD)",
    "description": "Official pollen forecast (birch, grasses, ragweed and 5 more) for 27 German regions and UV index forecast for 38 locations from the Deutscher Wetterdienst (DWD). Today, tomorrow and the day after; filter by state, region, pollen type or coordinates. CC BY 4.0.",
    "version": "1.0",
    "x-build-id": "HE5ZgruiFCasvkbdg"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/opendata-souce2026~german-pollen-uv-forecast-dwd/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-opendata-souce2026-german-pollen-uv-forecast-dwd",
        "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/opendata-souce2026~german-pollen-uv-forecast-dwd/runs": {
      "post": {
        "operationId": "runs-sync-opendata-souce2026-german-pollen-uv-forecast-dwd",
        "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/opendata-souce2026~german-pollen-uv-forecast-dwd/run-sync": {
      "post": {
        "operationId": "run-sync-opendata-souce2026-german-pollen-uv-forecast-dwd",
        "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": {
          "data": {
            "title": "Forecast",
            "enum": [
              "both",
              "pollen",
              "uv"
            ],
            "type": "string",
            "description": "Which forecast to return.",
            "default": "both"
          },
          "language": {
            "title": "Language",
            "enum": [
              "en",
              "de"
            ],
            "type": "string",
            "description": "Language of pollen names and level labels.",
            "default": "en"
          },
          "days": {
            "title": "Days (optional)",
            "type": "array",
            "description": "Leave empty for all forecast days. The pollen forecast for the day after tomorrow is not issued on Fridays.",
            "items": {
              "type": "string",
              "enum": [
                "today",
                "tomorrow",
                "dayAfterTomorrow"
              ],
              "enumTitles": [
                "Today",
                "Tomorrow",
                "Day after tomorrow"
              ]
            }
          },
          "states": {
            "title": "Federal states (optional)",
            "type": "array",
            "description": "Only pollen regions and UV locations in these states. Leave empty for all of Germany.",
            "items": {
              "type": "string",
              "enum": [
                "BW",
                "BY",
                "BE",
                "BB",
                "HB",
                "HH",
                "HE",
                "MV",
                "NI",
                "NW",
                "RP",
                "SL",
                "SN",
                "ST",
                "SH",
                "TH"
              ],
              "enumTitles": [
                "Baden-Württemberg",
                "Bayern",
                "Berlin",
                "Brandenburg",
                "Bremen",
                "Hamburg",
                "Hessen",
                "Mecklenburg-Vorpommern",
                "Niedersachsen",
                "Nordrhein-Westfalen",
                "Rheinland-Pfalz",
                "Saarland",
                "Sachsen",
                "Sachsen-Anhalt",
                "Schleswig-Holstein",
                "Thüringen"
              ]
            }
          },
          "pollenRegion": {
            "title": "Pollen region name contains (optional)",
            "type": "string",
            "description": "Part of a DWD pollen region name, e.g. \"Rhein-Main\", \"Oberrhein\", \"Allgäu\" or \"Harz\"."
          },
          "pollenTypes": {
            "title": "Pollen types (optional)",
            "type": "array",
            "description": "Only these pollen types (long format) or columns of interest. Leave empty for all eight.",
            "items": {
              "type": "string",
              "enum": [
                "hazel",
                "alder",
                "ash",
                "birch",
                "grasses",
                "rye",
                "mugwort",
                "ragweed"
              ],
              "enumTitles": [
                "Hazel (Hasel)",
                "Alder (Erle)",
                "Ash (Esche)",
                "Birch (Birke)",
                "Grasses (Gräser)",
                "Rye (Roggen)",
                "Mugwort (Beifuß)",
                "Ragweed (Ambrosia)"
              ]
            }
          },
          "minPollenLevel": {
            "title": "Minimum pollen level",
            "enum": [
              "0",
              "0.5",
              "1",
              "1.5",
              "2",
              "2.5",
              "3"
            ],
            "type": "string",
            "description": "Only pollen values at or above this level (0 none … 3 high). Useful for alerts.",
            "default": "0"
          },
          "pollenFormat": {
            "title": "Pollen output format",
            "enum": [
              "wide",
              "long"
            ],
            "type": "string",
            "description": "Wide: one row per region and day with a column per pollen type. Long: one row per region, day and pollen type.",
            "default": "wide"
          },
          "uvCities": {
            "title": "UV locations (optional)",
            "type": "array",
            "description": "Names of DWD UV forecast locations, e.g. \"Berlin\", \"München\", \"Frankfurt/Main\", \"Zugspitze\".",
            "items": {
              "type": "string"
            }
          },
          "latitude": {
            "title": "Latitude (optional)",
            "type": "string",
            "description": "Returns the UV forecast of the nearest DWD UV location to this point, e.g. 50.94. Give longitude too."
          },
          "longitude": {
            "title": "Longitude (optional)",
            "type": "string",
            "description": "Longitude of the point, e.g. 6.96."
          },
          "minUvIndex": {
            "title": "Minimum UV index",
            "minimum": 0,
            "type": "integer",
            "description": "Only UV values at or above this index (e.g. 6 = high).",
            "default": 0
          },
          "includeMountainStations": {
            "title": "Include mountain summit stations",
            "type": "boolean",
            "description": "Zugspitze, Großer Arber, Kahler Asten and Weinbiet have much higher UV than towns and are left out unless named or enabled here.",
            "default": false
          },
          "maxRows": {
            "title": "Maximum rows",
            "minimum": 1,
            "type": "integer",
            "description": "Safety limit for the number of rows returned.",
            "default": 10000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}