# Recreation.gov · Search

Get places and reviews from maps with Recreation.gov · Search from Alexandria through one Spiral API key. Start here to find a campground_id / permit_id / rec area id by name or place; then call `campground`, `campsites`, `campground_availability` or `permit_availability`. It runs in the background and returns structured JSON. Pay as you go, with no subscription.

- Provider: Alexandria
- Category: Maps & Reviews
- Runs: In the background
- Returns: json
- Tool id: `alexandria` / `recreation-gov/camping-availability/search`
- Page: https://spiral.ai/tools/alexandria/recreation-gov/camping-availability/search

## Pricing

$0.00873 per call.

## Limits

- Longest queue wait: 1 hour
- Run deadline: 5 minutes
- Longest run, end to end: 225 minutes
- Largest inline input: 1 MB
- Largest input file: 2 GB
- Largest output: 5 GB

## Input

| Field | Kind | Allowed | Default | Description |
| --- | --- | --- | --- | --- |
| `size` | number | 1 to 50 | 20 | Results per page (1-50). |
| `sort` | one of | available, score | — | `available` puts entities with availability for the dates first (the site's default with dates); `score` is relevance. |
| `query` | text |  | — | Free text: a park, forest, campground, or place name. |
| `start` | number | 0 to … | 0 | Offset of the first result; use `next_start` from the previous page. |
| `state` | text |  | — | US state name as Recreation.gov spells it, e.g. `Utah`, `California`. |
| `end_date` | text |  | — | Departure date YYYY-MM-DD, after `start_date`. Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$. |
| `latitude` | number |  | — | Search centre latitude; requires `longitude`. |
| `longitude` | number |  | — | Search centre longitude; requires `latitude`. |
| `parent_id` | text |  | — | Restrict to children of this rec area id (e.g. 2991 Yosemite National Park). Pattern: ^[0-9]{1,12}$. |
| `start_date` | text |  | — | Arrival date YYYY-MM-DD (facility local calendar date). With `end_date` the index reports availability for that stay. Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$. |
| `entity_type` | one of | campground, recarea, permit, ticketfacility, tour, timedentry, vehiclepermit, venuereservations, treepermit, activitypass, facility, visitorcenter | campground | Inventory type to return. |
| `radius_miles` | number | 1 to 2000 | — | Search radius around the centre, miles (default 50 when coordinates are given). |

## Example

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "recreation-gov/camping-availability/search",
    "input": {
      "size": 20
    }
  }'
```

Try it in the Playground: https://spiral.ai/start?provider=alexandria&model=recreation-gov%2Fcamping-availability%2Fsearch

## Common questions

### Recreation.gov · Search

**How much does Recreation.gov · Search cost?**

$0.00873 per call. You pay as you go from one Spiral balance, with no subscription, and a failed run is not charged.

**How do I use Recreation.gov · Search through an API?**

Send `POST /v1/runs` with `"provider": "alexandria"`, `"model": "recreation-gov/camping-availability/search"` and the input fields on this page, using one Spiral API key. It runs in the background: poll the run, or name a webhook to be told when it finishes.

**Do I need an account with Alexandria to use Recreation.gov · Search?**

No. Spiral runs it on its own Alexandria account and charges your Spiral balance.

**Can my AI agent use Recreation.gov · Search?**

Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.

