{
  "openapi": "3.0.1",
  "info": {
    "title": "Mountain Forecast Scraper",
    "description": "Scrape mountain weather forecasts from Mountain-Forecast.com for 100,000+ peaks worldwide. Search peaks by name, browse by country, or paste a forecast URL - get 6-day outlooks at each summit elevation band with temperatures, wind, feels-like, cloud base, freezing level and snowfall.",
    "version": "1.0",
    "x-build-id": "zM0gvjy6QrCguey5X"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlerbros~mountain-forecast-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlerbros-mountain-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/crawlerbros~mountain-forecast-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawlerbros-mountain-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/crawlerbros~mountain-forecast-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawlerbros-mountain-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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "browseByCountry",
              "browseByRange",
              "byUrl"
            ],
            "type": "string",
            "description": "What to fetch.",
            "default": "search"
          },
          "searchQuery": {
            "title": "Search query",
            "type": "string",
            "description": "Peak name (or city / hut) to search, e.g. `matterhorn`, `mont blanc`, `everest` (mode=search).",
            "default": "matterhorn"
          },
          "country": {
            "title": "Country",
            "enum": [
              "PK",
              "AF",
              "AM",
              "AZ",
              "BD",
              "BT",
              "BN",
              "KH",
              "CN",
              "GE",
              "IN",
              "ID",
              "IR",
              "IQ",
              "IL",
              "JP",
              "JO",
              "KZ",
              "KP",
              "KR",
              "KG",
              "LA",
              "LB",
              "MY",
              "MN",
              "MM",
              "NP",
              "OM",
              "PH",
              "QA",
              "SA",
              "LK",
              "SY",
              "TW",
              "TJ",
              "TH",
              "TR",
              "TM",
              "AE",
              "UZ",
              "VN",
              "YE",
              "AG",
              "AW",
              "BZ",
              "CA",
              "CR",
              "CU",
              "DM",
              "DO",
              "SV",
              "GL",
              "GD",
              "GP",
              "GT",
              "HT",
              "HN",
              "JM",
              "MQ",
              "MX",
              "MS",
              "AN",
              "NI",
              "PA",
              "PR",
              "KN",
              "LC",
              "PM",
              "BS",
              "TT",
              "TC",
              "US",
              "VI",
              "AL",
              "AD",
              "AT",
              "BY",
              "BE",
              "BA",
              "BG",
              "HR",
              "CY",
              "CZ",
              "DK",
              "FO",
              "FI",
              "FR",
              "DE",
              "GR",
              "HU",
              "IS",
              "IE",
              "IM",
              "IT",
              "XJ",
              "LV",
              "LT",
              "LU",
              "MT",
              "MD",
              "NL",
              "NO",
              "PL",
              "PT",
              "MK",
              "RO",
              "RU",
              "RS",
              "SK",
              "SI",
              "ES",
              "SJ",
              "SE",
              "CH",
              "UA",
              "GB",
              "AR",
              "BO",
              "BR",
              "CL",
              "CO",
              "EC",
              "FK",
              "GF",
              "GY",
              "PY",
              "PE",
              "SR",
              "UY",
              "VE",
              "AS",
              "AU",
              "CX",
              "CK",
              "FJ",
              "PF",
              "GU",
              "FM",
              "NC",
              "NZ",
              "MP",
              "PW",
              "PG",
              "PN",
              "WS",
              "SB",
              "TO",
              "VU",
              "WF",
              "DZ",
              "AO",
              "BW",
              "BI",
              "CM",
              "CV",
              "TD",
              "KM",
              "CG",
              "CD",
              "EG",
              "GQ",
              "ER",
              "ET",
              "GA",
              "GH",
              "KE",
              "LS",
              "LR",
              "LY",
              "MG",
              "MW",
              "ML",
              "MR",
              "MU",
              "YT",
              "MA",
              "MZ",
              "NA",
              "NE",
              "NG",
              "RE",
              "RW",
              "ST",
              "SC",
              "SL",
              "SO",
              "ZA",
              "SD",
              "TZ",
              "TG",
              "SH",
              "TN",
              "UG",
              "ZM",
              "ZW",
              "AQ",
              "TF",
              "GS"
            ],
            "type": "string",
            "description": "ISO 3166-1 alpha-2 country code to browse peaks for (mode=browseByCountry)."
          },
          "mountainRange": {
            "title": "Mountain range",
            "enum": [
              "1272",
              "alaska-yukon-ranges",
              "alborz",
              "alps",
              "anatolia",
              "andes",
              "antarctica-ranges",
              "appalachians",
              "arabian-peninsula",
              "arctic-cordillera",
              "armenian-highlands",
              "atlantic-islands",
              "atlas-mountains",
              "baetic-system",
              "balkan-peninsula",
              "brazilian-highlands",
              "cambrian-mountains",
              "canadian-rockies",
              "cantabrian-mountains-cordillera-cantabrica",
              "carpathian-mountains",
              "caucasus-mountains",
              "central-american-ranges",
              "central-asia-ranges",
              "central-siberian-plateau",
              "coastal-south-america",
              "columbia-mountains",
              "dinaric-alps",
              "east-africa-mountains",
              "eastern-europe-ranges",
              "eastern-ghats",
              "ethiopian-highlands",
              "great-dividing-range",
              "greater-himalaya",
              "greenland",
              "indian-ocean-islands",
              "interior-mountains-of-canada",
              "interior-plateau-of-canada",
              "intermountain-west",
              "iranian-plateau",
              "ireland-ranges",
              "italian-peninsula-and-islands",
              "japanese-archipelago",
              "jura-mountains",
              "lake-district",
              "laurentian-mountains",
              "levant-ranges",
              "malay-archipelago-and-melanesia",
              "massif-central",
              "mexican-ranges",
              "minor-ranges-in-south-america",
              "minor-ranges-of-africa",
              "minor-ranges-of-asia",
              "minor-ranges-of-europe",
              "new-guinea-ranges",
              "new-zealand",
              "north-pacific-volcanic-islands",
              "other-ranges-of-america",
              "other-ranges-of-australia",
              "other-ranges-of-canada",
              "other-ranges-of-england",
              "pacific-coast-ranges",
              "pennines",
              "pyrenees",
              "ranges-of-southeast-asia",
              "ranges-of-taiwan",
              "ranges-of-the-philippines",
              "rocky-mountains-usa",
              "sahara-desert-ranges",
              "scandinavia-european-arctic-ranges",
              "scottish-highlands",
              "scottish-lowlands",
              "siberia-ranges",
              "sierra-nevada",
              "sikhote-alin-mountains",
              "sistema-central",
              "sistema-ib-rico",
              "sistemas-preb-ticos",
              "south-pacific-volcanic-islands",
              "southern-africa",
              "the-caribbean",
              "tibet-and-central-china",
              "urals",
              "west-africa-mountains",
              "western-ghats",
              "zagros"
            ],
            "type": "string",
            "description": "Mountain range to browse peaks for (mode=browseByRange). Ranges with a huge peak count are walked subrange-by-subrange."
          },
          "startUrl": {
            "title": "Forecast URL (mode=byUrl)",
            "type": "string",
            "description": "Full forecast or peak page URL, e.g. `https://www.mountain-forecast.com/peaks/Matterhorn/forecasts/4478` (mode=byUrl).",
            "default": "https://www.mountain-forecast.com/peaks/Matterhorn/forecasts/4478"
          },
          "forecastDays": {
            "title": "Forecast days",
            "minimum": 1,
            "maximum": 6,
            "type": "integer",
            "description": "How many forecast days to include per peak (the site provides a rolling 6-day outlook).",
            "default": 6
          },
          "containsKeyword": {
            "title": "Keyword filter",
            "type": "string",
            "description": "Only keep peaks whose name (or country) contains this substring, case-insensitive."
          },
          "includeAllElevations": {
            "title": "Include all elevation bands",
            "type": "boolean",
            "description": "Emit a separate record for every elevation band of the peak (summit, mid, base) instead of only the summit forecast.",
            "default": false
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Hard cap on emitted records.",
            "default": 10
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}