{
  "openapi": "3.0.1",
  "info": {
    "title": "German Weather History (DWD Open Data)",
    "description": "Daily and hourly weather station data of the German Weather Service (DWD): temperature, precipitation, wind, sunshine, pressure, cloud cover and humidity from 1,000+ stations, back to the 19th century. Station search by name or coordinates.",
    "version": "0.1",
    "x-build-id": "eeyLJrKfc9MuIOxNG"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/adamplaenitz~dwd-weather-history/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-adamplaenitz-dwd-weather-history",
        "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/adamplaenitz~dwd-weather-history/runs": {
      "post": {
        "operationId": "runs-sync-adamplaenitz-dwd-weather-history",
        "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/adamplaenitz~dwd-weather-history/run-sync": {
      "post": {
        "operationId": "run-sync-adamplaenitz-dwd-weather-history",
        "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": {
          "stations": {
            "title": "Stations",
            "type": "array",
            "description": "DWD weather stations by station ID (e.g. 03668 or 3668) or name (e.g. Nürnberg or Nuernberg, Berlin-Tempelhof, Hamburg-Fuhlsbüttel, München-Stadt). A name that is not exact also finds stations starting with or containing it; then the station with data for your period and the longest record is used. In station search mode all matching stations are listed.",
            "items": {
              "type": "string"
            }
          },
          "latitude": {
            "title": "Latitude (nearest stations)",
            "type": "string",
            "description": "Optional point (decimal degrees, e.g. 49.4521) to use the nearest stations with data for the period, or to search stations nearby."
          },
          "longitude": {
            "title": "Longitude (nearest stations)",
            "type": "string",
            "description": "Longitude of the point in decimal degrees, e.g. 11.0767."
          },
          "radiusKm": {
            "title": "Radius (km)",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Search radius around the point (1–500 km).",
            "default": 25
          },
          "maxStationsNearby": {
            "title": "Nearest stations to use",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Data mode: number of nearest stations within the radius that are used (1–100).",
            "default": 3
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "data",
              "stations"
            ],
            "type": "string",
            "description": "data = weather values (one item per station and day or hour). stations = station search: list stations by name and/or distance with their data period.",
            "default": "data"
          },
          "resolution": {
            "title": "Resolution",
            "enum": [
              "daily",
              "hourly"
            ],
            "type": "string",
            "description": "daily = daily values (mean/max/min temperature, precipitation, sunshine, wind …). hourly = hourly values (times in UTC).",
            "default": "daily"
          },
          "startDate": {
            "title": "Start date",
            "type": "string",
            "description": "First day (YYYY-MM-DD) or relative, e.g. '30 days' or '1 year'. Empty = 30 days (daily) or 7 days (hourly) before the end date."
          },
          "endDate": {
            "title": "End date",
            "type": "string",
            "description": "Last day (YYYY-MM-DD), 'yesterday' or relative, e.g. '7 days'. Empty = today. DWD publishes recent values with a delay of about one day."
          },
          "parameters": {
            "title": "Parameter groups",
            "type": "array",
            "description": "Which values to output. Empty = air temperature, precipitation, wind and sunshine. Hourly: every group is a separate DWD file per station.",
            "items": {
              "type": "string",
              "enum": [
                "air_temperature",
                "precipitation",
                "wind",
                "sun",
                "pressure",
                "cloudiness",
                "dew_point"
              ],
              "enumTitles": [
                "Air temperature + humidity",
                "Precipitation (+ snow depth daily)",
                "Wind",
                "Sunshine duration",
                "Air pressure",
                "Cloud cover",
                "Dew point (hourly) / vapour pressure (daily)"
              ]
            }
          },
          "onlyActive": {
            "title": "Station search: only active stations",
            "type": "boolean",
            "description": "Station search mode: list only stations that currently report data (closed historical stations are skipped).",
            "default": true
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 10000000,
            "type": "integer",
            "description": "Upper limit of charged items per run (station-days, station-hours or stations).",
            "default": 100000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}