Skip to content

Ocean

All endpoints are prefixed with /v1/ocean/. SST data is derived from raw NOAA OISST v2.1 satellite analysis. Bioluminescence scoring uses Pxie’s original forecast model combining sea surface temperature, ocean-colour (phytoplankton biomass), lunar phase, and surface wind. The multi-day forecast projects ocean productivity forward rather than holding it fixed.

Coverage: Global ocean, 0.25° (~25 km) resolution.

SST update: Daily at 14:00 UTC (previous day’s analysis, 1-day latency).

Bioluminescence refresh: Chlorophyll daily at 14:15 UTC, hotspots daily at 14:30 UTC, tiles every 6 hours.

Data sources: NOAA OISST v2.1 (public domain), a global weather model (CMC GDPS) from Environment and Climate Change Canada for wind and cloud (ECCC Data Server End-use Licence), and E.U. Copernicus Marine Service Information (CMEMS) ocean colour. Bioluminescence responses carry an X-Pxie-Attribution header; the Copernicus Marine acknowledgement and “Data Source: Environment and Climate Change Canada” are required when redistributing these results.

Param Type Required Description
lat float yes Latitude (-90 to 90)
lon float yes Longitude (-180 to 180)

Credits: 3 | Tier: Builder+

Sea surface temperature at a geographic point. Returns the OISST v2.1 daily analysis with anomaly (deviation from 1991–2020 climatology), sea ice fraction, and estimated error.

Terminal window
curl -H "X-API-Key: YOUR_KEY" \
"https://api.pxie.ai/v1/ocean/sst?lat=25.5&lon=-80.1"
{
"lat": 25.5,
"lon": -80.1,
"sst_celsius": 26.3,
"anomaly_celsius": 0.8,
"ice_fraction": null,
"error_celsius": 0.31,
"date": "2026-03-11",
"resolution_km": 25,
"source": "NOAA OISST v2.1"
}
Field Description
sst_celsius Sea surface temperature in °C
anomaly_celsius Deviation from 1991–2020 climatological mean
ice_fraction Sea ice concentration (0–1), null if no ice
error_celsius Estimated analysis error in °C
date Date of the SST analysis (typically yesterday)

Source: NOAA OISST v2.1


Many coastal waters glow blue-green at night when the surface is disturbed — light produced by tiny marine plankton (dinoflagellates) blooming near the surface. Whether that glow is actually visible on a given night depends on several things lining up at once: enough plankton in the water, a water temperature that favours a bloom, a dark sky with little moonlight, and seas calm enough to see the effect.

Pxie’s bioluminescence endpoints score how well those conditions line up, as a single 0–100 number, so you can answer practical questions:

  • Is it worth going out tonight, right here? → /bioluminescence
  • Which night this week or fortnight is best? → /bioluminescence/forecast
  • What does the week ahead look like, in one call? → /bioluminescence/weekly-outlook
  • Where are the brightest spots in the world right now? → /bioluminescence/hotspots
  • How do I show all of this on a map? → /bioluminescence/tiles

These are predictions of viewing conditions, not a guarantee of a sighting — purely local factors (recent rainfall, tides, nearby light pollution) also matter. The factors object in each response breaks the score into its parts (chlorophyll = plankton biomass, phyto_type = the cell-size match described below, sst_suitability = water temperature, retention = whether currents hold the bloom in place, moon_darkness, sea_state) so you can see why a night scores the way it does.

What chlorophyll-a is — and what it can’t tell you

Section titled “What chlorophyll-a is — and what it can’t tell you”

The “plankton biomass” input comes from satellite chlorophyll-a, the standard global measure of how much phytoplankton (algae) is in the water. High chlorophyll means a bloom is present — but chlorophyll alone measures total algae and cannot distinguish a glowing dinoflagellate from a non-glowing diatom or cyanobacteria. Many algae bloom; only a few species glow.

Pxie narrows total biomass toward the luminous species three ways, all reflected in the score:

  • Cell-size match — a satellite-derived dinoflagellate chlorophyll fraction that favours the large-celled, dinoflagellate-leaning water the luminous species belong to, and down-weights pico/nano-dominated water (cyanobacteria, small flagellates) that does not glow.
  • Water-temperature regime — the score uses the thermal window of the luminous dinoflagellates (a cool ~18 °C and a warm ~28 °C regime), and, at documented sites, the specific optimum of the dominant local species.
  • Known local species — at curated hotspots Pxie records the dominant luminous species (e.g. Pyrodinium bahamense, Noctiluca scintillans, Lingulodinium polyedra) and applies its species-specific thermal optimum.

This is a probabilistic narrowing from biomass + size class + location, not a species identification. Treat the species label as the most likely candidate, not a measured fact.

Coverage: Global ocean.


Credits: 5 | Tier: Builder+

What it does: answers “how good are the conditions for seeing bioluminescence at this exact spot, right now?” It returns a single 0–100 probability score plus a plain-language verdict — ideal for a “should I go tonight?” button in an app, or a live readout on a tour operator’s site.

Combines ocean-colour (phytoplankton biomass), SST (bloom likelihood), moon phase (sky darkness for visibility), and surface wind (sea state) into one score using Pxie’s original model.

