Get current statistics for the ShippingRates shipping intelligence database.
Use this as a starting point to understand what data is available before calling other tools. Returns record counts for D&D tariffs, local charges, transit schedules, freight rates, surcharges, ports, shipping lines, countries, and the last data refresh timestamp.
FREE — no payment required.
Returns: { tariff_records, ports, transit_schedules, freight_rates, local_charges, shipping_lines, countries, last_scrape (ISO datetime) }
Related tools: Use shippingrates_lines for per-carrier breakdowns, shippingrates_search for keyword discovery.
No parameters.
shippingrates_lines
List all shipping lines in the ShippingRates database with per-country record counts.
Use this to discover which carriers and countries have data before querying specific tools. Returns each carrier's name, slug, SCAC code, and a breakdown of available D&D tariff and local charge records per country.
FREE — no payment required.
Returns: Array of { line, slug, scac, countries: [{ code, name, dd_records, lc_records }] }
Related tools: Use shippingrates_stats for aggregate totals, shippingrates_search for keyword-based discovery.
No parameters.
shippingrates_search
Search the ShippingRates database by keyword — matches against carrier names, port names, country names, and charge types.
Use this for exploratory queries when you don't know exact codes. For example, search "mumbai" to find port codes, or "hapag" to find Hapag-Lloyd data coverage. Returns matching trade lanes, local charges, and shipping line information.
FREE — no payment required.
Returns: { trade_lanes: [...], local_charges: [...], lines: [...] } matching the keyword.
Related tools: Use shippingrates_port for structured port lookup by UN/LOCODE, shippingrates_lines for full carrier listing.
Parameters (1)
keywordstringrequired
Search term — e.g. "maersk", "mumbai", "hapag-lloyd"
shippingrates_dd_calculate
Calculate demurrage and detention (D&D) costs for one carrier in one country.
Use this when the user needs a detailed cost breakdown for a specific carrier. Returns free days, per-diem rates for each tariff slab, and total cost. This is the core tool for logistics cost analysis — it answers "how much will I pay if my container is detained X days?"
To compare D&D costs across all carriers at once, use shippingrates_dd_compare instead.
PAID: $0.10/call via x402 (USDC on Base or Solana). Without payment, returns 402 with payment instructions.
Returns: { line, country, container_type, days, free_days, slabs: [{ from, to, rate_per_day, days, cost }], total_cost, currency }
Parameters (5)
linestringrequired
Shipping line slug — one of: maersk, msc, cma-cgm, hapag-lloyd, one, cosco
countrystringrequired
ISO 2-letter country code (e.g. IN, AE, SG)
container_typestringrequired
ISO 6346 container type — 20DV, 40DV, 40HC, 20RF, 40RF, 20OT, 40OT, 20FR, 40FR
daysintegerrequired
Number of detention days
x_paymentstring
x402 payment proof header (optional — required for paid access)
shippingrates_dd_compare
Compare demurrage and detention costs across ALL available carriers for the same country, container type, and detention days.
Use this for freight procurement and carrier selection — it answers "which carrier has the cheapest D&D in this country?" Returns a side-by-side comparison with each carrier's free days, slab rates, and total cost sorted cheapest first.
For a single carrier's detailed D&D breakdown, use shippingrates_dd_calculate instead.
PAID: $0.25/call via x402 (USDC on Base or Solana). Without payment, returns 402 with payment instructions.
Returns: Array of { line, free_days, total_cost, currency, slabs } for each available carrier, sorted by total_cost ascending.
Parameters (4)
countrystringrequired
ISO 2-letter country code
container_typestringrequired
ISO 6346 container type — 20DV, 40DV, 40HC, 20RF, 40RF, 20OT, 40OT, 20FR, 40FR
daysintegerrequired
Number of detention days
x_paymentstring
x402 payment proof header
shippingrates_local_charges
Get local charges at a port for a specific carrier — Terminal Handling Charges (THC), documentation fees (BL/DO), seal fees, and other port-specific charges.
Use this when calculating total shipping costs at origin or destination. Combine with shippingrates_dd_calculate for a complete port cost picture, or use shippingrates_total_cost for an all-in-one landed cost estimate.
PAID: $0.05/call via x402 (USDC on Base or Solana). Without payment, returns 402 with payment instructions.
Returns: Array of { charge_type, charge_name, amount, currency, container_type, direction } for all applicable charges at the port.
Parameters (4)
linestringrequired
Shipping line slug — one of: maersk, msc, cma-cgm, hapag-lloyd, one, cosco
countrystringrequired
ISO 2-letter country code
port_codestring
Port code to filter (e.g. INMUN for Mumbai)
x_paymentstring
x402 payment proof header
shippingrates_inland_search
Search for available inland transport routes (road/rail haulage) from port to inland destinations for a specific carrier.
Use this to discover what haulage routes a carrier offers in a country. For example, search "ahmedabad" to find routes from Nhava Sheva to Ahmedabad via Maersk. Returns route options with ICD/CFS codes and available container types.
For actual haulage rate quotes, use shippingrates_inland_haulage. For cross-carrier rate comparison, use shippingrates_inland_compare.
PAID: $0.03/call via x402 (USDC on Base or Solana). Without payment, returns 402 with payment instructions.
Returns: Array of { origin, destination, mode, container_types, icd_code } matching the search criteria.
Parameters (4)
linestringrequired
Shipping line slug — one of: maersk, msc, cma-cgm, hapag-lloyd, one, cosco
countrystringrequired
ISO 2-letter country code
keywordstring
Search term — city name, region, or route
x_paymentstring
x402 payment proof header
shippingrates_cfs_tariffs
Get Container Freight Station (CFS) handling tariffs — charges for LCL (Less than Container Load) cargo consolidation and deconsolidation at port warehouses.
Use this for LCL shipments to estimate warehouse handling costs. Returns per-unit handling rates, minimum charges, and storage fees at the specified port. Not relevant for FCL (Full Container Load) shipments.
PAID: $0.05/call via x402 (USDC on Base or Solana). Without payment, returns 402 with payment instructions.
Returns: Array of { facility, service_type, cargo_type, rate_per_unit, unit, minimum_charge, currency }.
Parameters (4)
portstringrequired
UN/LOCODE port code (e.g. INMAA, INMUN)
servicestring
Filter by service type
cargo_typestring
Filter by cargo type
x_paymentstring
x402 payment proof header
shippingrates_inland_haulage
Get inland haulage (trucking/rail) rates for moving containers between a port and an inland location.
Use this when you know the specific origin port and destination and need rate quotes. Returns route-specific rates by container type including base rate, fuel surcharges, and estimated transit times.
To discover what routes exist first, use shippingrates_inland_search. To compare rates across all carriers for the same route, use shippingrates_inland_compare.
PAID: $0.05/call via x402 (USDC on Base or Solana). Without payment, returns 402 with payment instructions.
Returns: Array of { carrier, origin, destination, container_type, rate, fuel_surcharge, total, currency, transit_days, mode }.
Parameters (5)
originstringrequired
Origin port UN/LOCODE (e.g. INNSA, INMAA)
destinationstringrequired
Inland destination city name (e.g. Ahmedabad, Delhi)
container_typestring
Container type filter — e.g. 20DV, 40HC, 20RF
modestring
Transport mode filter (PRE or ONC)
x_paymentstring
x402 payment proof header
shippingrates_port
Look up port details by UN/LOCODE — name, country, coordinates, timezone, and terminal facilities.
Use this to validate port codes or get port metadata. If you don't know the UN/LOCODE, use shippingrates_search with the port or city name first.
PAID: $0.01/call via x402 (USDC on Base or Solana). Without payment, returns 402 with payment instructions.
Returns: { port_code, port_name, country, country_code, lat, lon, timezone, facilities }
Parameters (2)
codestringrequired
UN/LOCODE port code — e.g. "INNSA", "AEJEA", "SGSIN"
x_paymentstring
x402 payment proof header
shippingrates_transit
Get estimated ocean transit times between two ports across all available carriers.
Use this for quick transit time comparison between ports — answers "how long does it take to ship from A to B?" Returns carrier-specific transit durations, service types, and frequencies.
For detailed routing with transhipment ports and service codes, use shippingrates_transit_schedules instead.
PAID: $0.02/call via x402 (USDC on Base or Solana). Without payment, returns 402 with payment instructions.
Returns: Array of { carrier, transit_days, service_type, frequency, direct_or_transhipment }.
Parameters (3)
originstringrequired
Origin port UN/LOCODE — e.g. INNSA (Nhava Sheva), CNSHA (Shanghai), SGSIN (Singapore)
destinationstringrequired
Destination port UN/LOCODE — e.g. AEJEA (Jebel Ali), NLRTM (Rotterdam), USNYC (New York)
x_paymentstring
x402 payment proof header
shippingrates_rates
Get ocean freight rates between two ports, optionally filtered by container type.
Use this to compare base freight costs across carriers for a specific trade lane. Returns current spot rates and contract rate indicators with trend data. For a complete cost picture including surcharges and local charges, use shippingrates_total_cost instead.
PAID: $0.03/call via x402 (USDC on Base or Solana). Without payment, returns 402 with payment instructions.
Returns: Array of { carrier, origin, destination, container_type, rate, currency, effective_date, trend }.
Parameters (4)
originstringrequired
Origin port UN/LOCODE — e.g. INNSA (Nhava Sheva), CNSHA (Shanghai), SGSIN (Singapore)
destinationstringrequired
Destination port UN/LOCODE — e.g. AEJEA (Jebel Ali), NLRTM (Rotterdam), USNYC (New York)
container_typestring
Container type filter — e.g. 20DV, 40HC, 20RF
x_paymentstring
x402 payment proof header
shippingrates_surcharges
Get carrier-specific surcharges — BAF (Bunker Adjustment Factor), CAF (Currency Adjustment Factor), PSS (Peak Season Surcharge), EBS (Emergency Bunker Surcharge), and more.
Use this to understand surcharge exposure for a carrier in a specific country/direction. These are charges added on top of base freight rates. For a complete cost breakdown, use shippingrates_total_cost which includes surcharges automatically.
PAID: $0.02/call via x402 (USDC on Base or Solana). Without payment, returns 402 with payment instructions.
Returns: Array of { surcharge_type, surcharge_name, amount, currency, per_unit, effective_from, effective_to, direction }.
Parameters (4)
linestringrequired
Shipping line slug — one of: maersk, msc, cma-cgm, hapag-lloyd, one, cosco
countrystring
ISO 2-letter country code
directionstring
Trade direction — 'import' or 'export'
x_paymentstring
x402 payment proof header
shippingrates_congestion
Get port congestion metrics — vessel waiting times, berth occupancy, and delay trends for a specific port.
Use this to assess port efficiency and anticipate detention risk. High congestion often leads to longer container dwell times and higher D&D costs. For shipping disruption news and alerts (Red Sea, Suez, chokepoints), use shippingrates_congestion_news instead.
PAID: $0.02/call via x402 (USDC on Base or Solana). Without payment, returns 402 with payment instructions.
Returns: { port, congestion_level, avg_waiting_hours, berth_occupancy_pct, vessel_count, trend, period_days }.
Parameters (3)
portstringrequired
UN/LOCODE port code — e.g. INNSA (Nhava Sheva), AEJEA (Jebel Ali), SGSIN (Singapore)
days_backinteger
Days of historical data (default: 30)
x_paymentstring
x402 payment proof header
shippingrates_reliability
Get schedule reliability metrics for a carrier — on-time performance percentage, average delay in days, and sample size.
Use this for carrier selection and benchmarking — answers "how reliable is this carrier on this trade lane?" On-time is defined as arriving within ±1 day of scheduled ETA (industry standard per Sea-Intelligence).
PAID: $0.02/call via x402 (USDC on Base or Solana). Without payment, returns 402 with payment instructions.
Returns: { line, trade_lane, on_time_pct, avg_delay_days, sample_size, period }.
Parameters (3)
linestringrequired
Shipping line slug — one of: maersk, msc, cma-cgm, hapag-lloyd, one, cosco
trade_lanestring
Trade lane filter — e.g. 'Asia-Europe', 'Transpacific', 'Asia-Middle East'
x_paymentstring
x402 payment proof header
shippingrates_vessel_schedule
Get upcoming vessel arrivals and departures at a specific port.
Use this to check what vessels are expected at a port — useful for booking planning and tracking. Returns vessel names, carriers, ETAs/ETDs, and service routes.
For transit time estimates between two ports, use shippingrates_transit. For detailed service-level routing, use shippingrates_transit_schedules.
PAID: $0.02/call via x402 (USDC on Base or Solana). Without payment, returns 402 with payment instructions.
Returns: Array of { vessel_name, carrier, voyage, eta, etd, service, from_port, to_port }.
Parameters (3)
portstringrequired
UN/LOCODE port code — e.g. INNSA (Nhava Sheva), AEJEA (Jebel Ali), SGSIN (Singapore)
days_aheadinteger
Days to look ahead (default: 14)
x_paymentstring
x402 payment proof header
shippingrates_vessel_schedule_options
Get carrier vessel/voyage schedule options between an origin and destination, including operational cutoff deadlines when the carrier source publishes them.
Use this for booking planning questions that need vessel details, voyage number, transshipment ports, ETA/ETD, and port/SI/VGM cutoffs. Missing cutoff fields remain null or absent; ShippingRates does not infer unpublished deadlines.
For port-call monitoring without cutoff details, use shippingrates_vessel_schedule.
PAID: $0.03/call via x402 (USDC on Base or Solana). Without payment, returns 402 with payment instructions.
Returns: { origin, destination, options: Array<{ carrier, vessel_name, vessel_imo, voyage_number, etd, eta, transshipment_ports, cutoffs, source_url }>, coverage }.
Parameters (6)
originstringrequired
Origin UN/LOCODE — e.g. CNSHA, INNSA, SGSIN
destinationstringrequired
Destination UN/LOCODE — e.g. USLAX, DEHAM, AEJEA
carrierstring
Optional carrier filter — e.g. cmacgm, hapag, maersk
days_aheadinteger
Days to look ahead (default: 90)
limitinteger
Maximum schedule options to return (default: 50)
x_paymentstring
x402 payment proof header
shippingrates_regulatory
Get recent shipping regulatory updates and compliance requirements for a specific country — customs regulations, documentation requirements, trade restrictions, and policy changes.
Use this to stay current on regulatory changes that may affect shipments to/from a country.
PAID: $0.01/call via x402 (USDC on Base or Solana). Without payment, returns 402 with payment instructions.
Returns: Array of { title, description, effective_date, impact_level, category, country }.
Parameters (3)
countrystringrequired
ISO 2-letter country code
limitinteger
Max results (default: 10)
x_paymentstring
x402 payment proof header
shippingrates_total_cost
Calculate the full landed cost of shipping a container — combines freight rates, surcharges, local charges (origin + destination), demurrage/detention estimates, and transit time into one comprehensive estimate.
This is the most comprehensive tool — a single call replaces 5-6 individual queries. Use this when the user needs an all-in cost estimate for a specific shipment. For individual cost components, use the dedicated tools: shippingrates_rates (freight), shippingrates_surcharges, shippingrates_local_charges, shippingrates_dd_calculate (detention).
PAID: $0.15/call via x402 (USDC on Base or Solana). Without payment, returns 402 with payment instructions.
Returns: { freight: { rate, currency }, surcharges: { total, items[] }, local_charges: { origin: { total, items[] }, destination: { total, items[] } }, detention: { days, cost, currency }, transit: { days, service }, total_landed_cost, currency }
Parameters (6)
linestringrequired
Shipping line slug — one of: maersk, msc, cma-cgm, hapag-lloyd, one, cosco
originstringrequired
Origin port UN/LOCODE — e.g. INNSA (Nhava Sheva), CNSHA (Shanghai), SGSIN (Singapore)
destinationstringrequired
Destination port or inland location
container_typestringrequired
ISO 6346 container type — 20DV, 40DV, 40HC, 20RF, 40RF, 20OT, 40OT, 20FR, 40FR
detention_daysinteger
Expected detention days (default: 0)
x_paymentstring
x402 payment proof header
shippingrates_fx
Get current exchange rate between two currencies — useful for converting shipping costs quoted in different currencies (USD, EUR, INR, AED, SGD, CNY, etc.).
Use this to normalize costs from different carriers/countries to a common currency for comparison. Rates are updated daily.
FREE — no payment required.
Returns: { from, to, rate, timestamp }
Parameters (2)
fromstringrequired
Source currency code — e.g. "USD", "EUR"
tostringrequired
Target currency code — e.g. "INR", "AED"
shippingrates_transit_schedules
Get detailed transit schedules for a specific carrier — service codes, routing via transhipment ports, transit days, and sailing frequency.
Use this when you need routing details beyond just transit time — e.g., which transhipment ports are used, what service string applies, or weekly frequency. For a quick transit time comparison across all carriers, use shippingrates_transit instead.
PAID: $0.03/call via x402 (USDC on Base or Solana). Without payment, returns 402 with payment instructions.
Returns: Array of { carrier, service_code, origin, destination, transit_days, transhipment_ports[], frequency, direct }.
Parameters (5)
carrierstringrequired
Carrier SCAC code or slug
originstring
Origin port UN/LOCODE filter
destinationstring
Destination port UN/LOCODE filter
max_daysinteger
Maximum transit days filter
x_paymentstring
x402 payment proof header
shippingrates_facilities
Search India's Inland Container Depot (ICD) and Container Freight Station (CFS) facility directory — GPS coordinates, rail connectivity, operator details, and capacity.
Use this to find facilities near an inland destination in India, or to check if a specific ICD/CFS has rail connectivity. Useful for inland logistics planning in combination with shippingrates_inland_haulage.
PAID: $0.02/call via x402 (USDC on Base or Solana). Without payment, returns 402 with payment instructions.
Returns: Array of { code, name, type, state, city, lat, lon, operator, rail_connected, capacity }.
Parameters (5)
typestring
Facility type filter
statestring
Indian state name filter
codestring
Facility code filter
rail_connectedstring
Rail connectivity filter — 'true' or 'false'
x_paymentstring
x402 payment proof header
shippingrates_congestion_news
Get shipping disruption news aggregated from 7 trade press sources — with port tagging and severity classification. Covers Hormuz Strait, Red Sea/Houthi, Suez Canal, Bab el-Mandeb, port congestion, and weather events.
Use this for situational awareness — answers "are there any active disruptions affecting my route?" For quantitative port congestion metrics (waiting times, berth occupancy), use shippingrates_congestion instead. For route-level risk scoring, use shippingrates_risk_score.
PAID: $0.02/call via x402 (USDC on Base or Solana). Without payment, returns 402 with payment instructions.
Returns: Array of { headline, source, published_at, severity, affected_ports[], chokepoint, summary }.
Parameters (5)
portstring
Port UN/LOCODE filter
severitystring
Severity classification filter
days_backinteger
Days of historical news (default: 7)
limitinteger
Maximum number of results
x_paymentstring
x402 payment proof header
shippingrates_inland_compare
Compare inland haulage rates across ALL available carriers for a port-to-ICD/city pair — sorted cheapest first.
Use this for carrier selection on inland legs — answers "which carrier offers the cheapest trucking/rail from port X to city Y?" For a single carrier's rates, use shippingrates_inland_haulage instead. To discover what routes exist, use shippingrates_inland_search first.
PAID: $0.08/call via x402 (USDC on Base or Solana). Without payment, returns 402 with payment instructions.
Returns: Array of { carrier, mode, container_type, rate, currency, transit_days, weight_bracket } sorted by rate ascending.
Parameters (4)
originstringrequired
Origin port UN/LOCODE — e.g. INNSA (Nhava Sheva), CNSHA (Shanghai), SGSIN (Singapore)
destinationstringrequired
Destination city or ICD code
container_typestring
Container type (default: 20GP)
x_paymentstring
x402 payment proof header
shippingrates_risk_score
Get a composite risk score (0-100) for a shipping route — combines port congestion, active disruption news, and chokepoint impact analysis (Hormuz, Suez, Bab el-Mandeb, Panama Canal).
Use this for route risk screening — answers "how risky is this trade lane right now?" Scores above 70 indicate elevated risk. For detailed congestion metrics, use shippingrates_congestion. For news detail, use shippingrates_congestion_news.
PAID: $0.10/call via x402 (USDC on Base or Solana). Without payment, returns 402 with payment instructions.
Returns: { origin, destination, risk_score, risk_level, congestion_factor, disruption_factor, chokepoints_affected[], recommendation }.
Parameters (3)
originstringrequired
Origin port UN/LOCODE — e.g. INNSA (Nhava Sheva), CNSHA (Shanghai), SGSIN (Singapore)
destinationstringrequired
Destination port UN/LOCODE — e.g. AEJEA (Jebel Ali), NLRTM (Rotterdam), USNYC (New York)
Ocean container shipping intelligence for AI agents — real carrier tariff data, detention & demurrage, freight rates, vessel schedules, and total landed cost across 6 major carriers.
ShippingRates gives AI agents access to structured, carrier-sourced data for container shipping decisions — D&D slab breakdowns, local port charges, inland haulage rates, freight rates, vessel schedules, port congestion, and full landed cost calculations.
Transit schedules with carrier service codes and frequency
rates
$0.03
Ocean spot freight rates with low/mid/high and trend
surcharges
$0.02
BAF, CAF, PSS surcharges by carrier
congestion
$0.02
Port congestion metrics and historical wait times
congestion_news
$0.02
Real-time shipping disruption news from 7 sources
reliability
$0.02
Schedule reliability (on-time %) by carrier
vessel_schedule
$0.02
Upcoming vessel calls at a port with ETA/ETD
regulatory
$0.01
Regulatory updates by country
total_cost
$0.15
Full landed cost: freight + surcharges + local charges + D&D
facilities
$0.02
India ICD/CFS facility directory
risk_score
$0.10
Composite route risk assessment (0–100 score)
Example: Calculate D&D for a shipment
code
What are the detention and demurrage charges for a 20ft dry container at Nhava Sheva
(INNSA) on Maersk if it's been 10 days over free time?
The dd_calculate tool returns a slab-by-slab breakdown with daily rates, total accrued, and free time details — sourced directly from Maersk's published tariff.
Payment
Paid tools use the x402 protocol — a standard for HTTP micropayments. When an agent calls a paid tool:
The server responds 402 Payment Required with a USDC payment details
The agent pays via Base Mainnet or Solana (USDC)
The agent retries with an X-PAYMENT header
Data is returned
Payment amounts range from $0.01 to $0.25 per call. No subscriptions, no API keys needed for basic access.
Free Tier
The API also offers a free tier: 25 API requests/month via api.shippingrates.org. Sign up at shippingrates.org.
Dashboard
Human-facing dashboard at app.shippingrates.org with D&D calculator, carrier comparator, inland routes explorer, vessel schedules, and rate calculator.