Discover/surfline.com API
live

surfline.com APIsurfline.com

Access Surfline surf forecasts, wind, tide, current conditions, spot listings, and live camera feeds via a structured REST API. 6 endpoints, global coverage.

Endpoints
6
Updated
10d ago
Try it
Number of forecast days
Surfline spot ID (e.g. 5842041f4e65fad6a7708ceb)
Interval in hours between data points
api.parse.bot/scraper/ee8dc746-3f62-4465-8b17-cc5d8c44a178/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Use it in your codegrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/ee8dc746-3f62-4465-8b17-cc5d8c44a178/get_surf_forecast?days=1&spot_id=5842041f4e65fad6a7708ceb&interval=1' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 6 totalclick to expand

Retrieve detailed surf forecast for a specific spot by spot ID. Returns wave height (min/max), swell components (height, period, direction, power), and other wave data for multiple timestamps.

Input
ParamTypeDescription
daysintegerNumber of forecast days
spot_idrequiredstringSurfline spot ID (e.g. 5842041f4e65fad6a7708ceb)
intervalintegerInterval in hours between data points
Response
{
  "type": "object",
  "fields": {
    "wave": "array of wave forecast objects with timestamp, surf min/max, swells, power, probability"
  },
  "sample": {
    "data": {
      "wave": [
        {
          "surf": {
            "max": 3,
            "min": 2,
            "raw": {
              "max": 2.52327,
              "min": 1.40582
            },
            "plus": false,
            "optimalScore": 2,
            "humanRelation": "Thigh to waist"
          },
          "power": 86.84694,
          "swells": [
            {
              "power": 80.99011,
              "height": 2.4373,
              "impact": 0.6496,
              "period": 11,
              "direction": 175.56848,
              "directionMin": 169.228455,
              "optimalScore": 0
            }
          ],
          "timestamp": 1778122800,
          "utcOffset": -3,
          "probability": 100
        }
      ]
    },
    "status": "success"
  }
}

About the surfline.com API

The Surfline API gives developers structured access to 6 endpoints covering wave forecasts, wind, tides, current conditions, regional spot listings, and live camera feeds. The get_surf_forecast endpoint returns per-timestamp swell data — height, period, direction, and power — for any spot identified by its Surfline spot ID. Real-time snapshots, multi-day forecasts, and camera stream URLs are all available in a single consistent JSON interface.

Forecasts: Waves, Wind, and Tides

get_surf_forecast accepts a spot_id, optional days count, and an optional interval (in hours) to control forecast resolution. Each object in the returned wave array includes surf.min, surf.max, a swells array with individual swell height, period, direction, and power, plus a probability field. get_wind_forecast returns matching timestamp-aligned objects with speed, direction, gust, a directionType field that distinguishes Offshore, Onshore, and Cross-shore conditions, and an optimalScore. get_tide_forecast returns height and a discrete typeHIGH, LOW, or NORMAL — for each prediction window.

Current Conditions and Spot Metadata

get_current_conditions returns a real-time snapshot for a single spot. The response includes the spot name, a rating object with both a human-readable key (e.g. POOR_TO_FAIR, GOOD) and a numeric value, current surf min/max, wind state, weather temperature and condition, waterTemp range, and a cameras array listing any live feeds attached to that spot.

Spot Discovery and Camera Listings

get_spots_by_region accepts a region_id from Surfline's taxonomy tree and returns an array of spot objects — each with id, name, lat, and lon — plus a total count. Example region IDs for Hawaii and Europe are documented. list_cams returns camera objects with streamUrl and stillUrl for each feed. Called without a region_id it returns popular US cameras; filtered by region it returns cameras for up to the first 100 spots in that region, and includes lat/lon coordinates. Some regions return no cameras.

Spot IDs and Data Alignment

All forecast and conditions endpoints require a Surfline spot_id string (e.g. 5842041f4e65fad6a7708ceb). These IDs are stable identifiers that appear in both get_spots_by_region results and list_cams responses, so you can chain discovery and forecast calls. Forecast timestamps are Unix epoch values and align across wave, wind, and tide responses for the same spot.

