Mekong SharedWater

Translating Satellite Earth Observation into Transboundary Environmental Governance.

Dark / light mode
SERVIR

API access

The data behind this portal (landscape change, water level and water pollution) is available through the same REST API the maps use. Everything is read-only GET.

Explore the API

Interactive references list every endpoint with its parameters and responses. They need no token to browse.

Base URL: https://mekong-pollution-servir.adpc.net

Get a token

Data endpoints require an API token. Tokens are issued by the portal team, one per partner or service. Contact the portal team with your name, organisation and intended use to request one.

Please do not reuse the token the portal's own pages send in their requests; it is shared and rate-limited per visitor, not meant for scripts.

Make a request

Send the token as a bearer header:

curl -H "Authorization: Bearer $TOKEN" \
  https://mekong-pollution-servir.adpc.net/api/vectors/basin/active.geojson

Clients that cannot set headers (an <img> tag, or a map library that takes only a URL template) can pass ?access_token=<token> instead. Prefer the header, since query strings end up in logs and browser history.

import requests

r = requests.get(
    "https://mekong-pollution-servir.adpc.net/api/wpi/reaches.geojson",
    headers={"Authorization": f"Bearer {TOKEN}"},
    timeout=30,
)
r.raise_for_status()
features = r.json()["features"]

Responses: 401 missing, invalid or expired token; 429 over the limit of 300 requests per minute per token; 503 a backing service (database or sensor feed) is temporarily unavailable.

What is available

Landscape change

  • /api/landcover/basins
    Land cover by watershed
  • /api/evi/{sensor}/basins
    EVI time series by watershed
  • /api/landscape/forest-loss/basins
    Forest loss by watershed
  • /api/drivers-of-forest-loss/basins
    Drivers of forest loss
  • /api/vectors/mining/sites.geojson
    Mining sites

Water level

  • /api/vectors/reach/tilejson.json
    SWORD/SWOT river reaches (vector tiles)
  • /api/vectors/nodes/points.geojson
    Virtual stations
  • /api/vectors/nodes/{node_id}/timeseries
    Water surface elevation series

Water pollution

  • /api/vectors/pcd/pcd_stations.geojson
    PCD monitoring stations
  • /api/water-quality/stations/{pcd|sword}/latest
    Latest turbidity / SPM per station
  • /api/wpi/reaches.geojson
    Water Pollution Index by reach
  • /api/arsenic/field-data
    Arsenic field samples

Rasters (COG tiles)

  • /api/cogs
    Catalogue of available rasters
  • /api/cogs/{cog_id}/tilejson.json
    TileJSON for a raster
  • /api/cogs/{cog_id}/point?lon=&lat=
    Pixel value at a point

This is a selection; Swagger UI lists every endpoint.