# Hipcamp — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Search Hipcamp campgrounds and retrieve detailed information including site availability, pricing, reviews, and amenities to plan your camping trips. Access real-time campground data, browse specific sites, and read visitor reviews all in one place.

**Category:** Travel | **Website:** [hipcamp.com/](https://hipcamp.com/) | **Docs:** [parse.bot/marketplace/fc3ea471-4793-4ff2-be2a-f73d0d71251d/hipcamp-com-api](https://parse.bot/marketplace/fc3ea471-4793-4ff2-be2a-f73d0d71251d/hipcamp-com-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-hipcamp-com-api-fc3ea471/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_campground_details

Retrieve full details for a specific campground by its masked ID or numeric ID. Returns host info, amenities, overview text, highlights, and location data. The masked ID is available from search_campgrounds results as node.maskedId.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `land_id` | string | Yes | Masked ID (e.g. '9mxh8mxy') or numeric land ID. Masked IDs are available from search_campgrounds results[*].node.maskedId. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-hipcamp-com-api-fc3ea471/get_campground_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"land_id":"<string>"}'
```

### get_campground_reviews

Retrieve reviews (contributed tips) for a campground. Supports cursor-based pagination via the after param. Each review includes a recommendation status, author info, and date.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `after` | string | No | Base64-encoded cursor for pagination, obtained from endCursor in a previous response (e.g. 'Mw'). Omit for first page. |
| `land_id` | string | Yes | Masked ID (e.g. '9mxh8mxy') or numeric land ID. Available from search_campgrounds results[*].node.maskedId. |
| `limit` | integer | No | Max reviews to return per page |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-hipcamp-com-api-fc3ea471/get_campground_reviews \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"after":"<string>","land_id":"<string>","limit":"<integer>"}'
```

### get_campground_sites

Retrieve available sites within a campground, with optional date and guest filters. Returns site details including availability status, pricing, and amenities. When arrive/depart are omitted, isAvailable will be null.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `adults` | integer | No | Number of adults |
| `arrive` | string | No | Arrival date in YYYY-MM-DD format |
| `children` | integer | No | Number of children |
| `depart` | string | No | Departure date in YYYY-MM-DD format |
| `land_id` | string | Yes | Masked ID (e.g. '9mxh8mxy') or numeric land ID. Available from search_campgrounds results[*].node.maskedId. |
| `pets` | integer | No | Number of pets |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-hipcamp-com-api-fc3ea471/get_campground_sites \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"adults":"<integer>","arrive":"<string>","children":"<integer>","depart":"<string>","land_id":"<string>","pets":"<integer>"}'
```

### search_campgrounds

Search for campgrounds by geographic coordinates. Returns a paginated list of campground listings with pricing, ratings, and booking info. Both lat and lng are required. Use offset and limit for pagination.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `adults` | integer | No | Number of adults |
| `lat` | number | Yes | Latitude for coordinate-based search (e.g. 37.7749) |
| `limit` | integer | No | Max results to return per page |
| `lng` | number | Yes | Longitude for coordinate-based search (e.g. -122.4194) |
| `offset` | integer | No | Pagination offset (number of results to skip) |
| `query` | string | No | Optional keyword to refine the coordinate search (e.g. a destination or location name) |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-hipcamp-com-api-fc3ea471/search_campgrounds \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"adults":"<integer>","lat":"<number>","limit":"<integer>","lng":"<number>","offset":"<integer>","query":"<string>"}'
```
