{
  "openapi": "3.0.1",
  "info": {
    "title": "Open-Meteo Scraper · Weather Forecasts, History & Locations",
    "description": "Scrape weather forecasts, historical climate archives, and geocoding location data from the Open-Meteo API. Fast HTTP scraper charging per returned location report.",
    "version": "1.0",
    "x-build-id": "JzlVZeQwjYnrq50gM"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/reapx~open-meteo-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-reapx-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/reapx~open-meteo-scraper/runs": {
      "post": {
        "operationId": "runs-sync-reapx-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/reapx~open-meteo-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-reapx-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",
          "locations",
          "forecastDays",
          "temperatureUnit",
          "windSpeedUnit",
          "precipitationUnit",
          "maxLocations"
        ],
        "properties": {
          "mode": {
            "title": "Operation Mode",
            "enum": [
              "forecast",
              "archive",
              "geocoding_only"
            ],
            "type": "string",
            "description": "Select whether to fetch 7-day weather <b>forecasts</b>, historical weather <b>archives</b>, or location <b>geocoding</b> data from Open-Meteo API. <code>forecast</code> retrieves current weather conditions and daily metrics.<br><br>Leaving this setting at default uses forecast mode. Choosing archive mode requires setting start and end dates."
          },
          "locations": {
            "title": "Target Locations / Cities",
            "type": "array",
            "description": "List of city names, postal codes, or location queries to search and fetch weather data for. <b>Example:</b> <code>[\"London\", \"Paris\", \"Tokyo\"]</code>.<br><br>Leaving this field empty defaults to major global cities. Each location is resolved using the Open-Meteo Geocoding API before fetching weather measurements."
          },
          "countryCode": {
            "title": "Country Filter (ISO 3166-1)",
            "pattern": "^[A-Z]{2}$",
            "type": "string",
            "description": "Filter location search results by two-letter ISO 3166-1 country code (e.g. <code>GB</code> for United Kingdom, <code>FR</code> for France, <code>US</code> for United States).<br><br>Leave empty to search globally without country restriction. Pattern requires exactly two uppercase letters."
          },
          "forecastDays": {
            "title": "Forecast Days",
            "minimum": 1,
            "maximum": 16,
            "type": "integer",
            "description": "Number of daily forecast days to retrieve when mode is set to forecast (1 to 16 days). The higher the number, the larger the payload returned for each location.<br><br>Defaults to 7 days of daily weather projections. Must be an integer between 1 and 16.<br><br>The higher the number, the longer the run takes and the more you are charged, because you pay per row returned."
          },
          "startDate": {
            "title": "Archive Start Date",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Start date for historical weather archive queries in ISO format (<code>YYYY-MM-DD</code>). Used when mode is set to archive.<br><br>Leave empty to use 14 days prior to current date. The earlier the date, the more historical weather records are fetched."
          },
          "endDate": {
            "title": "Archive End Date",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "End date for historical weather archive queries in ISO format (<code>YYYY-MM-DD</code>). Used when mode is set to archive.<br><br>Leave empty to use 7 days prior to current date. End date must be on or after the specified start date."
          },
          "temperatureUnit": {
            "title": "Temperature Unit",
            "enum": [
              "celsius",
              "fahrenheit"
            ],
            "type": "string",
            "description": "Unit of measurement for temperature values across all location reports. Choose between <code>celsius</code> (°C) or <code>fahrenheit</code> (°F).<br><br>Defaults to celsius metric standards. Affects min, max, and current temperature outputs."
          },
          "windSpeedUnit": {
            "title": "Wind Speed Unit",
            "enum": [
              "kmh",
              "ms",
              "mph",
              "kn"
            ],
            "type": "string",
            "description": "Unit of measurement for wind speed values across all location reports. Options include <code>kmh</code> (km/h), <code>ms</code> (m/s), <code>mph</code> (miles/hr), or <code>kn</code> (knots).<br><br>Defaults to kmh metric speed standards."
          },
          "precipitationUnit": {
            "title": "Precipitation Unit",
            "enum": [
              "mm",
              "inch"
            ],
            "type": "string",
            "description": "Unit of measurement for precipitation values (rain, snowfall). Choose between <code>mm</code> (millimeters) or <code>inch</code> (inches).<br><br>Defaults to millimeters metric standards. Affects daily precipitation totals."
          },
          "maxLocations": {
            "title": "Maximum Locations to Scrape",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Upper capacity limit on total unique location weather reports produced in a single execution. The higher the number, the longer the run takes and the more events are charged.<br><br>Defaults to 50 locations. Set a lower limit to test queries quickly.<br><br>The higher the number, the longer the run takes and the more you are charged, because you pay per row returned.",
            "default": 50
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}