# Surfline — 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.

> Check real-time surf conditions, forecasts for waves and wind, tide predictions, and live camera feeds from thousands of surf spots around the world. Browse spots by geographic region and access detailed weather data to plan your perfect surfing session.

**Category:** Weather | **Website:** [surfline.com/](https://surfline.com/) | **Docs:** [parse.bot/marketplace/1677d3e0-1921-458a-aac3-e73cb6c79d0d/surfline-com-api](https://parse.bot/marketplace/1677d3e0-1921-458a-aac3-e73cb6c79d0d/surfline-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-surfline-com-api-1677d3e0/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_current_conditions

Retrieve current surf conditions and metadata for a specific spot. Includes rating, surf height, wind, weather, water temperature, swells, tide state, and camera availability. Returns a single snapshot of current conditions rather than a time series.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `spot_id` | string | Yes | Surfline spot ID |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-surfline-com-api-1677d3e0/get_current_conditions \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"spot_id":"<string>"}'
```

### get_spots_by_region

List surf spots within a specific region or subregion. Traverses the taxonomy tree to find all spots and returns their IDs, names, and coordinates. Example region IDs: Hawaii=58f7ed87dadb30820bb3c537, Europe=58f7eef8dadb30820bb5601b.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `region_id` | string | Yes | Surfline region/taxonomy ID |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-surfline-com-api-1677d3e0/get_spots_by_region \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"region_id":"<string>"}'
```

### get_surf_forecast

Retrieve detailed surf forecast for a specific spot. Returns wave height (min/max), swell components (height, period, direction, power), and other wave data for multiple timestamps. Each data point includes surf min/max in feet, human-readable size relation, swell breakdown, and probability. The interval parameter controls spacing between data points.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `days` | integer | No | Number of forecast days |
| `interval` | integer | No | Interval in hours between data points |
| `spot_id` | string | Yes | Surfline spot ID (e.g. 5842041f4e65fad6a7708ceb) |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-surfline-com-api-1677d3e0/get_surf_forecast \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"days":"<integer>","interval":"<integer>","spot_id":"<string>"}'
```

### get_tide_forecast

Retrieve tide forecast for a specific surf spot. Returns tide height and type (HIGH/LOW/NORMAL) for multiple timestamps over the requested number of days.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `days` | integer | No | Number of forecast days |
| `spot_id` | string | Yes | Surfline spot ID |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-surfline-com-api-1677d3e0/get_tide_forecast \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"days":"<integer>","spot_id":"<string>"}'
```

### get_wind_forecast

Retrieve wind forecast for a specific surf spot. Returns wind speed, direction, direction type (Offshore/Onshore/Cross-shore), gust data, and optimal score for multiple timestamps. The interval parameter controls spacing between data points.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `days` | integer | No | Number of forecast days |
| `interval` | integer | No | Interval in hours between data points |
| `spot_id` | string | Yes | Surfline spot ID |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-surfline-com-api-1677d3e0/get_wind_forecast \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"days":"<integer>","interval":"<integer>","spot_id":"<string>"}'
```

### list_cams

List surf cameras. Without region_id, returns popular US cameras. With region_id, fetches cameras for spots in that region (limited to first 100 spots). Some regions may have no cameras available.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `region_id` | string | No | Optional region/taxonomy ID to filter cameras by region (e.g. 58f7ed87dadb30820bb3c537 for Hawaii) |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-surfline-com-api-1677d3e0/list_cams \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"region_id":"<string>"}'
```
