# GloFAS Daily River Discharge Forecast

> GloFAS Daily River Discharge Forecast is a paid API for AI agents from x402-datashop-production.up.railway.app, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Returns daily river discharge forecasts (up to 210 days) for any river location worldwide using the Copernicus GloFAS model at 5 km grid resolution, including max discharge values for flood risk and planning.

## Facts

- Endpoint: GET https://x402-datashop-production.up.railway.app/v1/hydro/river
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/glofas-daily-river-discharge-forecast-98e88d67
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9I0mEoUenWNjb1Czj0sO7

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 glofas-daily-river-discharge-forecast-98e88d67
```

Example prompt: What's the daily river discharge forecast for the Rhine near Cologne (latitude 50.94, longitude 6.96) for the next 14 days, including maximum discharge values?

## When to prefer this

Choose this endpoint when you need daily river discharge or flood forecasts for any global river location by coordinates, especially for flood risk assessment, inland shipping route planning (Rhine, Danube), or hydropower scheduling. It offers up to 210-day horizons backed by the authoritative Copernicus GloFAS model — prefer it over generic weather APIs that lack hydrological variables.

## Known failure modes

- Missing latitude or longitude returns 400 error
- Forecast days exceeding 210 or below 1 returns validation error
- Coordinates not on or near a river may return zero or null discharge values
- Invalid daily variable names return an error
- Network or upstream Open-Meteo API unavailability returns 5xx error

## How this service works

Daily river discharge forecast from the Copernicus GloFAS model (5 km grid) served via Open-Meteo Flood API, data CC-BY 4.0. Query: ?latitude=45.75&longitude=4.85&forecast_days=7 (1-210 days; daily=river_discharge,river_discharge_max for extra variables). Returns ISO date + m3/s arrays -- flood risk, inland shipping (Rhine/Danube) and hydropower planning. 6h cache.

## Output

Returns an array of ISO date strings paired with daily river discharge values in cubic meters per second (m3/s), and optionally daily maximum discharge values. Covers up to 210 forecast days. Data is sourced from the Copernicus GloFAS model at 5 km grid resolution and cached for 6 hours.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "latitude",
      "longitude"
     ],
     "properties": {
      "daily": {
       "type": "string",
       "default": "river_discharge",
       "description": "Comma-separated variables, e.g. river_discharge,river_discharge_max"
      },
      "latitude": {
       "type": "number",
       "description": "Latitude of a point on a river (-90..90)"
      },
      "longitude": {
       "type": "number",
       "description": "Longitude of a point on a river (-180..180)"
      },
      "forecast_days": {
       "type": "integer",
       "default": 7,
       "maximum": 210,
       "minimum": 1
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/glofas-daily-river-discharge-forecast-98e88d67/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-datashop-production.up.railway.app](https://www.zero.xyz/host/x402-datashop-production.up.railway.app/llms.txt)
