Peak Cam Resorts Batch API
Several reads in one request.
Several reads in one request.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/peakcam-io:peakcam-io-batch-api"
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.
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: 3.2.0
info:
title: PeakCam Public Batch 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: Batch
description: Several reads in one request.
paths:
/batch:
post:
operationId: batchRead
tags:
- Batch
summary: Run up to 10 GET requests in one call
description: 'Accepts up to 10 GET paths under /api/v1 (with query strings) and answers them in order, each with the status and body that path would have returned on its own. The paths run in-process against the same handlers, so a batch is one function invocation and one request against the edge rate limit. Read-only by construction: only /resorts, /resorts/search-index, /resorts/{slug}, /resorts/{slug}/cams, /resorts/{slug}/conditions, /resorts/{slug}/timelapses, /resorts/{slug}/forecast, /resorts/{slug}/forecast-accuracy, /resorts/{slug}/score-components, /resorts/{slug}/history, /resorts/{slug}/season-stats, /resorts/{slug}/monthly, /leaderboards/{kind}, /snow-report, /powder, /status and /ask (GET) dispatch; any other path fails the whole batch with a 400 naming it. The response is never cached.'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/BatchRequest'
example:
requests:
- path: /api/v1/resorts/alta
- path: /api/v1/resorts/vail/cams
- path: /api/v1/powder?state=UT&limit=3
responses:
'200':
description: Per-path results in request order.
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/BatchResponse'
'400':
description: Invalid body, more than ten paths, or a path that is not batchable.
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
BatchResponse:
type: object
properties:
count:
type: integer
minimum: -9007199254740991
maximum: 9007199254740991
results:
type: array
items:
$ref: '#/components/schemas/BatchResult'
description: In request order.
attribution:
type: string
license:
type: string
generatedAt:
type: string
required:
- count
- results
- attribution
- license
- generatedAt
additionalProperties: false
BatchRequest:
type: object
properties:
requests:
minItems: 1
maxItems: 10
type: array
items:
type: object
properties:
path:
type: string
description: A GET path under /api/v1, with its query string, e.g. `/api/v1/resorts/alta`.
required:
- path
additionalProperties: false
required:
- requests
additionalProperties: false
BatchResult:
type: object
properties:
path:
type: string
status:
type: integer
minimum: -9007199254740991
maximum: 9007199254740991
description: The HTTP status that path would have answered on its own.
body:
description: That route's JSON body (its documented schema), or its error envelope.
required:
- path
- status
- body
additionalProperties: false
externalDocs:
description: How the numbers are measured
url: https://www.peakcam.io/methodology