# TBS Weather & Climate API – Tide Predictions & Sea-Level Forecast

> TBS Weather & Climate API – Tide Predictions & Sea-Level Forecast is a paid API for AI agents from x402.tbs-digital.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-09).

Returns hourly sea-level height (meters) plus derived high and low tide times for any coastal location, for up to 168 hours ahead.

## Facts

- Endpoint: GET https://x402.tbs-digital.com/weather/tides?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-09
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tbs-weather-climate-api-tide-predictions-sea-level-forecast-be036f2e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_IIucr3pR4uJjAGbeS6cXA

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 tbs-weather-climate-api-tide-predictions-sea-level-forecast-be036f2e
```

Example prompt: What are the high and low tide times for the next 48 hours at Miami Beach, Florida? I need hourly sea-level heights too.

## When to prefer this

Choose this endpoint when you need structured, machine-readable tide tables (hourly sea-level heights plus explicit high/low events) for any coastal location worldwide, especially for operational contexts like shipping, fishing, port scheduling, or surfing. Prefer it over generic weather APIs that omit marine/tidal data, and over free tide services that lack programmatic access or per-call pricing at this granularity.

## Known failure modes

- Missing both lat/lon and city → 400 bad request
- Invalid or inland city name with no coastal tide data → empty or error response
- Hours parameter out of range (< 1 or > 168) → validation error
- Location too far inland (no marine data available) → no tide data returned
- Payment failure (insufficient USDC) → 402 payment required

## How this service works

Tide predictions and sea-level forecast for any coastal location: hourly sea-level height (meters) plus derived high and low tide times, next 24 hours by default. From Open-Meteo Marine. For shipping, fishing, surfing, and coastal or port operations that need tide tables.

## Output

Returns a JSON object with: location metadata (lat, lon, name, country), an array of hourly sea-level height readings in meters, derived high and low tide events with timestamps, the data source (Open-Meteo Marine), a request ID, and a generated_at timestamp. Covers up to 168 hours of tide data.

## 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",
     "properties": {
      "lat": {
       "type": "number",
       "description": "Latitude -90..90 (requires lon)"
      },
      "lon": {
       "type": "number",
       "description": "Longitude -180..180 (requires lat)"
      },
      "city": {
       "type": "string",
       "description": "City name (alternative to lat/lon)"
      },
      "hours": {
       "type": "integer",
       "default": 24,
       "maximum": 168,
       "minimum": 1,
       "description": "Optional forecast horizon in hours, integer 1..168 (default 24)"
      },
      "timezone": {
       "type": "string",
       "description": "Optional IANA timezone"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "payer": {
       "type": "object",
       "properties": {
        "address": {
         "type": "string",
         "nullable": true
        },
        "network": {
         "type": "string"
        }
       }
      },
      "tides": {
       "type": "object"
      },
      "source": {
       "type": "string"
      },
      "location": {
       "type": "object",
       "properties": {
        "lat": {
         "type": "number"
        },
        "lon": {
         "type": "number"
        },
        "name": {
         "type": "string"
        },
        "country": {
         "type": "string"
        }
       }
      },
      "request_id": {
       "type": "string"
      },
      "generated_at": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "payer": {
   "address": "0x0000000000000000000000000000000000000000",
   "network": "base"
  },
  "tides": {
   "unit": "m",
   "series": [
    {
     "time": "2026-09-30T10:00",
     "sea_level_m": 4.97
    },
    {
     "time": "2026-09-30T11:00",
     "sea_level_m": 3.73
    }
   ],
   "extremes": [
    {
     "time": "2026-09-30T16:00",
     "type": "low",
     "sea_level_m": -5.39
    },
    {
     "time": "2026-09-30T22:00",
     "type": "high",
     "sea_level_m": 4.75
    }
   ],
   "timezone": "Europe/Paris",
   "utc_offset_seconds": 7200
  },
  "source": "open-meteo",
  "location": {
   "lat": 48.65,
   "lon": -2.01,
   "name": "Saint-Malo",
   "country": "FR"
  },
  "request_id": "0b21c0e6-6a3f-4e2a-8b1e-2f9d4c7a1e55",
  "generated_at": "2026-08-09T12:00:00.000Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tbs-weather-climate-api-tide-predictions-sea-level-forecast-be036f2e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.tbs-digital.com](https://www.zero.xyz/host/x402.tbs-digital.com/llms.txt)
