# SiteCheck Trade & Energy – Rhine River Water Levels (PEGELONLINE)

> SiteCheck Trade & Energy – Rhine River Water Levels (PEGELONLINE) is a paid API for AI agents from api.tradeenergy-api.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-29).

Returns current water level (cm) and discharge (m³/s) for a specified German federal waterway gauge station on the Rhine, sourced from PEGELONLINE (WSV).

## Facts

- Endpoint: GET https://api.tradeenergy-api.workers.dev/api/logistics/rhine-river-water-levels?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sitecheck-trade-energy-rhine-river-water-levels-pegelonline-f8e6b3d7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5unQN3FUue-DWJchr6OFX

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability sitecheck-trade-energy-rhine-river-water-levels-pegelonline-f8e6b3d7
```

Example prompt: What's the current water level and discharge at KAUB on the Rhine right now? I need the latest PEGELONLINE reading to check if conditions are favorable for barge traffic.

## When to prefer this

Use this endpoint when you need real-time hydrological gauge data for a specific Rhine station to support logistics decisions, freight planning, or commodity flow monitoring. It directly sources from the authoritative German federal waterway operator (WSV/PEGELONLINE) and returns structured, timestamped readings. Prefer it over manual PEGELONLINE lookups when integrating Rhine water level data into automated agent workflows or dashboards.

## Known failure modes

- Unknown or misspelled station name returns an error — use official PEGELONLINE short names like KAUB, EMMERICH, COLOGNE
- PEGELONLINE upstream API downtime may cause stale or missing readings
- Some stations may lack discharge (Q) data even if water level is available
- Network timeout from Cloudflare Worker if PEGELONLINE is slow to respond

## How this service works

Current water level (W, cm) and discharge (Q, m3/s) for one German federal waterway gauge from PEGELONLINE (WSV), with the reading timestamp. Default station is KAUB (Middle Rhine, a key barge bottleneck). Barging capacity is not calculated; this is gauge data only.

## Output

A JSON object containing the source URL, station details (name, river, km marker, lat/lon), the timestamp of the check, water level reading (value in cm, unit, measured-at timestamp), and discharge reading (value in m³/s, unit, measured-at timestamp).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "station": {
       "type": "string",
       "description": "PEGELONLINE station short name, e.g. KAUB, EMMERICH, COLOGNE (default KAUB)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "source": "https://www.pegelonline.wsv.de/webservices/rest-api/v2/stations/KAUB.json",
  "station": {
   "km": 546.23,
   "name": "KAUB",
   "water": "RHEIN",
   "number": "25700100",
   "latitude": 50.085438,
   "longitude": 7.764962
  },
  "checkedAt": "2026-10-23T09:38:01.631Z",
  "discharge": {
   "unit": "m³/s",
   "value": 555,
   "measuredAt": "2026-10-23T11:15:00+02:00"
  },
  "waterLevel": {
   "unit": "cm",
   "value": 28,
   "measuredAt": "2026-10-23T11:30:00+02:00"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sitecheck-trade-energy-rhine-river-water-levels-pegelonline-f8e6b3d7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.tradeenergy-api.workers.dev](https://www.zero.xyz/host/api.tradeenergy-api.workers.dev/llms.txt)