Terminal window
curl -H "X-API-Key: YOUR_KEY" \
"https://api.pxie.ai/v1/ocean/bioluminescence?lat=18.09&lon=-65.45"
{
"lat": 18.09,
"lon": -65.45,
"score": 78.2,
"conditions": "excellent",
"description": "High probability of visible bioluminescence. Warm water, dark sky, favorable sea state.",
"factors": {
"chlorophyll": 96.4,
"sst_suitability": 92.1,
"phyto_type": 88.0,
"retention": 90.0,
"moon_darkness": 95.0,
"sea_state": 85.0
},
"species_group": "pyrodinium",
"species_site": "Mosquito Bay",
"inputs": {
"sst_celsius": 24.1,
"sst_anomaly": 0.4,
"chlorophyll_mg_m3": 0.83,
"dino_fraction": 0.41,
"retention_index": 0.72,
"cloud_cover_pct": 20.0,
"moon_illumination_pct": 5.2,
"moon_altitude_deg": -15.3,
"effective_illumination": 0.0,
"wind_speed_ms": 4.2
},
"sst_date": "2026-03-11",
"source": "Pxie Bioluminescence Forecast"
}
Score Conditions Description
75–100 Excellent High probability — warm water, dark sky, calm seas
55–74 Good Good chance — most conditions favorable
35–54 Moderate Some conditions suboptimal
15–34 Poor Low chance — water temp or moonlight unfavorable
0–14 Unlikely Bioluminescence unlikely at this location and time

Pxie’s scoring model combines phytoplankton biomass and type (ocean colour), water temperature, bloom retention, sky darkness (moon and cloud), and sea state into a single 0–100 score. The factors object reports each component on a 0–100 scale. Near a known hotspot (within about 75 km), species_group and species_site name the likely local species and site; otherwise they are null. inputs fields are null when that data isn’t available for the location.

Source: Pxie Bioluminescence Forecast


Credits: 5 | Tier: Builder+

What it does: the same score projected forward up to 14 days, so a user can pick the best night to plan a trip rather than only checking tonight. Each day returns its own score, conditions and moon phase.

Long-range forecasting works here because the two biggest drivers are predictable: the moon’s phase is known exactly in advance, and water temperature changes only slowly day to day. Wind is the least predictable factor, which is why only the first few days include it (see the wind_available flag below).

Each day also reports a bloom_phase — this describes the bloom’s trajectory (is the algae population building or fading), which is separate from the score (how good viewing conditions are right now). A spot can have a high score and still be a steady, not-surging bloom — so the two won’t always move together.

Phase Meaning
dormant No active bloom — the water is low in algae.
initiating A bloom is starting to build from a low base.
growing The bloom is actively intensifying.
peak The bloom is at or near its maximum.
active An established bloom holding steady — productive water that isn’t surging or fading (common in chronically productive bays).
declining The bloom is fading.
unknown Not enough recent chlorophyll history at this location to tell.

Each day also carries confidence (0–100) with confidence_reasons (for example limited_history, long_lead_time), and chlorophyll_available.

Param Type Required Description
lat float yes Latitude (-90 to 90)
lon float yes Longitude (-180 to 180)
days int no Forecast days, 1–14 (default: 14)
summary bool no true adds a summary object (best night, best upcoming nights, trend), the same as /weekly-outlook
  • Days 1–3: Includes forecast wind (wind_available: true)
  • Days 4–14: SST + moon only (wind_available: false) — wind forecasts degrade beyond 72 hours
Terminal window
curl -H "X-API-Key: YOUR_KEY" \
"https://api.pxie.ai/v1/ocean/bioluminescence/forecast?lat=18.09&lon=-65.45&days=7"
{
"lat": 18.09,
"lon": -65.45,
"days": 7,
"forecast": [
{
"date": "2026-03-12",
"score": 78.2,
"conditions": "excellent",
"factors": {
"chlorophyll": 96.4,
"sst_suitability": 92.1,
"phyto_type": 88.0,
"retention": 90.0,
"moon_darkness": 95.0,
"sea_state": 85.0
},
"wind_available": true,
"chlorophyll_available": true,
"bloom_phase": "active",
"confidence": 75,
"confidence_reasons": [],
"moon_phase": "Waning Crescent",
"moon_illumination_pct": 5.2,
"moon_altitude_deg": -15.3,
"sst_celsius": 24.1,
"chlorophyll_mg_m3": 0.83,
"wind_speed_ms": 4.2
},
{
"date": "2026-03-13",
"score": 82.5,
"conditions": "excellent",
"factors": {
"chlorophyll": 96.0,
"sst_suitability": 92.1,
"phyto_type": 88.0,
"retention": 90.0,
"moon_darkness": 97.8,
"sea_state": 80.0
},
"wind_available": true,
"chlorophyll_available": true,
"bloom_phase": "active",
"confidence": 72,
"confidence_reasons": [],
"moon_phase": "Waning Crescent",
"moon_illumination_pct": 2.3,
"moon_altitude_deg": -22.1,
"sst_celsius": 24.1,
"wind_speed_ms": 5.8
}
],
"sst_date": "2026-03-11",
"source": "Pxie Bioluminescence Forecast"
}

