get_wind_forecast
surfline.comRetrieves wind forecasts for a Surfline spot from https://surfline.com, including speed, direction, shore-relative direction type, gusts, and optimal score across multiple timestamps.
Playground
Runs on Notte and spends your workspace credits — what comes back is the live response, not a sample.
What is get_wind_forecast?
Retrieves wind forecasts for a Surfline spot from https://surfline.com, including speed, direction, shore-relative direction type, gusts, and optimal score across multiple timestamps. It runs on Notte's browser infrastructure and returns structured JSON, so you can call it like any other API — pass spot_id, days, interval_hours and get the result back without maintaining a scraper.
Response
{
"days": 0,
"spot_id": "<string>",
"forecasts": [
{
"gust": 0,
"speed": 0,
"direction": 0,
"timestamp": 0,
"utcOffset": 0,
"optimalScore": 0,
"directionType": "<string>"
}
],
"associated": {},
"interval_hours": 0
}Call it
curl --location 'https://us-prod.notte.cc/functions/146d033e-9605-47d7-85ef-055034915a29/runs/start' \
--header 'x-notte-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--data '{
"function_id": "146d033e-9605-47d7-85ef-055034915a29",
"variables": {
"spot_id": "5842041f4e65fad6a770883b",
"days": 2,
"interval_hours": 3
}
}'Ask an agent
Paste this into Claude Code, Cursor or any MCP client to have an agent call this function for you.
Use the Anything API MCP server (https://anything.notte.cc/mcp). Call run(function_id="146d033e-9605-47d7-85ef-055034915a29") — the "get_wind_forecast" function, which retrieves wind forecasts for a Surfline spot from https://surfline.com, including speed, direction, shore-relative direction type, gusts, and optimal score across multiple timestamps.. It takes spot_id (str), days (int), interval_hours (int). Return the result as structured JSON.