ADK Trails

Data feed & embeds

ADK Trails can appear on any website: drop in a widget, or read the same data as JSON. Everything updates automatically from NYS DEC several times an hour.

Embed a widget

Paste this where the widget should appear. It sizes itself to fit.

<div data-trail-conditions="alerts" data-zone="high-peaks"></div>
<script src="https://adk-trails.netlify.app/embed.js" async></script>

Or one trail's status:

<div data-trail-conditions="trail" data-trail="cascade-mountain-trail"></div>
<script src="https://adk-trails.netlify.app/embed.js" async></script>

No JavaScript allowed? A plain iframe works too: <iframe src="https://adk-trails.netlify.app/embed/alerts/high-peaks" style="width:100%;height:360px;border:0"></iframe>

Preview:

Region ids for data-zone: high-peaks (High Peaks), northwestern (Northwestern), northern (Northern), northeastern (Northeastern), western (Western), west-central (West Central), east-central (East Central), eastern (Eastern), southwestern (Southwestern), southern (Southern). Leave data-zone out for everywhere.

JSON feed

No key needed. Responses are cached for up to 5 minutes and can be read from any website (CORS is open).

Every response starts with the same fields, so you always know how fresh it is:

{
  "version": "1",
  "publisher": "ADK Trails",
  "generatedAt": "2026-10-16T18:20:00.000Z",
  "lastCheckedAt": "2026-10-16T18:15:04.203Z",
  "dataStatus": "ok",            // "stale" after 3 hours without a DEC check; "failing" if DEC can't be read
  "source": { "name": "New York State Department of Environmental Conservation (DEC)", "url": "…" },
  "disclaimer": "Not affiliated with NYS DEC. …",
  …
}

A trail's status is the most serious current DEC alert that names it: closed, caution, info, open (no alerts) or unchecked.

When you show this data

  • Show the disclaimer and when the data was last checked, as the widgets do.
  • If dataStatus isn't "ok", say so — don't present old alerts as current.
  • Credit NYS DEC as the source and link to the alert's sourceUrl.