Coming soon - Mareel Earth is in private development. The API is live, but accounts are not open yet. Join the waitlist to be told when they are.
On this page

API documentation

One API, four products. Every endpoint lives under https://mareelearth.com/v1 and is served from Mareel's own pre-computed data: tides are synthesized on demand from harmonic constants; the marine forecast and the global weather are read from pre-baked global grids. Responses are JSON.

Products

ProductStatusEndpointsWhat it serves
TidesLive/v1/tides/*, /v1/stationsTide heights, high/low extremes, current level, tidal datums - any ocean coordinate
WatersLive/v1/watersMarine forecast: waves incl. swell partitions, wind, currents, SST, depth - 16 days for waves and wind, ~9 for swell partitions, ~7-8 for currents and SST
HeavensLive/v1/heavensGlobal weather: temperature, wind, clouds, precipitation, CAPE - land & sea, finest over cities
LandsComing soon/v1/lands/*Land & terrain data

Coming-soon products return 503 coming_soon on their keyed endpoints until launch.

Authentication

Create an API key from your dashboard (sign in → API keys → Create key). Keys look like mk_live_… and are shown once at creation. Pass the key on every request, preferably as a Bearer token:

curl -H "Authorization: Bearer mk_live_YOUR_KEY" \
  "https://mareelearth.com/v1/tides/current?lat=58.0&lon=11.0"

Also accepted: an X-Api-Key header, or ?key= as a query parameter (avoid in logs). All endpoints are GET and CORS-open, so browser use works - but treat keys as secrets and prefer calling from your server.

Quickstart

Three requests, one key. Pick a language once; every example in the docs follows it.

# Current tide at a Swedish west-coast point
curl -H "Authorization: Bearer mk_live_YOUR_KEY" \
  "https://mareelearth.com/v1/tides/current?lat=58.0&lon=11.0"
# Marine forecast at the same point: waves + wind 16 days, currents + SST ~7-8 (coverage = last valid step per variable)
curl -H "Authorization: Bearer mk_live_YOUR_KEY" \
  "https://mareelearth.com/v1/waters?lat=58.0&lon=11.0"
# 10-day weather (temperature, wind, clouds, precipitation) for a city
curl -H "Authorization: Bearer mk_live_YOUR_KEY" \
  "https://mareelearth.com/v1/heavens?lat=59.27&lon=15.21"

Batch requests

Every point product has a /batch variant that takes up to 100 coordinates in one call as equal-length comma lists, and returns a per-point results array in input order. A point with no data carries a per-point error and never fails the whole call. One 100-point sweep replaces 100 single calls: it is billed in credits across the covered locations (see Plans & credits), but counts as one request against the per-minute rate limit. A batch stretches your rate, not your request count. How many batch calls a key may have in flight at once is the plan's In flight allowance (see Plans & credits).

# Marine forecast at three points in one call
curl -H "Authorization: Bearer mk_live_YOUR_KEY" \
  "https://mareelearth.com/v1/waters/batch?lat=59.3,58.9,57.7&lon=18.1,17.6,11.9"
{ "count": 3, "covered": 3, "results": [ {...}, {...}, {...} ] }
EndpointPer point
/v1/tides/batchHeights AND extremes together - the complete tide answer
/v1/waters/batchThe full marine-forecast body
/v1/heavens/batchThe full weather body

The same query params as the single-point routes (vars=, days=/hours=, interval=, or the tide window + datum) apply to every point. Max 100 points per call; a transient point failure is retryable and sets a top-level Retry-After.

Field slices for map overlays

For a heat-map or animated weather layer, do not sweep a point endpoint cell by cell. Waters and Heavens each have a /field variant that returns a whole raster tile of one variable over a bounding box in a single call: a uniform cols×rows grid (max 512²) at one time step. By default each pixel is IDW-interpolated from the nearest cells (the same spatial interpolation as the point endpoint, with a circular mean for directions and nearest for categorical fields); pass interp=nearest for raw cells to GPU-interpolate yourself. Each pixel is a delivered value, billed at the same per-value rate as a point (a 256×256 slice is ~66 credits) - the win is the single call, not a cheaper unit price, so it replaces tens of thousands of point calls without underpricing them. pack=int16 returns a compact base64 array (scale/offset/nodata). See the Waters and Heavens pages.

# One tile of significant wave height over the Bay of Biscay
curl -H "Authorization: Bearer mk_live_YOUR_KEY" \
  "https://mareelearth.com/v1/waters/field?var=wave_height&bbox=-6,43,-1,47&cols=256&rows=256&pack=int16"

Time window, resolution & fields

You ask for exactly what you want and pay for exactly that. Set the window with days= or hours=, the resolution with interval= (minutes, default hourly), and the fields with vars=. Waters and Heavens return a uniform series at your interval across the window - interpolated from the baked model steps (hourly near-term, coarsening to 3-hourly, 6-hourly and 12-hourly further out), so there are no gaps. Forecast confidence naturally decreases with range; the long-range hours are interpolated for a clean series, not extra model detail. Pass interval=native to skip that and get the raw baked steps at their native cadence. Tides synthesise the exact value at any interval, with no horizon limit.

Plans & credits

Every tier includes every product (Tides, Waters, Heavens - and Lands when it launches) on one key. Usage is billed in credits: a read is one value - one location × one timestep × one field - and credits ≈ (requests × base + reads) / 1000, with every request costing at least 1 credit. So your credits scale with the data you pull: more fields, a longer window or a finer interval cost proportionally more, fewer cost less, and late forecast hours cost less because there is less real data there (billed on native density, not the interpolated count). A full forecast (16 days on Waters, 10 on Heavens) is about 2 credits, a single tide about 1, a 100-location batch about 186. Only answers are billed in full: a request the API rejects (4xx, for example a point with no data) costs 1 credit, and a 5xx on our side costs nothing. A batch call answers 200 with an error per failed point; one in which no point was delivered because of a failure on our side costs nothing either. Every response past the key, rate and quota checks carries X-Credits-Charged: what that call cost.

For Waters and Heavens the timesteps in a read are the native model steps inside your window, whatever interval= you ask for. Their spacing grows with lead time:

Lead timeNative stepSteps in the band
0 - 48 h1 h49 (including hour 0)
48 - 120 h3 h24
120 - 240 h6 h20
240 - 384 h (Waters only)12 h12

A full window is 105 steps on Waters (16 days) and 93 on Heavens (10 days); days=1 is 25 steps. Tides is billed on the samples it returns, at your interval=.

PlanCredits / monthRate limitIn flightAPI keysPrice
Free25,00060 / min11$0
Seedling150,000120 / min22$7 / mo
Grove1,000,000300 / min35$19 / mo
Colossal5,000,000600 / min620$79 / mo

The rate limit is per key, per product - a burst on one product never eats another's budget. Every response that reaches the handler (and every 429) carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset (seconds to a full bucket) so you can pace yourself before hitting a 429; a 429 also includes Retry-After. Every response also carries X-Quota-Used: the credits this calendar month has cost, this call included, across all your keys and jobs. X-Credits-Charged is the cost of that one call. X-Quota-Limit accompanies it while your plan has a monthly cap; an account without one has no limit header, and the used header keeps counting.

In flight. The In flight column is how many field calls, and separately how many batch calls, one key may have running at the same time per product (Waters and Heavens count separately, as the rate limit does). A further call answers 429 concurrency_limited with Retry-After: 1. A call counts from the moment it is admitted (after the key, product, rate and quota checks) until its response is returned; closing the connection ends it at once. Field slices additionally run in a bounded pool on each grid worker, separate from the point pool, so a burst of large slices never slows point or batch calls; when a pool is full the call waits up to two seconds for a slot and then answers 503 busy with Retry-After: 2 - on point and batch calls as well as on field calls. Higher allowances are available on request.

Errors

All errors share one envelope:

{ "error": { "code": "unauthorized", "message": "Missing or invalid API key. ..." } }
HTTPCodeMeaning
400bad_requestMissing or invalid parameters
401unauthorizedMissing or invalid API key
402quota_exceededMonthly quota used up - upgrade to continue
403product_not_enabledYour account does not include this product
422no_ocean_tide / no_ocean_cell / no_cellNo data at this point (Tides/Waters: point is inland; Heavens: >60 km from any cell)
429rate_limitedToo many requests - respect Retry-After
429concurrency_limitedMore field or batch calls in flight on one key and product than the plan allows (In flight in Plans & credits) - retry after Retry-After (1 s)
503busyA pool on the grid worker is full (field calls and point/batch calls have separate pools) - retry after Retry-After (2 s)
503waters_error / heavens_errorA transient failure on our side (a stall, a worker reload, a transport fault) - retry after Retry-After (30 s)
503tides_unavailableThe tide engine is not answering - retry after Retry-After (30 s); /status shows the current state
503coming_soonProduct not launched yet (Lands)

Each product page lists its full catalog, including the codes only field slices use (unknown_var, landmask_unavailable). Retry on 429 and on a 5xx that carries Retry-After. A 4xx is your request, never a stall: it never carries Retry-After and retrying it unchanged cannot succeed. The message names what to fix, e.g. Invalid lon "undefined" (must be a number in -180..180).

Attribution & use

Tide data is derived from the FES2022 model (CNES/LEGOS/NOVELTIS/CLS, via AVISO); forecast data blends open model output from NOAA, ECMWF, DWD, ECCC and Copernicus. Keep the meta.attribution notices visible where you display the data - details on the attribution page. All values are modelled estimates provided as-is: not for navigation or safety-of-life decisions.

API changelog

Every change a client can observe on the keyed /v1 routes, newest first. Additive changes (new fields, new headers) need no client action; anything that alters an existing field, code or price is marked breaking and announced before it ships. Service state and incidents are on the status page.

DateChangeAction
2026-12-03Waters, total wave_height where no regional wave model covers: the mean of three models introduced on 2026-12-02 is withdrawn, because it did not lower the error in two later measurements. 157 buoys over 11 hours on 2026-12-02: 0.259 m mean absolute error with the mean, 0.256 m without. 192 buoys over 18 hours on 2026-12-03: 0.225 m with, 0.218 m without, a difference of +0.006 m with a 95 % interval from -0.007 to +0.020. The source is MFWAM again. After MFWAM's horizon (about 9 days) it is ECMWF's wave model to day 15 and then GFS-Wave; before 2026-12-02 it was GFS-Wave alone there.wave_height changes outside Europe from the next grid published after 2026-12-03 20:00 UTC, typically by a few centimetres and by up to a few tenths of a metre where the models disagree.
2026-12-03Waters resolved.coast gains open_water_fraction (the mean distance to land along 36 bearings up to 60 km, divided by 60; present within 30 km of land), and wave_height_confidence now follows it: low under 0.3, moderate 0.3-0.5, good 0.5-0.9, high from 0.9 and beyond 30 km, with buoys_within_15pct 0.27, 0.46, 0.80 and 0.92. How enclosed a place is separated the buoys better than distance alone: at 2-5 km from land, buoys with an open fraction under 0.5 were within 15 % at 0.46, the others at 0.73.None. Confidence words near land change; distance_to_land_km is unchanged.
2026-12-02Waters, total wave_height where no regional wave model covers (outside the NW Shelf, IBI, Mediterranean, Baltic and Black Sea models, so nearly everywhere outside Europe): the mean of the ECMWF, MFWAM and GFS-Wave wave models over those that cover each step, where it was MFWAM alone with GFS-Wave after MFWAM's horizon. Measured against 163 buoys outside the regional models on 2026-12-01/02: 0.255 m against 0.271 m mean absolute error, better at 103 buoys and worse at 60; an earlier 72-hour window gave 0.233 against 0.264 m. Added 2026-12-03: two later measurements showed no gain, and the change is withdrawn (see the 2026-12-03 entry). Swell partitions, periods and directions keep their sources, so the total can differ more than before from the energy sum of the partitions.wave_height changes outside Europe from the grid published 2026-12-02 19:00 UTC, typically by a few centimetres and by up to a few tenths of a metre where the models disagree.
2026-12-02Waters point and batch answers carry resolved.coast: the distance from the served cell to land (GEBCO, capped at 30 km), a wave-height confidence word for that distance (low under 2 km, moderate 2-5 km, good 5-15 km, high beyond) and the share of 179 European buoys at that distance whose modelled mean wave height over 14 days was within 15 % of the observed (0.40, 0.66, 0.83, 0.91). Near land the error goes either way, so the field states the uncertainty and leaves the values as they are.None. Read resolved.coast if you want to show or weigh confidence near land.
2026-12-01Waters, wave fields north of 48 N between 14 W and 9 E (English Channel, Irish Sea, North Sea, west of Ireland and Scotland): the source is the Copernicus NW Shelf wave model (about 1.5 km), where it was the IBI model or the global model. Measured against buoys that both regional models cover, in two separate periods: 0.24 m against 0.40 m mean absolute error over 72 hours at 102 buoys (2026-11-28 to 12-01), and 0.165 m against 0.182 m over five days at 116 buoys (2026-11-12 to 11-16). NW Shelf was level or ahead in every latitude band in both. South of 48 N nothing changes. The NW Shelf forecast reaches about 6 days; past that the previous source continues, so a series there can step by the difference between the two models at that point. Across the edge of the box the models differ by 0.2-0.3 m in median, which can show as a line in a field slice in open water.Wave values in that area change from the grid published 2026-12-01 16:49 UTC.
2026-12-01Waters, coastal cells (land nearby, depth up to 60 m): the refraction step is removed from the nearshore transform. wave_height and the partition heights are the source model's height, shoaled to the cell's depth and capped at 0.45 x depth, and wave_height keeps the source model's total (it was rebuilt as the energy sum of the partitions). wave_direction and the partition directions are the source model's own (they were rotated toward a shore-normal). Measured against 182 coastal buoys over 72 hours, the old step read 0.33 m low on average, with a mean absolute error of 0.43 m against 0.27 m without it, and the rotated direction was 6 degrees further from the buoys. The step cut a wave travelling along the coast, or away from the shore-normal it used, by up to 60 %. The regional height correction of +0.12 m for the US East Coast and the Gulf of Mexico, fitted against the old step, is removed. Cells deeper than 60 m or away from land are unchanged.Coastal wave_height and wave directions change from the first grid published after 2026-12-01 12:00 UTC; heights rise where the old step had cut them, by up to 2.5 times at the cells it cut most. Recalibrate anything tuned against the old coastal values.
2026-10-26Docs only, no behaviour change: the Heavens page said there is no horizon parameter. days= and hours= trim the Heavens series like on Waters; a value beyond 10 days returns the full 10 days (240 h), where the Heavens bake ends. The Waters, Tides and Heavens pages now list X-Credits-Charged with the other response headers.None
2026-10-25Every response past the key, rate and quota checks carries X-Credits-Charged, the credits that call cost (X-Quota-Used is the month total for the account, so with several jobs running the difference between two of its values mixes in other calls). The billing section lists the native step spacing per lead time that Waters and Heavens are billed on.None; read X-Credits-Charged to cost a single call
2026-10-25Tides: when the tide engine is not answering, /v1/tides/* answers 503 tides_unavailable with Retry-After: 30, billed 0 credits. It answered 500 internal_error without Retry-After, which is how the engine outage of 2026-10-05 to 10-09 reached callers. In a batch the affected points carry tides_unavailable (it was point_failed) and the envelope carries Retry-After. A product whose monitoring probe fails for 5 minutes in a row now gets an incident on /status automatically, resolved after 10 good minutes.Treat 503 tides_unavailable as retryable and honour Retry-After
2026-10-19Interpolation: an interpolated hour (Waters and Heavens, point and batch) is now null when either baked step around it is null. Before, the value from the other side was carried across the interval: a variable continued up to one native interval (12 h in the new tail) past its coverage time, and an instant listed in coverage_gaps got its neighbour's value. Series now end at the coverage time and gaps stay empty.If you read values past coverage, they are now null. Values inside coverage and at native steps are unchanged.
2026-10-19Waters forecasts run 16 days (384 h) instead of 10. The baked time axis gains twelve 12-hourly steps after 240 h (105 steps instead of 93). A request without days= or hours= returns the full 16 days, hourly by default, and field slices accept t= up to 384 and step= up to 104. Wind and the total wave fields reach day 16; the swell partitions still end around day 9 and currents and SST around day 7-8, as coverage reports. A full-horizon request is billed on the native steps, so it still costs about 2 credits. Heavens stays at 10 days.None. Pass days=10 to keep the old window length.
2026-10-09Billing: a batch call in which no point was delivered because of a failure on our side (every failed point transient) now costs 0 credits, as a 5xx does. It cost the 1-credit floor because a batch answers 200. A batch whose points all failed for the caller's own reason still costs 1, like a 4xx.None
2026-09-24A batch envelope's Retry-After now follows its worst failed point: 2 when the only transient failures were busy, 30 when any point met waters_error or heavens_error, absent when every failure is permanent. It was 30 whenever any point failed transiently.Honour the envelope's Retry-After rather than assuming 30
2026-09-24X-Quota-Used is now on every response, including accounts with no monthly cap, which previously got neither quota header. X-Quota-Limit still accompanies it only where a cap exists. Two error fixes on the same routes: a point call written with lng instead of lon now works (it was accepted and then answered with a transient error it could never get past), and an invalid request answers 400 bad_request with the reason instead of 503.None; read X-Quota-Used without requiring X-Quota-Limit
2026-09-18A 503 now carries the code the grid worker meant. A full pool answers busy with Retry-After: 2 on point and batch calls too, where it previously surfaced as waters_error / heavens_error with Retry-After: 30. Field slices also get their own deadline (15 s for one attempt, against 6 s for a point call) and are no longer retried for you when that deadline passes, so a large cold slice is answered rather than refused.Treat 503 busy as the retry-in-2-s answer on every route, not only on /field
2026-09-16The in-flight allowance is now a plan attribute (Free 1, Seedling 2, Grove 3, Colossal 6 field calls and as many batch calls at once), counted per key and per product (Waters and Heavens separately, as the rate limit is) instead of two for every key across products, and a closed connection ends a call at once, so an aborted call no longer holds its slot until the upstream read finished. Higher allowances on request.None; Free keys drop from two to one in flight
2026-09-10Per key, at most two field calls and two batch calls may be in flight at once; a further call answers 429 concurrency_limited with Retry-After: 1. Sequential clients are unaffected.Honour Retry-After; keep field and batch calls sequential
2026-09-10Field slices run in a bounded pool per grid worker, separate from point calls: when it is full a field call answers 503 busy with Retry-After: 2 instead of timing out. Point and batch calls keep their own pool. Retry on Retry-After; run field scans sequentially.Honour Retry-After
2026-09-10Field slices (/v1/waters/field, /v1/heavens/field) accept landmask=1: a pixel whose centre is land in the GEBCO classification the grid cells are built from (~2 km lattice) is nodata, independent of distance. The response echoes landmask.Optional
2026-09-10Field slices accept maxkm=<km>: a pixel whose nearest grid cell is farther than maxkm is nodata. It only tightens the 60 km default and is a distance gate, not a land mask (offshore cells sit on a 0.1 degree lattice, so keep it at 8 km or more there). The response echoes the effective gate as max_km.Optional
2026-09-06Billing: a 5xx response now costs 0 credits (it cost 1). A 4xx still costs 1; a 2xx is billed as before. X-Quota-Used reflects it.None
2026-09-06Keyless demo routes (/v1/demo/waters, /v1/demo/heavens) are now rate-limited per IP. The keyed routes are unchanged.None for keyed clients; use a key for programmatic access
2026-09-06New public status feed: /status and GET /api/status (availability per product, p95 latency, incidents; 60 s cache).Optional
2026-08-18Waters/Heavens point responses carry coverage_gaps (in-window gaps per variable); field slices carry gap: true when empty inside the window.None
2026-08-17Waters/Heavens point responses carry coverage (last valid step per variable); field slices carry var_last_valid. Bad coordinates answer 400 on every route (some answered 503).None