{
  "openapi": "3.0.1",
  "info": {
    "title": "Weather Forecast Scraper",
    "description": "Weather Forecast Scraper SD - Weather Forecast Scraper is a weather data tool that extracts current conditions, 16-day daily and hourly forecasts, weather history since 1940, air quality, airport METAR observations, daily high/low summaries and TAF forecasts for any city, coordinates or ICAO code.",
    "version": "1.0",
    "x-build-id": "wygyNeO7A8TwzI6nf"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neuro-scraper~weather-forecast-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neuro-scraper-weather-forecast-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/neuro-scraper~weather-forecast-scraper/runs": {
      "post": {
        "operationId": "runs-sync-neuro-scraper-weather-forecast-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/neuro-scraper~weather-forecast-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-neuro-scraper-weather-forecast-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": {
          "dataType": {
            "title": "Data type",
            "enum": [
              "current",
              "forecast-daily",
              "forecast-hourly",
              "history",
              "metar",
              "taf"
            ],
            "type": "string",
            "description": "current = one row per location: current conditions, the daily forecast nested and air quality; forecast-daily = one row per day (up to 16 days); forecast-hourly = one row per hour (up to 16 days); history = past weather by day or hour between Start and End date (reanalysis, 1940 to ~5 days ago); metar = airport observations (METAR/SPECI) for ICAO stations or the station nearest a location; taf = airport forecasts (TAF).",
            "default": "current"
          },
          "dataTypes": {
            "title": "Several data types in one run (optional)",
            "type": "array",
            "description": "Pick more than one data type to get them all in one run (each row says its dataType). Empty = use Data type above.",
            "items": {
              "type": "string",
              "enum": [
                "current",
                "forecast-daily",
                "forecast-hourly",
                "history",
                "metar",
                "metar-daily-summary",
                "taf"
              ],
              "enumTitles": [
                "Current weather + daily forecast + air quality",
                "Daily forecast",
                "Hourly forecast",
                "Historical weather",
                "Airport observations (METAR)",
                "METAR daily high/low summary",
                "Airport forecasts (TAF)"
              ]
            }
          },
          "locations": {
            "title": "Locations",
            "type": "array",
            "description": "City or place names, one per line: London, Tokyo, \"San Francisco, CA\", \"Paris, France\" (the part after the comma picks the right place), or coordinates \"40.71,-74.01\". For metar / taf the nearest airport station is used.",
            "items": {
              "type": "string"
            }
          },
          "stationIds": {
            "title": "Station IDs (ICAO)",
            "type": "array",
            "description": "Airport ICAO codes for metar / taf, e.g. KJFK, KORD, EGLL, RJTT. With the other data types the station's coordinates are used as the place.",
            "items": {
              "type": "string"
            }
          },
          "latLon": {
            "title": "Coordinates",
            "type": "array",
            "description": "Extra places as \"latitude,longitude\", one per line, e.g. 51.5072,-0.1276 (worldwide).",
            "items": {
              "type": "string"
            }
          },
          "forecastDays": {
            "title": "Forecast days",
            "minimum": 1,
            "maximum": 16,
            "type": "integer",
            "description": "Days of forecast for current / forecast-daily / forecast-hourly (1-16).",
            "default": 7
          },
          "pastDays": {
            "title": "Past days",
            "minimum": 0,
            "maximum": 92,
            "type": "integer",
            "description": "Also include this many past days in the forecast data types (0-92).",
            "default": 0
          },
          "startDate": {
            "title": "Start date",
            "type": "string",
            "description": "history: first day (YYYY-MM-DD, from 1940-01-01; default 35 days ago). metar: first UTC day of observations (instead of Hours of history; airport observations are kept for about 15 days)."
          },
          "endDate": {
            "title": "End date",
            "type": "string",
            "description": "history: last day (YYYY-MM-DD; the archive ends ~5 days ago; default 6 days ago). metar: last UTC day."
          },
          "historyDetail": {
            "title": "Historical data detail",
            "enum": [
              "daily",
              "hourly"
            ],
            "type": "string",
            "description": "history: one row per day or one row per hour.",
            "default": "daily"
          },
          "hoursBack": {
            "title": "Hours of history (metar)",
            "minimum": 1,
            "maximum": 720,
            "type": "integer",
            "description": "metar: observations of the last N hours (read in 24-hour pages), when no Start/End date is given.",
            "default": 24
          },
          "output": {
            "title": "METAR output",
            "enum": [
              "observations",
              "daily-summary"
            ],
            "type": "string",
            "description": "metar: observations = one row per report; daily-summary = one row per station per UTC day (high / low with time, max wind, precipitation, observation count).",
            "default": "observations"
          },
          "units": {
            "title": "Units",
            "enum": [
              "metric",
              "imperial"
            ],
            "type": "string",
            "description": "Forecast, current and history rows: metric (Celsius, km/h, mm) or imperial (Fahrenheit, mph, inch). METAR rows always carry both C and F, wind in knots.",
            "default": "metric"
          },
          "temperatureUnit": {
            "title": "Temperature unit (override)",
            "enum": [
              "celsius",
              "fahrenheit"
            ],
            "type": "string",
            "description": "Optional: celsius or fahrenheit, overrides Units for temperatures."
          },
          "windSpeedUnit": {
            "title": "Wind speed unit (override)",
            "enum": [
              "kmh",
              "ms",
              "mph",
              "kn"
            ],
            "type": "string",
            "description": "Optional: kmh, ms, mph or kn (knots), overrides Units for wind."
          },
          "skipAqi": {
            "title": "Skip air quality",
            "type": "boolean",
            "description": "current: do not add the air-quality object (US AQI, European AQI, PM10, PM2.5, CO, NO2, SO2, ozone, UV) - one request less per location.",
            "default": false
          },
          "fields": {
            "title": "Fields filter",
            "type": "array",
            "description": "Optional: keep only these output fields, e.g. location, date, tempMax, tempMin. Empty = all fields.",
            "items": {
              "type": "string"
            }
          },
          "includeSummary": {
            "title": "Add a plain-language summary",
            "type": "boolean",
            "description": "Adds a `summary` column: one readable sentence per row built from the row's own values (e.g. \"London: light rain, 12°C (feels like 10°C), wind 14 km/h, today 9-13°C, rain chance 80%.\"). No AI service or key needed.",
            "default": false
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Most rows in the dataset (each row is one result). History and METAR are read page by page (31-day / 24-hour windows) until this number or the end of the range.",
            "default": 100
          },
          "openMeteoApiKey": {
            "title": "Open-Meteo API key (optional)",
            "type": "string",
            "description": "Optional: your own commercial-plan key for the weather data service, for commercial use above the free limits. Leave empty to use the free service."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "The weather services answered without a proxy in our tests; residential proxy is the default (spreads the per-IP daily limit).",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          },
          "maxConcurrency": {
            "title": "Parallel locations",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many locations are read at the same time.",
            "default": 5
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}