HSTHORMUZ STRAITTRACKER

API

API reference

Every endpoint, parameter, and dataset. For tools and language models, the same reference is available as OpenAPI and plain text.

Quickstart

Create a key on your account’s API page, keep it out of source code, and send it with each request.

curl
export HST_API_KEY="hst_live_…"

curl -H "Authorization: Bearer $HST_API_KEY" \
  "https://hormuzstraittracker.com/api/v1/exits?group_by=cargo&interval=week"
Python
import os
import requests

response = requests.get(
    "https://hormuzstraittracker.com/api/v1/exits",
    params={"group_by": "cargo", "window": 7},
    headers={"Authorization": f"Bearer {os.environ['HST_API_KEY']}"},
    timeout=30,
)
response.raise_for_status()
data = response.json()
print(data["access"], data["attribution"])
for row in data["rows"]:
    print(row["date"], row["cargo"], row["barrels_per_day"], row["status"])
JavaScript
const response = await fetch(
  'https://hormuzstraittracker.com/api/v1/exits?group_by=cargo&window=7',
  { headers: { Authorization: `Bearer ${process.env.HST_API_KEY}` } },
)
if (!response.ok) throw new Error((await response.json()).detail)
const { access, attribution, rows } = await response.json()
console.log(access, attribution, rows.at(-1))

Responses share one envelope. This one is made up, to show the shape of a response from satellite loadings:

Response
{
  "dataset": "loadings",
  "title": "Satellite loadings",
  "from": "2026-06-30",
  "to": "2026-06-30",
  "interval": "day",
  "window": 14,
  "basis": null,
  "group_by": [
    "region"
  ],
  "filters": {},
  "as_of": "2026-11-25T15:00:00.000Z",
  "measures": [
    {
      "id": "barrels_per_pass",
      "unit": "bbl",
      "description": "Capacity observed loading per usable pass over the trailing window, averaged per site and summed. Null when the selection had no usable pass in the window."
    },
    {
      "id": "percent_of_2025",
      "unit": "%",
      "description": "barrels_per_pass relative to the same selection’s full-year 2025 average; null where that baseline is negligible."
    },
    {
      "id": "estimated_bpd",
      "unit": "bbl/day",
      "description": "Estimated liquids loaded or exported. Persian Gulf and single countries only; null otherwise. Country values include the UAE’s pipeline to Fujairah."
    },
    {
      "id": "usable_passes",
      "unit": "captures",
      "description": "Usable captures in the trailing window, summed across sites."
    }
  ],
  "access": {
    "level": "delayed",
    "delayed_through": "2026-10-25",
    "latest_available": "2026-11-24",
    "notice": "Dates after 2026-10-25 are withheld from this key."
  },
  "methodology_url": "https://hormuzstraittracker.com/methodology",
  "license": "Licensed under the Hormuz Strait Tracker Terms of Service for the uses your plan permits. Attribution is required. Bulk redistribution and resale of data are not permitted.",
  "license_url": "https://hormuzstraittracker.com/terms",
  "attribution": "Source: Hormuz Strait Tracker (hormuzstraittracker.com)",
  "row_count": 1,
  "next_cursor": null,
  "rows": [
    {
      "date": "2026-06-30",
      "region": "persian_gulf",
      "barrels_per_pass": 1250000,
      "percent_of_2025": 4,
      "estimated_bpd": 37.5,
      "usable_passes": 1250000,
      "status": "final"
    }
  ]
}

Authentication and limits

Every data endpoint needs an API key, sent as an Authorization header: "Authorization: Bearer hst_live_…". Any signed-in member can create up to 3 keys at https://hormuzstraittracker.com/account/api after confirming their email address. Keys are not accepted in URLs, and browser sessions are not accepted by the API.

A key follows its account. With API permission on a paid account, or a seat on an institutional license that includes the API, it returns current data. Every other key returns the full history of every dataset except the latest 30 days, including for revisions and point-in-time queries. A change to the account applies to the next request.

Limits count all of an account’s keys together: 60 requests a minute and 1,000 a UTC day with delayed access, 300 and 20,000 with current access. Responses carry RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset, and RateLimit-Policy for the window closest to its limit, and a 429 response carries Retry-After in seconds.

Endpoints

All endpoints use GET and begin with https://hormuzstraittracker.com/api/v1. Cross-origin requests are allowed, without credentials; do not put a key in a page other people can open.

/datasets
The catalog: every dataset with its dimensions, measures, and caveats.No key needed
/datasets/{id}
One catalog entry.No key needed
/openapi.json
OpenAPI 3.1 description of the API.No key needed
/latest
The most recent row your key may read from every dataset.Needs a key
/{dataset}
Rows of one dataset. Dataset ids are listed below.Needs a key
/exits/revisions
How each date’s exits have changed since they were first published.Needs a key

