Peak Cam Resorts Ask API

The deterministic answer endpoint.

GitHub OpenAPI

Operations 2

GET /ask Answer a natural-language question deterministically #
POST /ask Answer a question (JSON body) #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/peakcam-io:peakcam-io-ask-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

peakcam-io-ask-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: PeakCam Public Ask API
  version: 1.1.0
  summary: Live ski-resort snow conditions and webcams with per-field provenance.
  description: 'Read-only JSON for the resorts PeakCam tracks across North and South America: latest snow report (base depth, 24/48 h new snow, SWE, percent of the 30-year normal, 7-day trend), season status, and webcams with a still image where one exists.


    Every snow number carries its own `source` and `measuredAt`. `snotel` values are NRCS SNOTEL/SCAN station telemetry, quality-controlled by PeakCam and synced every six hours; `open_meteo` values are weather-model estimates for resorts without a station. A station sits at one elevation, so its numbers can differ from a resort''s own marketing report.


    No authentication. Rate limit: 60 requests per minute per IP across /api/v1 and /api/mcp, enforced at the edge (a plain-text 403, see each operation). Responses are cacheable for 900 s. When you quote a value, cite the resort''s `canonicalUrl` and keep the attribution line.


    Agents: `GET /ask?q=` answers a question deterministically (one tool call, a dated sentence, citations; never a guess); `POST /batch` runs up to 10 reads in one request; `GET /resorts/search-index` is the name-to-slug table. The same data is an MCP server at https://www.peakcam.io/api/mcp (setup: https://www.peakcam.io/connect). An NLWeb-shaped form of the answer endpoint is at https://www.peakcam.io/ask (outside this server''s base path).


    Methodology: https://www.peakcam.io/methodology. Short and long agent guides: https://www.peakcam.io/llms.txt, https://www.peakcam.io/llms-full.txt. Standalone JSON Schemas for every shape below: https://www.peakcam.io/.well-known/schemas.


    Versioning and deprecation: the base path carries the major version (/api/v1); within it, PeakCam only adds fields, enum values and operations, never renames or removes them without notice. A removal is announced at least 12 months ahead: the affected operation starts answering with a `Deprecation` header (RFC 9745, the announcement date) and a `Sunset` header (RFC 8594, the earliest removal date) plus `Link: ; rel="sunset"`, its summary in this document gains "Deprecated:" with the replacement, and the same notice appears in https://www.peakcam.io/llms-full.txt and on https://www.peakcam.io/connect. Current operations carry neither header. A new major version is published at its own base path (/api/v2) and the previous one keeps answering for the full notice period after the new one is announced. The MCP server (https://www.peakcam.io/api/mcp) follows the same rule for tool names and argument shapes: a renamed tool keeps its old name registered, marked deprecated in its description, for 12 months.'
  contact:
    name: PeakCam
    url: https://www.peakcam.io
  license:
    name: PeakCam Terms of Service
    url: https://www.peakcam.io/about#terms
  x-attribution: 'PeakCam (https://www.peakcam.io) - SNOTEL data: USDA NRCS; forecasts: NWS/Open-Meteo; cams: their operators'
  x-mcp-endpoint: https://www.peakcam.io/api/mcp
  x-nlweb-endpoint: https://www.peakcam.io/ask
  x-json-schemas: https://www.peakcam.io/.well-known/schemas
  x-deprecation-policy:
    noticeMonths: 12
    announcedAt:
    - /llms-full.txt
    - /connect
    - /api/v1/openapi.json
    headers:
    - Deprecation
    - Sunset
    - Link rel=sunset
    rfcs:
    - RFC 9745 (Deprecation)
    - RFC 8594 (Sunset)
  x-stdio-package: npx -y peakcam-mcp
servers:
- url: https://www.peakcam.io/api/v1
  description: Production
security: []
tags:
- name: ask
  description: The deterministic answer endpoint.
