roadevents

GET /roadevents

Returns road events, optionally filtered by park code and event type.

Request

  • Base URL
    https://developer.nps.gov/api/v1
  • Auth
    • API key in query parameter api_key
    • or API key in header X-Api-Key

Query parameters

parkCodestring

A comma delimited list of 4 character park codes.

typestring

either 'incident' or 'workzone'

Response

successful operation

typestring

Example response

{
  "features": [
    {
      "geometry": {
        "coordinates": [
          [
            -119.702835431915,
            37.6557553889563
          ]
        ],
        "type": "LineString"
      },
      "id": "13a5ed88-e452-440f-8daf-98707ed728b5",
      "properties": {
        "core_details": {
          "data_source_id": "16e33ae7-e71f-45ce-2e37-08d4c7ad36e2",
          "description": "Glacier Point Road is closed from July 9 at 10 pm through July 14. The road will be open starting July 15, with 30-minute delays.",
          "direction": "unknown",
          "event_type": "work-zone",
          "name": "Glacier Point Road Construction Closure",
          "road_names": [
            "Glacier Point Road"
          ]
        },
        "end_date": "2023-07-15T01:00:00Z",
        "location_method": "unknown",
        "start_date": "2023-06-30T23:04:00Z",
        "types_of_work": [
          {
            "type_name": "painting"
          }
        ],
        "vehicle_impact": "all-lanes-closed"
      },
      "type": "Feature"
    }
  ],
  "road_event_feed_info": {
    "contact_email": "asknps@nps.gov",
    "contact_name": "National Park Service",
    "data_sources": [
      {
        "contact_email": "YOSE_Superintendent@nps.gov",
        "contact_name": "Yosemite National Park",
        "data_source_id": "16e33ae7-e71f-45ce-2e37-08d4c7ad36e2",
        "organization_name": "Yosemite National Park",
        "update_date": "2023-07-09T11:07:22.389219Z",
        "update_frequency": 150
      }
    ],
    "id": "6ba84a20-3be7-4df0-81eb-711eccf84f18",
    "license": "https://creativecommons.org/publicdomain/zero/1.0/",
    "publisher": "National Park Service",
    "update_date": "2023-04-28T06:37:22.497618Z",
    "update_frequency": 60,
    "version": "4.1"
  },
  "type": "FeatureCollection"
}

Changes

No recorded changes to this operation across all 1 revision of this API.