Parameters

Dataset endpoints accept these. An unknown parameter is an error that lists the valid ones.

from, to
Inclusive signal dates, such as 2026-06-30. Without from, the response covers 90 days. Without to, or with a later to, it ends at the latest date your key may read; the dates actually used are in the response. A request spans at most 1,100 days.
interval
day, week, or month. Weeks start on Monday, and weekly and monthly rows are dated by the first day of the period. With delayed access, only complete weeks and months outside the withheld days are returned.
window
Trailing window in days, computed on the server. 1 is unsmoothed.
group_by
Dimensions to split rows by, comma-separated or repeated. Without it, a date has one row.
Any filterable dimension
Keep only these values: cargo=crude, or cargo=crude,product. Values of one dimension are alternatives; different dimensions all apply.
basis, as_of
For datasets that list them. as_of returns the values as they were known at an ISO 8601 time with a zone.
format
json or csv. An Accept header of text/csv works too.
limit, cursor
Rows per page, 5,000 by default and at most 10,000. When next_cursor is not null, repeat the request with it as cursor; the Link header gives the same URL.

Reading the data

  • Signal date D covers noon UTC on D−1 to noon UTC on D.
  • A date without a row was not observed, or is not yet complete. It is not a zero; a row with a value of zero is.
  • Every value is an aggregate. The API has no vessel identities, positions, tracks, or destination ports.
  • Values are estimates. Show the caveats that apply, and the unit of each measure, beside any figure you publish.

Datasets

Satellite loadings

GET /loadings

Tanker loading activity at Persian Gulf and Saudi Red Sea export terminals, from Sentinel-1 and Sentinel-2 imagery. Values are capacity observed loading per usable pass, averaged per site and then summed.

One record
One usable satellite capture of a monitored loading site and the tankers detected at its berths.
Coverage
From 2025-01-08
interval
day, week, month
window
1 to 90 days, 14 by default

Dimensions

site
A single monitored berth group.group_by · filter
terminal
Export terminal (port) slug.group_by · filter
country
ISO country code of the terminal.group_by · filter
region
Body of water.group_by · filter · persian_gulf, red_sea
cargo
Crude or product; region level only.group_by · filter · crude, product

Measures

barrels_per_pass
Capacity observed loading per usable pass over the trailing window, averaged per site and summed. Null when the selection had no usable pass in the window.bbl · may be null
percent_of_2025
barrels_per_pass relative to the same selection’s full-year 2025 average; null where that baseline is negligible.% · may be null
estimated_bpd
Estimated liquids loaded or exported. Persian Gulf and single countries only; null otherwise. Country values include the UAE’s pipeline to Fujairah.bbl/day · may be null
usable_passes
Usable captures in the trailing window, summed across sites.captures

Caveats

  • A pass is a snapshot. A site without a usable pass in the window contributes nothing to a sum, so compare usable_passes between dates.
  • Captures published late by Copernicus can revise recent dates.
  • Charts on this site use a 7-day window for the Persian Gulf region and 14 days for the Red Sea and for countries.
  • Barrels are the carrying capacity of detected tankers (deadweight × 7), not measured cargo.
  • Weekly and monthly rows are dated by the Monday or the first of the period and average its daily values; a period at either end of the requested range covers only the dates requested.

Gulf of Oman tanker exits

GET /exits

Crude and product barrels leaving the Gulf of Oman each day, by declared destination, cargo, vessel class, and how the exit was observed. The gross basis counts every accepted exit; the hormuz basis deducts Fujairah and Oman volumes that never crossed the Strait.

One record
One accepted exit of a laden liquids tanker across the Gulf of Oman line between Sur, Oman and Chabahar, Iran.
Coverage
From 2026-02-08
interval
day, week, month
window
1 to 90 days, 7 by default
basis=gross
All accepted Gulf of Oman exits.
basis=hormuz
Gross exits less estimated Fujairah pipeline and Oman exports. Each date’s slices are scaled by the same factor, so shares are unchanged.
as_of
Supported

Dimensions

destination_country
ISO 3166-1 alpha-2 code of the country named in the tanker’s reported AIS destination, or undeclared when no report names a port.group_by · filter
destination_group
Whether the reported destination names a country, names a common waypoint (Singapore or Egypt), or is undeclared.group_by · filter · declared, waypoint, undeclared
cargo
Crude, or product including chemicals and LPG. LNG is excluded.group_by · filter · crude, product
vessel_class
Deadweight class.group_by · filter · vlcc, suezmax, aframax, panamax, mr, handysize
evidence
Direct when the crossing itself was recorded; inferred when a tanker that exited with AIS off was later seen downstream.group_by · filter · direct, inferred

