{
  "openapi": "3.0.1",
  "info": {
    "title": "Swiss Pollen Data (MeteoSwiss) – Hourly & Daily Counts",
    "description": "Measured pollen concentrations from the official MeteoSwiss pollen network: birch, grasses, hazel, alder, ash, beech and oak at 15 Swiss stations. Hourly (live) or daily, history back to 1969. For allergy apps, health research and AI agents. CC BY 4.0.",
    "version": "1.0",
    "x-build-id": "hc6aJERDDwfwfkH5a"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/opendata-souce2026~swiss-pollen-data-meteoswiss/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-opendata-souce2026-swiss-pollen-data-meteoswiss",
        "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~swiss-pollen-data-meteoswiss/runs": {
      "post": {
        "operationId": "runs-sync-opendata-souce2026-swiss-pollen-data-meteoswiss",
        "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~swiss-pollen-data-meteoswiss/run-sync": {
      "post": {
        "operationId": "run-sync-opendata-souce2026-swiss-pollen-data-meteoswiss",
        "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": "Pollen stations by name or MeteoSwiss abbreviation, e.g. \"Zürich\", \"Geneva\", \"Bern\", \"PBS\". Leave empty for all 15 stations: Basel, Bern, Buchs SG, La Chaux-de-Fonds, Davos, Genève, Locarno, Lausanne, Lugano, Luzern, Münsterlingen, Neuchâtel, Payerne, Sion, Zürich.",
            "items": {
              "type": "string"
            }
          },
          "resolution": {
            "title": "Resolution",
            "enum": [
              "daily",
              "hourly"
            ],
            "type": "string",
            "description": "Daily: one row per station and day (MeteoSwiss daily mean, 06:00 to 06:00 UTC; available up to yesterday, history back to the start of each station, Basel since 1969). Hourly: one row per station and hour, updated through the day (available from 2023).",
            "default": "daily"
          },
          "days": {
            "title": "Days back",
            "minimum": 0,
            "maximum": 21900,
            "type": "integer",
            "description": "When no start date is set: how many days back from today to return. Default 7 for daily, 1 for hourly (yesterday and today)."
          },
          "startDate": {
            "title": "Start date (optional)",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$",
            "type": "string",
            "description": "First day to return, format YYYY-MM-DD (UTC date), e.g. 2025-03-01. Overrides Days back."
          },
          "endDate": {
            "title": "End date (optional)",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$",
            "type": "string",
            "description": "Last day to return, format YYYY-MM-DD (UTC date). Default: today."
          },
          "pollenTypes": {
            "title": "Pollen types",
            "type": "array",
            "description": "Which pollen to return. Leave empty for all seven: alder, birch, hazel, beech, ash, oak, grasses.",
            "items": {
              "type": "string",
              "enum": [
                "alder",
                "birch",
                "hazel",
                "beech",
                "ash",
                "oak",
                "grasses"
              ],
              "enumTitles": [
                "Alder (Alnus)",
                "Birch (Betula)",
                "Hazel (Corylus)",
                "Beech (Fagus)",
                "Ash (Fraxinus)",
                "Oak (Quercus)",
                "Grasses (Poaceae)"
              ]
            }
          },
          "onlyWithPollen": {
            "title": "Only rows with pollen",
            "type": "boolean",
            "description": "Skip days or hours where all selected pollen types measured 0 (useful outside the pollen season, roughly October to January).",
            "default": false
          },
          "latestOnly": {
            "title": "Latest value only",
            "type": "boolean",
            "description": "Return only the most recent measurement per station, e.g. for a dashboard or an alert that runs every hour.",
            "default": false
          },
          "timeZone": {
            "title": "Time zone for local time (hourly)",
            "type": "string",
            "description": "IANA time zone used for the localTime field of hourly rows. timestampUtc is always included.",
            "default": "Europe/Zurich"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}