Getting started
Every endpoint is a GET under https://swim.sciapis.com/v1/ and answers in JSON. This page covers what you need for a first integration; the full reference lists every parameter.
Get a key
Sign up with your email address. We email you a link; opening it shows your key once. Keys start with sci_. Only a hash of the key is stored, so it cannot be shown again: keep it somewhere safe, such as an environment variable.
export SCIAPIS_KEY="sci_…"
Each email address can hold one free key. Addresses that differ only by a +tag, or for Gmail only by dots, count as one address.
Authenticate
Send the key in the X-API-Key header on every request. Keys in the query string are not accepted.
curl -H "X-API-Key: $SCIAPIS_KEY" \ "https://swim.sciapis.com/v1/wital-locationcheck?location=London&country_code=GB"
A missing key returns 401 with the message Missing API key: send it in the X-API-Key header. A key that is unknown or revoked returns 401 with Invalid API key.
Rate limits
Each key has a limit per minute and a limit per calendar month (UTC). See pricing for the figures per plan. Every response to a keyed request carries two headers:
- X-RateLimit-Limit
- Calls allowed per minute on your plan.
- X-RateLimit-Remaining
- Calls left in the current minute.
Over either limit, the API returns 429 with a Retry-After header in seconds. For the per-minute limit that is the time to the start of the next minute; for the monthly limit it is the time to the start of the next month, UTC. Refused calls do not count towards your quota.
A free key also has 100 written-forecast calls a month (/v1/weekly-text and /v1/wital, which also count towards the monthly total). Past that, those two endpoints return 429 until the next month, while the other endpoints keep working.
HTTP/2 429
retry-after: 17
x-ratelimit-limit: 60
x-ratelimit-remaining: 0
{"error": {"code": "HTTP_ERROR", "message": "Rate limit exceeded", "timestamp": "…"}}
A good client waits for Retry-After before trying again, rather than retrying at once.
Errors
Errors come back as JSON with an HTTP status code. Most use one shape:
{
"error": {
"code": "INVALID_COORDINATES",
"message": "Invalid latitude: 951.0. Must be within [-90, 90]",
"timestamp": "2026-11-25T20:05:42.854111+00:00",
"details": {"field": "latitude", "invalid_value": "951.0"}
}
}
code is stable and meant for your program; message is for people; details is present when there is more to say. The exception is a required parameter that is missing or has the wrong type: that returns 422 with a detail list naming each field.
| Status | Meaning |
|---|---|
| 400 | A parameter has a value the API cannot use, such as a latitude out of range. |
| 401 | The key is missing, unknown or revoked. |
| 404 | No such endpoint, or the place was not found. |
| 422 | A required parameter is missing or malformed. |
| 429 | Over the per-minute or monthly limit, or the free plan's written-forecast allowance. Wait for Retry-After. |
| 5xx | A fault on our side, or the key service is briefly unavailable (503). Try again after a short wait. |
Models and units
Endpoints that take model accept:
- ecmwf-aifs
- ECMWF AI-based global model. The default.
- ecmwf-ifs
- ECMWF Integrated Forecasting System.
- dwd-icon
- Deutscher Wetterdienst ICON global model.
- ncep-gfs
- NOAA NCEP Global Forecast System.
/v1/point returns values in the model's own units, such as kelvin for temperature and kg/m² for accumulated precipitation, each labelled with its unit, plus a temperature field in °C. The daily endpoints use °C, %, the Beaufort scale, octas and mm/h, in the place's local time.
Endpoints
Forecast data and place search: every planWritten forecasts: Starter and above
In the examples, dates are in YYYY-MM-DD form and times in ISO 8601 UTC. country_code is an ISO 3166-1 alpha-2 code; it is optional, but it settles places that share a name.
/v1/point
Model values at a coordinate and time.
- lat, lon
- Required. Degrees.
- time
- Required. Target time, e.g.
2026-11-26T12:00:00Z. - model
- Optional. See models.
- elements
- Optional. Restrict the response to these parameters, e.g.
2t,tp.
curl -H "X-API-Key: $SCIAPIS_KEY" \ "https://swim.sciapis.com/v1/point?lat=51.5072&lon=-0.1276&time=2026-11-26T12:00:00Z&model=dwd-icon"
/v1/daily
A day's forecast for a named place, in three-hour steps of local time, with sunrise and sunset. The forecast field is a small CSV table.
curl -H "X-API-Key: $SCIAPIS_KEY" \
"https://swim.sciapis.com/v1/daily?date=2026-11-26&location_name=London&country_code=GB"
{"location_name": "London", "timezone": "Europe/London", "date": "2026-11-26",
"forecast": "Element (unit) in local time,00:00,03:00,…\nTemperature (℃),4.1,3.5,…",
"sunrise": "07:36", "sunset": "15:58", …}
/v1/weekly-data
The same table for seven days, starting today.
curl -H "X-API-Key: $SCIAPIS_KEY" \ "https://swim.sciapis.com/v1/weekly-data?location=London&country_code=GB"
/v1/wital-autocomplete
Places whose name starts with query, with coordinates and time zone. limit is 10 by default, 50 at most.
curl -H "X-API-Key: $SCIAPIS_KEY" \
"https://swim.sciapis.com/v1/wital-autocomplete?query=Lond&limit=2"
{"results": [{"display_name": "London, United Kingdom", "country_code": "GB",
"timezone": "Europe/London", "latitude": 51.50853, "longitude": -0.12574, …},
{"display_name": "Londrina, Brazil", …}], "count": 2}
/v1/wital-locationcheck
Whether a place name can be resolved. found is yes, maybe (found when the country code is ignored) or no.
curl -H "X-API-Key: $SCIAPIS_KEY" \ "https://swim.sciapis.com/v1/wital-locationcheck?location=Bristol&country_code=GB"
/v1/wital-nearest
The nearest named places to a coordinate, at several levels: village, town, city and metropolitan area.
curl -H "X-API-Key: $SCIAPIS_KEY" \ "https://swim.sciapis.com/v1/wital-nearest?lat=51.5&lon=-0.12"
/v1/wital-autocomplete-status
Whether place search is available. No parameters.
/v1/weekly-text
Seven short written forecasts for a place, one per day, in the language given by language (ISO 639-1, default en). length is the maximum length of each in characters (default 320). The text is written by a language model from the forecast data.
curl -H "X-API-Key: $SCIAPIS_KEY" \
"https://swim.sciapis.com/v1/weekly-text?location=London&country_code=GB&language=de&length=200"
{"location": "London", "language": "de",
"forecasts": [{"date": "2026-11-26",
"message": "Am Donnerstag, 26. November bleibt es in London durchgehend grau …",
"character_count": 200, "error": null}, …]}
/v1/wital
One written forecast for a place and date. Takes the same language and length parameters.
curl -H "X-API-Key: $SCIAPIS_KEY" \ "https://swim.sciapis.com/v1/wital?location=Lyon&country_code=FR&date=2026-11-26&language=fr"
Full reference
Every parameter, default and response field is in the interactive reference, generated from the code. Its OpenAPI description is at swim.sciapis.com/v1/openapi.json.