Measures

barrels_per_day
Estimated cargo, averaged over the trailing window.barrels per day
tankers_per_day
Observed laden exits, averaged over the trailing window. The same count on both bases; null before individual exits are available.tankers per day · may be null

Caveats

  • The latest 10 signal dates are preliminary: tankers that exit with AIS off are added once they reappear downstream.
  • Destinations are what vessels report over AIS. They are often missing, approximate, or changed later, and Singapore and Egypt are usually waypoints.
  • Totals before June 4, 2026 come from reported figures. They can be split by cargo but not by destination, vessel class, or evidence. Results that use those dimensions start with the first full trailing window after that date: June 10 for a 7-day window.
  • Exits before August 20, 2026 come from reviewed records rather than continuous AIS coverage and are counted as direct.
  • Grouped results omit slices with no exits in the window. Week and month values are means of the daily values in the period, so request window=1 for unsmoothed periods.
  • Point-in-time changes before the change log went live were reconstructed from event timestamps and apply the current 60-hour reversal rule throughout.

Empty tankers inbound

GET /entries

Empty oil and product tankers heading for the Gulf, measured as they cross into the Gulf of Oman and, earlier, in five upstream monitoring areas (the corridor stage).

One record
One empty tanker entering the Gulf of Oman, or one seen in an upstream monitoring area with a Gulf destination.
Coverage
From 2026-08-20
interval
day, week, month
window
1 to 30 days, 7 by default

Dimensions

stage
goo_line counts crossings into the Gulf of Oman; corridor counts distinct Gulf-bound vessels seen in the upstream monitoring areas. The stages are never added together. Without a stage filter or grouping, goo_line is returned.group_by · filter · goo_line, corridor
corridor
Where a corridor-stage vessel was seen. Grouped by corridor, a vessel counts once, at its latest sighting in the window. Filtering first limits which sightings are considered.group_by · filter · malacca, sri_lanka, bab_el_mandeb, suez, eastern_cape
cargo
Crude or product tanker, using the site’s standard liquids classification.group_by · filter · crude, product
vessel_class
Deadweight class.group_by · filter · vlcc, suezmax, aframax, panamax, mr, handysize

Measures

tankers_per_day
goo_line only: average daily entries over the trailing window.tankers/day · may be null
capacity_barrels_per_day
goo_line only: average daily carrying capacity entering (deadweight × 7), gross of Fujairah and Oman requirements.bbl/day · may be null
tankers
corridor only: distinct vessels seen during the trailing window.tankers · may be null
capacity_barrels
corridor only: combined carrying capacity of those vessels (deadweight × 7).bbl · may be null

Caveats

  • The two stages see the same voyages at different points, so they must not be added.
  • A corridor vessel qualifies by its reported AIS destination, which crews set by hand; vessels reporting no Gulf destination, or sailing with AIS off, are missed.
  • A corridor row exists only when every corridor it covers was observed for the whole trailing window. Malacca and Sri Lanka observation began in mid-August 2026 and the other corridors in late August.
  • Weekly and monthly rows are dated by the Monday or the first of the period and average its daily values; a period at either end of the requested range covers only the dates requested.

Tankers in the Gulf

GET /presence

How many tankers (excluding those known to be under 15,000 DWT) are inside the Persian Gulf and Gulf of Oman, what they could carry, and how much they appear to be carrying.

One record
One tanker seen by AIS inside the Persian Gulf or Gulf of Oman during one signal date.
Coverage
From 2026-08-26
interval
day, week, month
window
1 to 365 days, 1 by default

Dimensions

area
Where the tanker was last seen that date, divided at 56.4°E.group_by · filter · persian_gulf, gulf_of_oman
state
Ballast when the draught reported within the previous seven days implies a tanker less than 15% full, laden at 15% or more, and unknown without a usable draught.group_by · filter · laden, ballast, unknown
vessel_class
Size class by deadweight tonnage; unknown when the deadweight is not known.group_by · filter · vlcc, suezmax, aframax, panamax, mr, handysize, unknown

Measures

tankers
Distinct tankers seen, averaged over the window or interval.tankers
capacity_barrels
Deadweight tonnage × 7, summed over tankers with a known deadweight.barrels
estimated_cargo_barrels
Estimated cargo aboard laden tankers. Tankers in an unknown state contribute nothing.barrels
unknown_share
Share of tankers in an unknown state among all tankers in the same area and size class, whatever state is selected. Read laden and ballast counts with caution when it is high.ratio · may be null

