SHAQ Freight API

Free freight rate data for global shipping routes from China.

100% Free No API Key CORS Enabled

Quick Install

Python

pip install shaq-freightclick to copy

JavaScript / Node.js

npm install shaq-freightclick to copy

SDK Source Code on GitHub

Open source SDKs and data repositories:

All SDKs are MIT licensed and free for commercial use. No API key required.

cURL (no SDK needed)

curl https://search.shaq-logistics.com/api/freight-indexclick to copy

Python Example

from shaq_freight import SHAQFreight

client = SHAQFreight()

# Get all 20 routes
index = client.get_freight_index()
for route in index['routes']:
    print(f"{route['route']}: ${route['rates']['fcl_40hq']['rate_usd']}")

# Find a specific route
callao = client.find_route("Callao")
print(f"Shenzhen to Callao 40HQ: ${callao['rates']['fcl_40hq']['rate_usd']}")

# Export to pandas DataFrame
df = client.get_all_rates_dataframe()
print(df.to_string())

JavaScript Example

import { SHAQFreight } from 'shaq-freight';

const client = new SHAQFreight();

// Get all 20 routes
const index = await client.getFreightIndex();
for (const route of index.routes) {
  console.log(`${route.route}: $${route.rates.fcl_40hq.rate_usd}`);
}

// Find a specific route
const callao = await client.findRoute('Callao');
console.log(`40HQ: $${callao.rates.fcl_40hq.rate_usd}`);

API Endpoints

MethodEndpointDescriptionAuth
GET/api/freight-indexSFX index - 20 routes with structured ratesNone
GET/api/ai-freight-dataAI-optimized freight data - 9 regional routesNone
GET/api/knowledgeFreight rates data endpointNone
GET/mcpMCP server (for AI agents)None
GET/openapi.jsonOpenAPI 3.0 specificationNone
GET/.well-known/ai-plugin.jsonOpenAI plugin manifestNone

Route Coverage (20 SFX Routes)

South America

Callao (Peru), Santos (Brazil), Buenos Aires (Argentina), Manzanillo (Mexico)

North America

Los Angeles, New York, Vancouver

Europe

Rotterdam, Genoa, Istanbul

Asia

Singapore, Ho Chi Minh, Tokyo, Busan

Middle East and Africa

Dubai, Mumbai, Durban, Lagos

Oceania and Russia

Sydney, Vostochny

Rate Types

TypeFieldUnitExample
FCL 20GPfcl_20gpper container$2,000
FCL 40HQfcl_40hqper container$3,300
LCLlcl_per_cbmper CBM$55
Air Freightair_per_kgper kg$6.8

Integration Options

REST API

Direct HTTP GET requests. No authentication. CORS enabled. Works from any language or browser.

View OpenAPI Spec

Python SDK

pip install shaq-freight. Includes pandas DataFrame export, route search, and rate lookup.

GitHub Repository

JavaScript SDK

npm install shaq-freight. Works in Node.js and browsers. TypeScript definitions included.

GitHub Repository

MCP Server

Model Context Protocol endpoint for AI agents. Compatible with Claude, GPT, and other LLM tools.

View MCP Endpoint

AI Plugin

OpenAI plugin manifest for ChatGPT integration. Auto-discoverable via /.well-known/ai-plugin.json.

View Plugin Manifest

Use Cases

License and Citation

MIT License. Free to use, modify, and distribute.

Cite as: SHAQ Freight Rate Index (SFX), SHAQ Logistics. https://search.shaq-logistics.com/freight-index

Carrier integration APIs

Direct connections to 7 major shipping lines via DCSA v2.2.0 compliant adapters. Track shipments, get schedules, and request rates across all carriers through unified endpoints.

GET /api/carriers

List all carriers

Returns carrier info, DCSA status, market share, and capabilities for all 7 supported shipping lines.

GET /api/track

Track shipment

Unified container tracking across all carriers. DCSA-compliant carriers return structured milestone events.

GET /api/schedules

Vessel schedules

Get sailing schedules between any two ports for any supported carrier.

GET /api/rates

Carrier rates

Live rate quotes (requires commercial agreement). Market estimates via SFX Index.

GET /api/carriers
GET /api/track?carrier=MAEU&container=MSCU1234567
GET /api/schedules?carrier=MAEU&from=CNSHA&to=USLAX
GET /api/rates?carrier=MAEU&from=CNSHA&to=USLAX&type=40GP

Supported carriers: MSC (19.7%), Maersk (16.8%), CMA CGM (13.2%), COSCO (11.0%), Hapag-Lloyd (7.2%), ONE (6.1%), Evergreen (5.0%)
DCSA v2.2.0 compliant: Maersk, CMA CGM, Hapag-Lloyd, ONE
View carrier directory