{
  "openapi": "3.0.1",
  "info": {
    "title": "Open-Meteo Weather Scraper",
    "description": "Scrape Open-Meteo, free open-source weather API with global forecasts, historical weather, air quality, marine conditions, and climate data. No API key required.",
    "version": "1.0",
    "x-build-id": "tenAOXhjPOShjsfh4"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlerbros~open-meteo-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlerbros-open-meteo-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/crawlerbros~open-meteo-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawlerbros-open-meteo-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/crawlerbros~open-meteo-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawlerbros-open-meteo-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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "forecast",
              "historical",
              "airQuality",
              "marine",
              "climateData",
              "geocode"
            ],
            "type": "string",
            "description": "What weather data to fetch.",
            "default": "forecast"
          },
          "location": {
            "title": "Location (city name)",
            "type": "string",
            "description": "City name to look up automatically (e.g. 'Berlin', 'New York', 'Tokyo'). If provided, geocoding is performed automatically. Ignored if latitude/longitude are set."
          },
          "latitude": {
            "title": "Latitude",
            "minimum": -90,
            "maximum": 90,
            "type": "number",
            "description": "Geographic latitude (-90 to 90). Overrides location field if provided."
          },
          "longitude": {
            "title": "Longitude",
            "minimum": -180,
            "maximum": 180,
            "type": "number",
            "description": "Geographic longitude (-180 to 180). Overrides location field if provided."
          },
          "timezone": {
            "title": "Timezone",
            "enum": [
              "auto",
              "UTC",
              "America/New_York",
              "America/Chicago",
              "America/Denver",
              "America/Los_Angeles",
              "America/Toronto",
              "America/Vancouver",
              "America/Sao_Paulo",
              "America/Mexico_City",
              "America/Buenos_Aires",
              "Europe/London",
              "Europe/Berlin",
              "Europe/Paris",
              "Europe/Madrid",
              "Europe/Rome",
              "Europe/Amsterdam",
              "Europe/Stockholm",
              "Europe/Warsaw",
              "Europe/Istanbul",
              "Europe/Moscow",
              "Asia/Tokyo",
              "Asia/Shanghai",
              "Asia/Kolkata",
              "Asia/Dubai",
              "Asia/Singapore",
              "Asia/Seoul",
              "Asia/Bangkok",
              "Asia/Jakarta",
              "Asia/Karachi",
              "Africa/Cairo",
              "Africa/Lagos",
              "Africa/Nairobi",
              "Africa/Johannesburg",
              "Australia/Sydney",
              "Australia/Melbourne",
              "Pacific/Auckland",
              "Pacific/Honolulu"
            ],
            "type": "string",
            "description": "Timezone for returned data. Use 'auto' to detect automatically from coordinates.",
            "default": "auto"
          },
          "forecastDays": {
            "title": "Forecast days (mode=forecast)",
            "minimum": 1,
            "maximum": 16,
            "type": "integer",
            "description": "Number of days to forecast (1–16). Defaults to 7.",
            "default": 7
          },
          "startDate": {
            "title": "Start date (mode=historical)",
            "type": "string",
            "description": "Start date for historical data in YYYY-MM-DD format (e.g. '2023-01-01'). Required for historical mode."
          },
          "endDate": {
            "title": "End date (mode=historical)",
            "type": "string",
            "description": "End date for historical data in YYYY-MM-DD format (e.g. '2023-12-31'). Required for historical mode."
          },
          "hourlyVars": {
            "title": "Hourly variables",
            "type": "array",
            "description": "Hourly weather variables to include (forecast and historical modes).",
            "items": {
              "type": "string",
              "enum": [
                "temperature_2m",
                "relativehumidity_2m",
                "dewpoint_2m",
                "apparent_temperature",
                "precipitation",
                "rain",
                "snowfall",
                "weathercode",
                "pressure_msl",
                "surface_pressure",
                "cloudcover",
                "visibility",
                "windspeed_10m",
                "winddirection_10m",
                "windgusts_10m",
                "uv_index",
                "uv_index_clear_sky",
                "is_day",
                "shortwave_radiation",
                "diffuse_radiation",
                "direct_radiation"
              ]
            }
          },
          "dailyVars": {
            "title": "Daily variables",
            "type": "array",
            "description": "Daily weather summary variables to include.",
            "items": {
              "type": "string",
              "enum": [
                "temperature_2m_max",
                "temperature_2m_min",
                "apparent_temperature_max",
                "apparent_temperature_min",
                "precipitation_sum",
                "rain_sum",
                "snowfall_sum",
                "precipitation_hours",
                "weathercode",
                "sunrise",
                "sunset",
                "windspeed_10m_max",
                "windgusts_10m_max",
                "winddirection_10m_dominant",
                "shortwave_radiation_sum",
                "et0_fao_evapotranspiration",
                "uv_index_max",
                "uv_index_clear_sky_max"
              ]
            }
          },
          "cityName": {
            "title": "City name (mode=geocode)",
            "type": "string",
            "description": "City name to search for coordinates. Required for geocode mode."
          },
          "country": {
            "title": "Country filter (mode=geocode)",
            "type": "string",
            "description": "Optional country to narrow geocode search (e.g. 'US', 'Germany')."
          },
          "climateModel": {
            "title": "Climate model (mode=climateData)",
            "enum": [
              "EC_Earth3P_HR",
              "CMCC_CM2_VHR4",
              "MPI_ESM1_2_XR",
              "NICAM16_8S"
            ],
            "type": "string",
            "description": "Climate model for projections. EC_Earth3P_HR is high-resolution. Use startDate/endDate to limit the range (default: 1990–2050).",
            "default": "EC_Earth3P_HR"
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of records to return.",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}