activities

GET /activities

Returns activities available at National Park Service sites, with optional filters for activity IDs or a search term.

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

idstring

One or more activity unique IDs.

qstring

term to search on

limitinteger

Number of results to return per request. Default is 50.

startinteger

Get the next [limit] results starting with this number. Default is 0.

sortstring

A comma delimited list of fields to sort the results by. Ascending order is assumed for each field unless the field name is prefixed with the unary negative which implies descending order.

Response

successful operation

totalstring
limitstring
startstring

Example response

{
  "total": "2",
  "data": [
    {
      "id": "FEDA3DF8-B871-4C1A-BB96-32823860B174",
      "name": "Arts and Culture"
    },
    {
      "id": "F07B0BA0-A3E9-4C82-9746-57DA4953C2E6",
      "name": "Astronomy"
    }
  ],
  "limit": "50",
  "start": "0"
}

Changes

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