# Magicseaweed — 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 for surf spots worldwide and get detailed forecasts including wave height, wind conditions, tide times, and weather data to plan your next session. Discover popular breaks and access real-time conditions for any location to catch the best waves.

**Category:** Weather | **Website:** [magicseaweed.com/](https://magicseaweed.com/) | **Docs:** [parse.bot/marketplace/13e3e6ea-b423-416c-b2a2-559d1c762dfc/magicseaweed-com-api](https://parse.bot/marketplace/13e3e6ea-b423-416c-b2a2-559d1c762dfc/magicseaweed-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-magicseaweed-com-api-13e3e6ea/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_popular_spots

Retrieve a list of popular surf spots with current conditions, ratings, swell data, tide info, and camera details. Useful for discovery and overview dashboards.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-magicseaweed-com-api-13e3e6ea/get_popular_spots \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_spot_forecast

Retrieve detailed surf forecast for a specific spot ID, including wave, wind, tides, and weather data. Each forecast type returns hourly intervals for the requested number of days.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `days` | integer | No | Number of days to forecast (1-16). |
| `spot_id` | string | Yes | The unique spot ID for the location (found via search_spots results). |

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

### search_spots

Search for surf spots by name to find their unique IDs. Returns matching spots, geonames, and travel destinations.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | The name of the beach or surf spot to search for (e.g. 'Malibu', 'Pipeline'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-magicseaweed-com-api-13e3e6ea/search_spots \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"<string>"}'
```