Source: Pxie Bioluminescence Forecast


Credits: 5 | Tier: Builder+

What it does: a compact “when should I go this week?” answer for dashboards and apps — a short summary plus the daily strip, in one call.

Param Type Required Description
lat float yes Latitude (-90 to 90)
lon float yes Longitude (-180 to 180)
days int no Outlook days, 1–14 (default: 7)
Terminal window
curl -H "X-API-Key: YOUR_KEY" \
"https://api.pxie.ai/v1/ocean/bioluminescence/weekly-outlook?lat=18.09&lon=-65.45"
{
"lat": 18.09,
"lon": -65.45,
"days": 7,
"sst_date": "2026-03-11",
"summary": {
"overall_best_night": { "date": "2026-03-13", "score": 82.5, "conditions": "excellent", "bloom_phase": "active" },
"upcoming_best_nights": [ { "date": "2026-03-13", "score": 82.5, "…": "…" } ],
"trend_text": "Improving mid-week before tapering."
},
"forecast": [ { "date": "2026-03-12", "score": 78.2, "…": "same fields as /bioluminescence/forecast" } ],
"source": "Pxie Bioluminescence Forecast"
}

upcoming_best_nights lists up to 5 nights that score well with reasonable confidence. Over land or with no SST data the endpoint returns 422.

Coverage: Global ocean.

Source: Pxie Bioluminescence Forecast


Credits: 3 | Tier: Builder+

What it does: a ready-made, ranked leaderboard of the world’s known bioluminescent sites, each scored against current conditions — for discovery rather than checking one place you already know. Ask “where should I go this week?” and get the best-scoring bays and beaches back, optionally narrowed to a region.

Pxie maintains a curated database of bioluminescent locations worldwide (each with its typical season and peak months). Every site is re-scored daily against current ocean conditions and returned sorted best-first. Scores refresh daily at 14:30 UTC.

Param Type Required Description
region string no Filter by region (see list below)
limit int no Max results, 1–500 (default: 50)

An unrecognised region returns an empty hotspots list (and is still charged), so check the spelling against the list below.

caribbean, southeast-asia, oceania, north-america-pacific, north-america-atlantic, south-america, europe, east-asia, south-asia, africa, middle-east

Terminal window
curl -H "X-API-Key: YOUR_KEY" \
"https://api.pxie.ai/v1/ocean/bioluminescence/hotspots?region=caribbean&limit=3"
{
"count": 3,
"region": "caribbean",
"hotspots": [
{
"id": "mosquito-bay-pr",
"name": "Mosquito Bay",
"lat": 18.0933,
"lon": -65.4481,
"region": "caribbean",
"country": "PR",
"description": "World's brightest bioluminescent bay (Guinness record). Pyrodinium bahamense year-round.",
"typical_season": "year-round",
"peak_months": [1, 2, 3, 10, 11, 12],
"score": 85.3,
"conditions": "excellent",
"factors": {
"chlorophyll": 94.0,
"sst_suitability": 90.2,
"phyto_type": 86.0,
"retention": 92.0,
"moon_darkness": 95.0,
"sea_state": 82.0
},
"sst_celsius": 26.1,
"chlorophyll_mg_m3": 1.12,
"dino_fraction": 0.44,
"sst_anomaly": 0.3,
"wind_speed_ms": 3.8,
"moon_illumination": 0.052
}
],
"source": "Pxie Bioluminescence Forecast"
}

Source: Pxie Bioluminescence Forecast


Credits: 1 | Tier: Builder+

What it does: the whole forecast as a map overlay — coloured image tiles you drop straight onto an interactive map so users can pan and zoom to see where the glow is likeliest, instead of querying point by point. This is the building block for a visual “bioluminescence map” in a web or mobile app.

Bioluminescence heatmap as Web Mercator PNG tiles (256×256 px). Standard slippy map convention — compatible with Leaflet, Mapbox GL, OpenLayers, and any tile-based map library.

Param Type Description
z int Zoom level (2–7)
x int Tile X coordinate
y int Tile Y coordinate

Tiles are refreshed every 6 hours. Returns 404 for land-only tiles or invalid coordinates.

Terminal window
curl -H "X-API-Key: YOUR_KEY" \
"https://api.pxie.ai/v1/ocean/bioluminescence/tiles/4/8/7" \
-o tile.png

Returns Content-Type: image/png with Cache-Control: public, max-age=21600 (6 hours).

Score Color
0–15 Deep blue
15–30 Blue → Cyan
30–50 Cyan → Green
50–65 Green → Yellow
65–85 Yellow → Orange
85–100 Orange → Magenta
L.tileLayer(
'https://api.pxie.ai/v1/ocean/bioluminescence/tiles/{z}/{x}/{y}',
{
attribution: 'Pxie Bioluminescence Forecast',
maxZoom: 7,
minZoom: 2,
headers: { 'X-API-Key': 'YOUR_KEY' },
}
).addTo(map);

Source: Pxie Bioluminescence Forecast