Caveats

  • Tankers that switch off AIS for a whole signal date are not counted. GPS interference in the Gulf can also misplace tankers.
  • Draughts are entered by crews and may be stale. A tanker without a draught in the previous seven days is in an unknown state, so laden and ballast counts are lower bounds.
  • Regular draught collection for tankers that stay inside the Gulf began in late November 2026; unknown_share is higher before then.
  • A signal date is left out when its tanker count is under 60% of the median of the 14 dates ending on it, which means AIS collection was incomplete. Trailing averages skip it.
  • Vessels carrying LNG or other non-LPG gas are excluded.

Modeled estimates

GET /estimates

The site’s headline models: total exports, implied Hormuz flow, Red Sea offset, Persian Gulf loadings, the liquids deficit, inbound tanker capacity, and exports by country.

One record
One modeled daily value of a series, as charted on this site.
Coverage
From 2025-01-08
interval
day, week, month
window
1 to 90 days, 7 by default

Dimensions

series
Which estimate. Filter to one, or group by series.group_by · filter · total_exports, hormuz, red_sea_offset, gulf_loadings, deficit, inbound_capacity, country_exports
cargo
Crude or product; not available for country_exports. Without it, values are total liquids.group_by · filter · crude, product
country
Exporting country (ISO code); country_exports only.group_by · filter · SA, IQ, AE, KW, IR, QA, BH

Measures

barrels_per_day
The trailing average, or the daily value at window=1. The deficit series is zero or negative: the shortfall from the pre-war baseline.bbl/day
percent_of_baseline
Relative to the pre-war baseline the site uses; null for red_sea_offset, deficit, and inbound_capacity, which have none.% · may be null
cumulative_barrels
deficit only: barrels lost since 2026-03-01, as a positive total of daily shortfalls.bbl · may be null

Caveats

  • Without a window, every series uses its window on the site: 14 days for red_sea_offset and country_exports, 7 for the rest. Only total_exports, hormuz, and inbound_capacity accept other windows; every series accepts 1 for daily values.
  • Hormuz flows begin 2026-02-08 and inbound capacity 2026-08-20; the satellite models begin 2025-01-08.
  • The latest 10 dates of the hormuz series are preliminary and tend to be revised upward as tankers reappear downstream.
  • Crude and product deficits are capped at zero separately, so a surplus of one never offsets the other.
  • Weekly and monthly rows are dated by the Monday or the first of the period and average its daily values; a period at either end of the requested range covers only the dates requested.
  • In weekly and monthly rows, cumulative_barrels is the total at the end of the period.

Revisions and point in time

Recent rows of datasets that are revised have status preliminary. Exits in particular rise for about ten days, because tankers that crossed without AIS are added once they are seen downstream.

Datasets that support as_of can be read as they stood at an earlier moment, so a model can be tested against what was known at the time.

exits/revisions lists, for each signal date, the value first published, the value now, and how much of it had been published at each age.

Store as_of from the response with any result you need to reproduce.

GET /exits/revisions

How each signal date’s gross Gulf of Oman exits have changed since it was first published. Recent dates rise as tankers that crossed without AIS are seen further downstream.

first_released_at
When the date was first published.
first_release_barrels
Gross exits for the date as first published.
current_barrels
Gross exits for the date as published now.
revision_barrels
Current minus first release.
first_release_average_barrels_per_day
The trailing seven-day average ending on the date, as it stood at first release.
current_average_barrels_per_day
The same seven-day average now.
percent_published_after_1d … 21d
Share of the current value that had been published by the end of that UTC day after the signal date; null when not known.
maturity
JSON only, beside the rows. Barrel-weighted share of the current value published at each age in days, over the returned dates that are old enough to have every age.

Errors

Errors are JSON problem details (RFC 9457) with type, title, status, and a detail that says what to change.

400 Invalid parameter
A parameter is unknown, malformed, out of range, or not valid for this dataset. The detail names the valid choices.
401 API key required
No valid API key was sent in the Authorization header, or the key was revoked.
404 Not found
There is no such endpoint or dataset.
405 Method not allowed
The API is read-only; use GET.
429 Too many requests
A rate limit was reached. Wait the number of seconds in Retry-After.
503 Busy
Too many queries are running. Wait the number of seconds in Retry-After.
500 Internal error
The request could not be completed. Try again later.

Citing

Credit the data wherever it is used: “Source: Hormuz Strait Tracker (hormuzstraittracker.com)”. Include the date you retrieved it and, where possible, a link to the methodology.

Use is governed by the Terms of Service and limited to what your plan permits. Bulk redistribution and resale are not permitted.

See the Terms of Service for what each plan permits.