paths:
  /ask:
    get:
      operationId: getAsk
      tags:
      - ask
      summary: Answer a natural-language question deterministically
      description: 'Resolves the resort the question names (name, slug or nickname, one typo of slack), picks an intent from the wording (snow, open/closed, forecast, cams, cam timeline, history, compare, where did it snow, percent of normal, profile, regions, alerts), runs the one matching tool and returns its structured result with a dated, source-labelled sentence and the URLs to cite. No language model. Unanswerable questions are a 200 with `answerable: false` and suggestions, never a guess. Only a missing or oversized question is a 400. Also accepts `query` and `question` as the parameter name.'
      parameters:
      - name: q
        in: query
        required: true
        description: The question as the user asked it, up to 300 characters.
        schema:
          type: string
          maxLength: 300
        example: is Alta open
      responses:
        '200':
          description: The answer, answerable or not.
          headers:
            X-Attribution:
              description: Attribution line to carry with any reuse of the data.
              schema:
                type: string
                const: 'PeakCam (https://www.peakcam.io) - SNOTEL data: USDA NRCS; forecasts: NWS/Open-Meteo; cams: their operators'
            Link:
              description: 'Web links: `rel="author"` (PeakCam) and `rel="license"` (terms of reuse).'
              schema:
                type: string
            Cache-Control:
              description: public, s-maxage=900, stale-while-revalidate=3600 — data refreshes on a 15-minute ISR window; the sync jobs write new reports every 6 hours.
              schema:
                type: string
            Deprecation:
              description: 'RFC 9745. Present only on a deprecated operation: the moment the deprecation was announced, as an RFC 9651 Date (`@` + Unix seconds, e.g. `@1767225600`). Absent on every current operation.'
              schema:
                type: string
                pattern: ^@[0-9]+$
              required: false
            Sunset:
              description: 'RFC 8594. Present only on a deprecated operation: the HTTP-date after which it may stop answering, at least 12 months after `Deprecation`. A `Link: <...>; rel="sunset"` points at the changelog entry that names the replacement.'
              schema:
                type: string
              required: false
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AskAnswer'
        '400':
          description: A query parameter failed validation.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: 'Rate limit exceeded: 60 requests per minute per IP across /api/v1 and /api/mcp. The edge answers a plain-text `Forbidden` with `x-vercel-mitigated: deny` and no Retry-After; the window resets within a minute.'
          content:
            text/plain:
              schema:
                type: string
                example: Forbidden
    post:
      operationId: postAsk
      tags:
      - ask
      summary: Answer a question (JSON body)
      description: Identical to the GET; the question is `query` (or `q`, `question`) in a JSON body.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - query
              properties:
                query:
                  type: string
                  maxLength: 300
            example:
              query: where did it snow most in Colorado
      responses:
        '200':
          description: The answer, answerable or not.
          headers:
            X-Attribution:
              description: Attribution line to carry with any reuse of the data.
              schema:
                type: string
                const: 'PeakCam (https://www.peakcam.io) - SNOTEL data: USDA NRCS; forecasts: NWS/Open-Meteo; cams: their operators'
            Link:
              description: 'Web links: `rel="author"` (PeakCam) and `rel="license"` (terms of reuse).'
              schema:
                type: string
            Cache-Control:
              description: public, s-maxage=900, stale-while-revalidate=3600 — data refreshes on a 15-minute ISR window; the sync jobs write new reports every 6 hours.
              schema:
                type: string
            Deprecation:
              description: 'RFC 9745. Present only on a deprecated operation: the moment the deprecation was announced, as an RFC 9651 Date (`@` + Unix seconds, e.g. `@1767225600`). Absent on every current operation.'
              schema:
                type: string
                pattern: ^@[0-9]+$
              required: false
            Sunset:
              description: 'RFC 8594. Present only on a deprecated operation: the HTTP-date after which it may stop answering, at least 12 months after `Deprecation`. A `Link: <...>; rel="sunset"` points at the changelog entry that names the replacement.'
              schema:
                type: string
              required: false
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AskAnswer'
        '400':
          description: A query parameter failed validation.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: 'Rate limit exceeded: 60 requests per minute per IP across /api/v1 and /api/mcp. The edge answers a plain-text `Forbidden` with `x-vercel-mitigated: deny` and no Retry-After; the window resets within a minute.'
          content:
            text/plain:
              schema:
                type: string
                example: Forbidden
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
        detail:
          type: string
        status:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
      required:
      - error
      - status
      additionalProperties: false
    AskIntent:
      type: string
      enum:
      - conditions
      - openings
      - forecast
      - cams
      - cam_timeline
      - history
      - compare
      - powder
      - percent_of_normal
      - profile
      - regions
      - alerts
      - unknown
    AskResortRef:
      type: object
      properties:
        slug:
          type: string
        name:
          type: string
        canonicalUrl:
          type: string
      required:
      - slug
      - name
      - canonicalUrl
      additionalProperties: false
    AskAnswer:
      type: object
      properties:
        question:
          type: string
        answerable:
          type: boolean
          description: False when the router found no resort or no intent it could serve; `data` is then null and `suggestions` says what to ask.
        intent:
          $ref: '#/components/schemas/AskIntent'
        tool:
          anyOf:
          - type: string
          - type: 'null'
          description: The PeakCam MCP tool whose result is in `data`.
        arguments:
          anyOf:
          - type: object
            propertyNames:
              type: string
            additionalProperties: {}
          - type: 'null'
          description: The arguments that tool was called with, so the call can be repeated over MCP.
        resort:
          anyOf:
          - $ref: '#/components/schemas/AskResortRef'
          - type: 'null'
          description: The resort the question named (the first, for a comparison).
        resorts:
          type: array
          items:
            $ref: '#/components/schemas/AskResortRef'
          description: Every resort the question named, in order.
        place:
          anyOf:
          - type: object
            properties:
              state:
                anyOf:
                - type: string
                - type: 'null'
              country:
                anyOf:
                - type: string
                - type: 'null'
            required:
            - state
            - country
            additionalProperties: false
          - type: 'null'
        sentence:
          type: string
          description: A dated, source-labelled sentence that can be quoted verbatim.
        asOf:
          anyOf:
          - type: string
          - type: 'null'
          description: ISO instant of the newest report the sentence used; null when it used none.
        data:
          anyOf:
          - {}
          - type: 'null'
          description: The tool's structured result (its documented `outputSchema`), or null.
        citations:
          type: array
          items:
            type: string
          description: PeakCam URLs to cite, the resort page first.
        suggestions:
          type: array
          items:
            type: string
          description: Questions the router can answer, offered when it could not answer this one.
        attribution:
          type: string
        license:
          type: string
        generatedAt:
          type: string
      required:
      - question
      - answerable
      - intent
      - tool
      - arguments
      - resort
      - resorts
      - place
      - sentence
      - asOf
      - data
      - citations
      - suggestions
      - attribution
      - license
      - generatedAt
      additionalProperties: false
externalDocs:
  description: How the numbers are measured
  url: https://www.peakcam.io/methodology