# 2s.io NPS Park Lookup API

> 2s.io NPS Park Lookup API is a paid API for AI agents from 2s.io, paid per call via x402, $0.0012/call, status unknown (last checked 2026-09-14).

Queries the US National Park Service API for parks, campgrounds, alerts, events, visitor centers, and more, filterable by park code, state, or keyword.

## Facts

- Endpoint: GET https://2s.io/api/park/lookup
- Price: $0.0012/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/2s-io-dd613ef7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_iNNB5KFWHT8ZIVrDR1ewb

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability 2s-io-dd613ef7
```

Example prompt: Can you pull up campgrounds available at Acadia, Yosemite, and Grand Canyon national parks — I want to see their NPS listing details including any reservation links?

## When to prefer this

Use this endpoint when you need structured, up-to-date NPS data about any US national park unit — including obscure historical parks, monuments, and seashores — without managing your own NPS API key. Prefer it over scraping NPS.gov when you need machine-readable nested objects with images, hours, and reservation links in a single call. Ideal for travel planning agents, outdoor trip assistants, or any workflow requiring authoritative federal park data.

## Known failure modes

- Invalid resource enum value returns a 400 or validation error
- Unknown or misspelled park code returns empty results array
- State code not recognized returns empty results
- Rate limiting or upstream NPS API downtime causes 5xx errors
- Payment failure (x402) if USDC balance insufficient
- Exceeding limit maximum of 50 returns a validation error

## How this service works

Unified read API over US National Park Service developer.nps.gov. Pick a resource: parks (every NPS unit — historical parks, monuments, seashores, etc.), alerts (closures, dangers, info), campgrounds (NPS-operated campgrounds with reservation links), events (talks, walks, ranger programs), newsreleases (park news), thingstodo (activities by park), visitorcenters. Filter by parkCode (CSV — e.g. "acad,yose,grca"), state, or free-text query. Returns the upstream NPS payload verbatim (rich nested objects with images, addresses, operating hours, etc.).

## Output

Returns the upstream NPS API payload verbatim: rich nested JSON objects containing park or resource details such as names, descriptions, images, addresses, operating hours, GPS coordinates, contact info, reservation links, and related metadata depending on the resource type queried.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "limit": 10,
   "start": 0,
   "state": "CA",
   "resource": "parks"
  }
 }
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "required": [
      "resource"
     ],
     "properties": {
      "q": {
       "type": "string"
      },
      "limit": {
       "type": "integer",
       "default": 10,
       "maximum": 50,
       "minimum": 1
      },
      "start": {
       "type": "integer",
       "default": 0,
       "minimum": 0
      },
      "state": {
       "type": "string",
       "description": "2-letter state code."
      },
      "parkCode": {
       "type": "string",
       "description": "CSV park codes (lowercase)."
      },
      "resource": {
       "enum": [
        "parks",
        "alerts",
        "campgrounds",
        "events",
        "newsreleases",
        "thingstodo",
        "visitorcenters"
       ],
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/2s-io-dd613ef7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 2s.io](https://www.zero.xyz/host/2s.io/llms.txt)
