> ## Documentation Index
> Fetch the complete documentation index at: https://www.worldmonitor.app/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Shipping Chokepoint Status API

> Query global maritime chokepoint disruption scores in TypeScript or curl via the CC BY 4.0 open dataset, sandbox fixture, REST API, or MCP tool.

Fetch live or daily shipping chokepoint disruption status for 13 major maritime corridors (Strait of Hormuz, Suez Canal, Bab el-Mandeb, Panama Canal, Strait of Malacca, Kerch Strait, Taiwan Strait, and six more) in TypeScript, curl, or MCP.

## 1. Zero-key TypeScript tool (CC BY 4.0 daily open dataset)

Start immediately with **no API key, no account, and CORS enabled (`*`)** using the daily CC BY 4.0 open dataset ([dataset README & schema](https://www.worldmonitor.app/data/v1/chokepoints/README.md)):

```ts theme={null}
export interface ChokepointRow {
  id: string;
  name: string;
  status: 'green' | 'yellow' | 'red';
  disruption_score: number;
  war_risk_tier: string;
  congestion_level: string | null;
  active_warnings: number;
  ais_disruptions: number;
  transit_today_total: number | null;
  flow_ratio: number | null;
  flow_disrupted: boolean | null;
}

export async function getChokepointStatusOpenData(chokepointId?: string) {
  const res = await fetch('https://www.worldmonitor.app/data/v1/chokepoints/latest.json', {
    headers: { 'User-Agent': 'chokepoint-agent-tool/1.0 (+https://example.com)' },
    signal: AbortSignal.timeout(10_000),
  });
  if (!res.ok) throw new Error(`Chokepoint dataset HTTP ${res.status}`);
  const data = (await res.json()) as {
    snapshot_date: string;
    source_fetched_at: string;
    chokepoints: ChokepointRow[];
  };
  const rows = chokepointId
    ? data.chokepoints.filter((row) => row.id === chokepointId)
    : data.chokepoints;
  return {
    snapshotDate: data.snapshot_date,
    sourceFetchedAt: data.source_fetched_at,
    chokepoints: rows,
  };
}
```

Prefer CSV or dated history? Every UTC day is published alongside `latest.json`:

* Latest JSON: `https://www.worldmonitor.app/data/v1/chokepoints/latest.json`
* Latest CSV: `https://www.worldmonitor.app/data/v1/chokepoints/latest.csv`
* Date index: `https://www.worldmonitor.app/data/v1/chokepoints/index.json`
* JSON Schema: `https://www.worldmonitor.app/data/v1/chokepoints/schema.json`

## 2. Live 5-minute REST API and sandbox fixture

For intraday updates (5-minute cached status combining AIS crossings every 10 minutes, NGA navigational warnings hourly, and IMF PortWatch history every 6 hours), call `GET /api/supply-chain/v1/get-chokepoint-status`:

```ts theme={null}
export async function getLiveChokepointStatus(apiKey: string) {
  const url =
    'https://api.worldmonitor.app/api/supply-chain/v1/get-chokepoint-status' +
    '?jmespath=chokepoints%5B%5D.%7Bid%3Aid%2Cname%3Aname%2Cstatus%3Astatus%2Cscore%3AdisruptionScore%2Cwarnings%3AactiveWarnings%7D';
  const res = await fetch(url, {
    headers: {
      'X-WorldMonitor-Key': apiKey,
      'User-Agent': 'chokepoint-agent-tool/1.0 (+https://example.com)',
    },
    signal: AbortSignal.timeout(10_000),
  });
  if (!res.ok) throw new Error(`World Monitor API HTTP ${res.status}`);
  return res.json();
}
```

To inspect the unprojected REST response envelope without an API key, fetch the deterministic sandbox fixture and unwrap `.response.body`. Note that the fixture wraps a minimal OpenAPI-derived sample of `{chokepoints, fetchedAt, upstreamUnavailable}` (its sample row includes only a subset of fields and omits `id`, `name`, `status`, and `disruptionScore`), so it cannot be fed unchanged into a parser expecting the `jmespath`-projected array returned by `getLiveChokepointStatus`:

```bash theme={null}
curl -sS https://www.worldmonitor.app/sandbox/get-chokepoint-status.json | jq '.response.body'
```

## 3. MCP tool for Claude, ChatGPT, Codex, and Cursor

If your agent speaks MCP, connect `https://worldmonitor.app/mcp` and call `get_chokepoint_status` (a free World Monitor account includes 5 cached-data MCP calls/day via OAuth; API keys and Pro plans raise the daily quota). See [MCP Quickstart](https://www.worldmonitor.app/docs/mcp-quickstart.md) and [Official SDKs](https://www.worldmonitor.app/docs/sdks.md) (`npm install worldmonitor`, `pip install worldmonitor-sdk`).

## World Monitor vs IMF PortWatch directly

* **Use IMF PortWatch directly** when you need all 28 global chokepoints (plus PortWatch's broader catalog of thousands of ports) and bulk historical transit time series from the original IMF + Oxford source (note: PortWatch daily transit counts publish with a lag of roughly 7–9 days).
* **Use World Monitor** when your agent needs the 13 highest-impact strategic chokepoints fused with intraday AIS crossings (`aisstream.io`), active NGA navigational warnings, war-risk tiers, and a 0–100 composite disruption score — either keyless via the daily CC BY 4.0 dataset or intraday via REST/MCP.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.