Reports

Records changed today

GET /api/v1/reports/summaries/changed-today — Records changed today.

GET /api/v1/reports/summaries/changed-today

Retrieve counts of catalog records updated since API-process local midnight, plus a small set of matching mountains.

Authentication

An API key is required for external integrations. Send X-API-Key: YOUR_API_KEY or Authorization: Bearer YOUR_API_KEY. Authentication explains public origin and secret IP restrictions.

Parameters

No resource-specific query parameters.

Counts updated_at since midnight in the API process timezone, which is not guaranteed UTC or resort-local. This is a record-update count, not necessarily an operational change. recent_mountains is at most five records with no guaranteed ordering.

Example request

curl -H "X-API-Key: $ICECOAST_API_KEY" 'https://api.icecoast.us/api/v1/reports/summaries/changed-today'

JavaScript above is a server-side Node.js example. Browser clients must use an origin-restricted public key; never bundle a secret key.

Response

Success is HTTP 200 with success: true, data and meta.version: "v1".

The following is a synthetic response excerpt illustrating the verified structure. Names, IDs, counts and dates are examples, not live resort data. Optional fields are omitted.

{
  "success": true,
  "data": {
    "mountains": 0,
    "trails": 0,
    "lifts": 0,
    "recent_mountains": []
  },
  "meta": {
    "version": "v1"
  }
}

Resource fields

FieldTypeMeaning
mountainsintegerSee the data model and returned resource.
trailsintegerSee the data model and returned resource.
liftsintegerSee the data model and returned resource.
recent_mountainsarraySee the data model and returned resource.

Record fields may be missing or null. Treat identifiers as opaque and distinguish unavailable values from confirmed false/zero. See data semantics.

Errors

HTTP statusMeaning
400Invalid request parameters where validated.
401Missing, invalid, expired or revoked API key.
403Origin/IP restriction or endpoint key-type restriction denied the request.
429Monthly API allowance exhausted when a key is used.
500The resource could not be read.
503API-key/quota verification unavailable.

JSON errors may use error or message; the global handler maps validation/runtime errors to success: false, error (name) and message (details). See error handling.