{
  "openapi": "3.0.1",
  "info": {
    "title": "Wunderground Scraper | Weather History and Stations",
    "description": "Wunderground scraper for Weather Underground station history by station ID, link or address. Get daily, hourly or raw readings: temperature, dew point, humidity, wind, gust, pressure, rain, UV and solar. 4 stations gave 40 rows in 1 second, 52 fields each, with no account or API key needed.",
    "version": "1.0",
    "x-build-id": "XJMuRynl13pnPfkfQ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/silentflow~wunderground-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-silentflow-wunderground-scraper",
        "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/silentflow~wunderground-scraper/runs": {
      "post": {
        "operationId": "runs-sync-silentflow-wunderground-scraper",
        "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/silentflow~wunderground-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-silentflow-wunderground-scraper",
        "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": {
          "stationIds": {
            "title": "🛰️ Station IDs",
            "type": "array",
            "description": "Personal weather station ids (<code>KCASANFR1680</code>, <code>ILONDO538</code>) or 4-letter airport codes (<code>KLGA</code>, <code>EGLL</code>). The id is on every Wunderground station page. Paste as many as you need: each one returns its own rows, one per day of the date range.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "🔗 Wunderground links",
            "type": "array",
            "description": "Links copied from wunderground.com: a station dashboard (<code>/dashboard/pws/KCASANFR1680</code>), an airport history page (<code>/history/daily/us/ny/new-york-city/KLGA/date/2026-11-10</code>) or a city page (<code>/weather/us/ca/san-francisco</code>). A link that shows its own dates (history pages, dashboard tables) is read for those dates; a city page returns its nearest stations.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "locations": {
            "title": "📍 Places",
            "type": "array",
            "description": "An address, a city, a postal code or <code>latitude, longitude</code> (<code>1600 Pennsylvania Ave NW, Washington, DC</code>, <code>Austin, TX</code>, <code>37.767, -122.426</code>). Returns the nearest personal stations that have data for your dates, with their distance to the place. Handy when you know where something happened but not which station was there.",
            "items": {
              "type": "string"
            }
          },
          "startDate": {
            "title": "📅 Start date",
            "type": "string",
            "description": "First day to read: <code>2026-11-01</code>, or an age such as <code>7 days</code> for a scheduled run. Leave both dates empty to read yesterday. History goes back years for most stations."
          },
          "endDate": {
            "title": "📅 End date",
            "type": "string",
            "description": "Last day to read, included: <code>2026-11-10</code>, <code>yesterday</code> or <code>1 day</code>. Leave empty to read the start date only. Today returns the day so far."
          },
          "granularity": {
            "title": "⏱️ Detail per row",
            "enum": [
              "daily",
              "hourly",
              "all"
            ],
            "type": "string",
            "description": "<b>Daily</b>: one row per station and day, with high, low and average values.<br><b>Hourly</b>: one row per station and hour (about 24 rows a day).<br><b>Every reading</b>: one row per raw reading, about every 5 minutes on personal stations (around 288 rows a day). Rows scale with this choice.",
            "default": "daily"
          },
          "units": {
            "title": "📏 Units",
            "enum": [
              "imperial",
              "metric",
              "metric_si",
              "uk_hybrid"
            ],
            "type": "string",
            "description": "<b>Imperial</b>: °F, mph, inches, inHg (Wunderground's default).<br><b>Metric</b>: °C, km/h, mm, hPa.<br><b>Metric SI</b>: °C, m/s, mm, hPa.<br><b>UK hybrid</b>: °C, mph, mm, hPa. Every row says which units it uses.",
            "default": "imperial"
          },
          "maxItems": {
            "title": "🔢 Max rows per station or place",
            "minimum": 1,
            "type": "integer",
            "description": "The most rows one station id, one link or one place returns. A list of ids is never cut short: each id gets its own allowance. A year of daily rows is 365; a year of hourly rows is about 8,760.",
            "default": 1000
          },
          "stationsPerLocation": {
            "title": "📍 Stations per place",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many of the nearest stations to read around each place (1 to 10). Stations that sent nothing for your dates are skipped and the next nearest is read instead.",
            "default": 3
          },
          "debugMode": {
            "title": "🐞 Debug mode",
            "type": "boolean",
            "description": "Show detailed logs. Leave off for normal runs.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}