GETAPI key
Lane rate history
GETapi.freightratesmcp.com/lane/history
Daily rate history for a lane, oldest to newest, for a trend line.
Query parameters
pol
Port of loading UN/LOCODE.
pod
Port of discharge UN/LOCODE.
Response fields
Derived from the example response.
data
The payload. Everything an endpoint returns sits under this key.
data[].day
Date of the observation (ISO 8601).
data[].rate_usd
Rate in USD.
curl 'https://api.freightratesmcp.com/lane/history?pol=CNSHA&pod=NLRTM' \
-H "Authorization: Bearer tmcp_YOUR_API_KEY"const res = await fetch("https://api.freightratesmcp.com/lane/history?pol=CNSHA&pod=NLRTM", {
headers: {
"Authorization": "Bearer tmcp_YOUR_API_KEY"
}
});
const data = await res.json();import requests
res = requests.get(
"https://api.freightratesmcp.com/lane/history?pol=CNSHA&pod=NLRTM",
headers={"Authorization": "Bearer tmcp_YOUR_API_KEY"},
)
data = res.json() Response
{
"data": [
{ "day": "2026-07-28", "rate_usd": 3260 },
{ "day": "2026-07-29", "rate_usd": 3210 }
]
}