Common use cases
  • Build a surf session planner that displays swell height, period, and direction for a chosen spot over the next 5 days.
  • Alert surfers when directionType flips to Offshore and optimalScore exceeds a threshold at their saved spots.
  • Embed live camera stills using stillUrl from list_cams on a regional surf conditions dashboard.
  • Create a tide chart by pulling height and type (HIGH/LOW/NORMAL) from get_tide_forecast for any spot.
  • Map all surf spots in a region using lat/lon from get_spots_by_region to build a geo-filtered spot finder.
  • Display a spot's current rating key and water temperature range alongside wind gust data for quick go/no-go decisions.
  • Aggregate historical rating patterns by logging get_current_conditions responses at regular intervals across multiple spot IDs.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000250 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does Surfline have an official developer API?+
Surfline does not publish a general-purpose public developer API. There is no documented REST API with official API keys available to third-party developers on their website.
What does `get_surf_forecast` return beyond wave height?+
Each object in the wave array includes surf.min and surf.max (the human-scaled height range), a swells array where every swell entry carries height, period, direction, and power, a top-level power value for the composite swell, and a probability field. You can control how many timestamps appear by passing an interval parameter (in hours) and a days count.
Does `list_cams` return cameras for all regions worldwide?+
Without a region_id, the endpoint returns popular US cameras. When you pass a region_id, it covers cameras tied to up to the first 100 spots in that region. Some regions have no cameras at all. The API currently covers discovery and stream/still URLs; it does not return archived footage or historical camera snapshots. You can fork it on Parse and revise to add an endpoint targeting archived content if that becomes available.
Is surf rating history or past forecast data accessible?+
Not currently. The API covers real-time conditions via get_current_conditions and forward-looking forecasts via the wave, wind, and tide endpoints. Historical forecast archives and past conditions records are not exposed. You can fork it on Parse and revise to add the missing endpoint if Surfline surfaces a historical data route.
Can I retrieve surf competition schedules or contest results through this API?+
Not currently. The API covers spot forecasts, current conditions, tide data, wind data, regional spot listings, and camera feeds. Competition schedules and contest results are not part of the response data. You can fork it on Parse and revise to add the missing endpoint targeting competition or event data.
Page content last updated . Spec covers 6 endpoints from surfline.com.
Related APIs in WeatherSee all →
energy-charts.de API
Monitor real-time electricity prices, production data, and market forecasts across Germany and Europe to track energy costs and grid conditions. Access day-ahead and intraday pricing, power generation forecasts, cross-border trading flows, and traffic signal alerts for comprehensive energy market insights.
api.nasa.gov API
Access NASA's suite of open data APIs — including the Astronomy Picture of the Day, Near Earth Object tracking, DONKI space weather events, EPIC Earth imagery, Mars weather, the NASA Image and Video Library, the Exoplanet Archive, and EONET natural events.
nassgeodata.gmu.edu API
Access detailed USDA crop data including acreage statistics, satellite imagery, and crop classifications for any location across the United States. Compare agricultural patterns year-over-year, download raster data files, or retrieve specific crop information at the point level to analyze farming trends and land use.
aopa.org API
Search for general aviation airports and access detailed information including runways, real-time weather conditions, NOTAMs, and aviation procedures—all in one place. Find upcoming aviation events and get comprehensive airport overviews to plan your flights with up-to-date data.
metoffice.gov.uk API
Access detailed UK weather forecasts, real-time lightning tracking, and weather warnings from the Met Office. Search locations to retrieve hourly, daily, regional, and long-range predictions, and monitor storm activity with spot forecasts across any geographic area.
vail.com API
Access live snow conditions, weather forecasts, and real-time terrain status for Vail and other Vail Resorts properties. Retrieve current snow reports, upcoming weather, and run and lift statuses across supported resorts.
sentinel-hub.com API
Access satellite imagery from around the world and retrieve spectral band data, timestamps, and geographic coverage information to analyze Earth observation data. Process and generate statistics from satellite images for your specific areas of interest using powerful image processing tools.
bom.gov.au API
Get accurate weather forecasts for Australian cities with temperature, precipitation, UV index, and conditions from the Bureau of Meteorology. Search for any location and retrieve multi-day forecasts to plan your activities with confidence.