{
  "openapi": "3.0.1",
  "info": {
    "title": "Open-Meteo Weather Scraper — Forecast, History, Air Quality",
    "description": "Weather data for AI agents without an API key: current, hourly/16-day daily forecast, ERA5 history since 1940, air quality (AQI, PM2.5, pollen), marine waves, CMIP6 climate projections, ensemble spread, river discharge — for any city or coordinates. 200+ variables, model selection, units, timezone.",
    "version": "0.1",
    "x-build-id": "be7Zo5gds3fZaNoXO"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/yadroo~open-meteo-weather/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-yadroo-open-meteo-weather",
        "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/yadroo~open-meteo-weather/runs": {
      "post": {
        "operationId": "runs-sync-yadroo-open-meteo-weather",
        "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/yadroo~open-meteo-weather/run-sync": {
      "post": {
        "operationId": "run-sync-yadroo-open-meteo-weather",
        "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",
        "required": [
          "locations"
        ],
        "properties": {
          "locations": {
            "title": "Cities or lat,lon",
            "type": "array",
            "description": "Place names (optionally `City, CC` or `City, Country` to disambiguate) or `lat,lon` pairs. One API call per location.",
            "items": {
              "type": "string"
            }
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "current",
              "daily",
              "hourly",
              "history",
              "historyHourly",
              "airQuality",
              "airQualityCurrent",
              "marine",
              "marineHourly",
              "climate",
              "ensemble",
              "flood"
            ],
            "type": "string",
            "description": "Which Open-Meteo endpoint and granularity. Each mode has its own variable dictionary (see README); defaults are sensible for the mode.",
            "default": "daily"
          },
          "days": {
            "title": "Days",
            "minimum": 1,
            "maximum": 210,
            "type": "integer",
            "description": "Forecast days ahead (daily/hourly/marine ≤16, airQuality ≤7, flood ≤210) or days back for history/historyHourly. Ignored when startDate/endDate are set.",
            "default": 7
          },
          "units": {
            "title": "Unit preset",
            "enum": [
              "metric",
              "imperial"
            ],
            "type": "string",
            "description": "Preset; individual unit fields below override it.",
            "default": "metric"
          },
          "variables": {
            "title": "Variables (override defaults)",
            "type": "array",
            "description": "Open-Meteo variable names valid for the chosen mode, e.g. daily: `temperature_2m_max`, `precipitation_sum`, `et0_fao_evapotranspiration`; hourly: `temperature_2m`, `soil_moisture_0_to_1cm`, `shortwave_radiation`. Unknown names are skipped with a warning. Empty = mode defaults. Full lists in README.",
            "items": {
              "type": "string"
            }
          },
          "models": {
            "title": "Weather models",
            "type": "array",
            "description": "Forecast modes: `best_match` (default), `ecmwf_ifs025`, `gfs_seamless`, `icon_seamless`, `gem_seamless`, `meteofrance_seamless`, `jma_seamless`, `ukmo_seamless`… Several models → one column per model (`temperature_2m_max_gfs_seamless`). Climate: `EC_Earth3P_HR` (default), `MRI_AGCM3_2_S`, `CMCC_CM2_VHR4`… Ensemble: `icon_seamless` (default), `gfs_seamless`, `ecmwf_ifs025`…",
            "items": {
              "type": "string"
            }
          },
          "includeEnsembleMembers": {
            "title": "Ensemble: include member values",
            "type": "boolean",
            "description": "Ensemble mode: add `<var>_values` arrays with every member besides min/max/mean/spread.",
            "default": false
          },
          "startDate": {
            "title": "Start date",
            "type": "string",
            "description": "YYYY-MM-DD. History: archive from 1940-01-01. Forecast modes: up to ~92 days back and 16 ahead. Climate: 1950–2050."
          },
          "endDate": {
            "title": "End date",
            "type": "string",
            "description": "YYYY-MM-DD (inclusive). History defaults to 2 days ago (ERA5 latency)."
          },
          "pastDays": {
            "title": "Past days (forecast modes)",
            "minimum": 0,
            "maximum": 92,
            "type": "integer",
            "description": "Prepend N days of recent observations/analysis to a forecast (daily, hourly, airQuality, marine, ensemble, flood)."
          },
          "timezone": {
            "title": "Timezone",
            "type": "string",
            "description": "`auto` = local time of each location; or an IANA name like `Asia/Almaty`, `UTC`.",
            "default": "auto"
          },
          "temperatureUnit": {
            "title": "Temperature unit",
            "enum": [
              "",
              "celsius",
              "fahrenheit"
            ],
            "type": "string",
            "description": "Overrides the preset.",
            "default": ""
          },
          "windSpeedUnit": {
            "title": "Wind speed unit",
            "enum": [
              "",
              "kmh",
              "ms",
              "mph",
              "kn"
            ],
            "type": "string",
            "description": "Overrides the preset.",
            "default": ""
          },
          "precipitationUnit": {
            "title": "Precipitation unit",
            "enum": [
              "",
              "mm",
              "inch"
            ],
            "type": "string",
            "description": "Overrides the preset.",
            "default": ""
          },
          "geocodeLanguage": {
            "title": "Geocoder language",
            "type": "string",
            "description": "Language for place-name matching and the returned `location` label, e.g. `ru`, `kk`, `de`.",
            "default": "en"
          },
          "geocodeCountry": {
            "title": "Geocoder country filter",
            "type": "string",
            "description": "ISO-3166 alpha-2, e.g. `KZ` — restrict all place-name lookups to one country."
          },
          "cellSelection": {
            "title": "Grid cell selection",
            "enum": [
              "land",
              "sea",
              "nearest"
            ],
            "type": "string",
            "description": "Which model grid cell to use for coastal locations.",
            "default": "land"
          },
          "airQualityDomain": {
            "title": "Air-quality domain",
            "enum": [
              "auto",
              "cams_europe",
              "cams_global"
            ],
            "type": "string",
            "description": "Air-quality modes only.",
            "default": "auto"
          },
          "layout": {
            "title": "Layout",
            "enum": [
              "rows",
              "compact"
            ],
            "type": "string",
            "description": "Compact is cheaper for long hourly ranges (1 billed item per location).",
            "default": "rows"
          },
          "maxItems": {
            "title": "Max rows per run",
            "minimum": 1,
            "type": "integer",
            "description": "Hard cap on dataset rows.",
            "default": 20000
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}