API e MCP di Scirocco per sviluppatori e agenti AI

Tutto quello che il sito sa di Scirocco e del meteo del mare, in JSON per programmi e agenti AI. Nessuna registrazione e nessuna chiave: è in sola lettura e ha un limite per IP.

Endpoint

GETCosa restituisce
/v1Index of the API: endpoints, docs, OpenAPI and MCP links
/v1/appThe Scirocco app: platforms, store links, languages, rating, developer, contacts
/v1/pricingFree plan and Scirocco Pro plans with price, billing period and free trial
/v1/featuresEvery feature of the app, grouped by section, with the plan (free or Pro) and what the app does not do
/v1/locationsItalian ports, islands and beaches with a marine weather page (filter by area or name, paginated)
/v1/locations/{slug}One location: coordinates, area, weather page links and the nearest locations with distance
/v1/locations/{slug}/conditionsWind, gusts and waves now and tomorrow's summary for one location (cached model data)
/v1/areasCoastal areas (regions and island groups) with their weather page
/v1/areas/{slug}/conditionsWind and waves now and tomorrow for every location of an area (cached model data)
/v1/distanceGreat-circle distance in nautical miles between two locations, with sailing times at 5, 8, 20 and 30 knots
/v1/postsBlog articles (Italian or English) on boating, navigation, licences, weather and fishing (search, paginated)
/v1/posts/{slug}One blog article with FAQ and, for Italian articles, the full text in markdown

Server MCP

Endpoint https://scirocco.app/mcp, senza sessione: initialize, tools/list, tools/call, resources/list, resources/read. Manifest: server card e server.json.

Esempi

curl https://scirocco.app/v1/pricing
curl "https://scirocco.app/v1/locations?q=procida"
curl https://scirocco.app/v1/locations/procida/conditions
curl "https://scirocco.app/v1/distance?from=napoli&to=capri"
curl -X POST https://scirocco.app/mcp -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

Dati meteo

Le condizioni (vento, raffiche, direzione, onda adesso e il riepilogo di domani) vengono dai modelli meteo via Open-Meteo (CC BY 4.0) e sono tenute in cache per qualche ora: interrogare più spesso non dà dati più freschi. È un'indicazione, non il bollettino ufficiale. La previsione completa a 7 giorni, le maree e la tendenza a 14 giorni stanno nella pagina di ogni località, anche in markdown (https://scirocco.app/meteo/<slug>.md).

Limiti

60 richieste ogni 60 secondi per IP; 20 ogni 60 secondi sugli endpoint /conditions. Ogni risposta ha gli header RateLimit e RateLimit-Policy; oltre il limite (conteggio approssimato, per data center Cloudflare) arriva un 429 con Retry-After.

Paginazione

Gli elenchi (/v1/locations, /v1/posts) accettano limit (1-200, predefinito 50) e offset, e rispondono con total, count e next: l'URL della pagina successiva, null sull'ultima.

Errori

Gli errori sono application/problem+json (RFC 9457) con type, title, status, detail, un code stabile e resolution, che dice cosa fare.

Versioni e deprecazione (deprecation policy)

La versione è nel percorso (/v1). Aggiunte compatibili (campi o endpoint nuovi) arrivano senza preavviso; una modifica che rompe la compatibilità avrà un nuovo percorso e /v1 resterà attiva almeno 6 mesi dopo l'annuncio, con gli header Deprecation e Sunset. Versione attuale: 1.0.0.

File di scoperta