Vetted carriers · Instant quotes · No brokers | 📞 855-564-4788 | ★ 5.0 · Google reviews | Verify Us | Sign In
Stretch XL Freight Get a Quote
Developer Docs · Live Freight Data API

Live Freight Lane Rates API

Real loads from multiple top freight data sources — aggregated every 3 minutes, queryable by exact origin/dest city+state. Built for TMS, freight analytics, broker dashboards, and automation.

Sign in / Sign up → See pricing

Already have a key? Sign in to see usage, manage add-ons, and rotate signing secrets.

Pricing

Free
$0 forever
  • 100 calls/day
  • 3,000 calls/month
  • All endpoints
  • Community support
Get free key
Pro
$99 /month
  • 5,000 calls/day
  • 50,000 calls/month
  • All endpoints
  • Priority email support
Start Pro
Enterprise
Custom
  • Unlimited calls
  • SLA + dedicated support
  • Custom integrations
  • Direct shipper-load feed
Contact sales

How to use your API key — header, first request, curl, JavaScript, Python, quotas, errors, and how to regenerate.

How signup works

Email us with the tier + your contact info. We issue your key within 1 business day and email it directly. Self-serve dashboard ships Q3 2026.

Get an API key

Endpoints

Live lane rates

POST https://stretchxlfreight.com/api/?endpoint=api/lane_rates
GET https://stretchxlfreight.com/api/?endpoint=api/lane_rates&...

Returns aggregated live rate stats for a specific origin → destination lane and optional equipment. Backed by real loads pulled from multiple top freight data sources within the last 24 hours (median + low + high + $/mile + sample count). Paid responses also include plan, quota_remaining_today and quota_remaining_month. For official FHWA corridor tonnage / ton-miles / value, use api/lane_flow (separate endpoint, local FAF5.7.1 index — no board scrape).

FHWA Freight Statistics LIVE · FAF5.7.1 local index

POST https://stretchxlfreight.com/api/?endpoint=api/lane_flow
GET https://stretchxlfreight.com/api/?endpoint=api/lane_flow&...

Official US freight movement reference data from FHWA's Freight Analysis Framework (FAF5.7.1, 2024 base year, truck mode), served from a local precomputed index on our servers — no Truckstop scrape. Returns annual tonnage, ton-miles, dollar value, and corridor rank for matching top corridors (16,714 truck OD pairs indexed from local FAF5.7.1 — no board scrape). Requires the faf_stats entitlement (+$5/mo on Free/Starter; included on Pro) plus the same API key quotas as api/lane_rates. This is annual FHWA corridor volume (tons / ton-miles / value) — not a daily spot rate. For daily lane rates use api/lane_rates.

Authentication

X-API-Key: sxlf_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Send the key in the X-API-Key header only. Query-string keys are not accepted. New to the API? Start with How to use your API key.

Parameters

NameTypeRequiredExampleNotes
origin_citystringYesAtlantaCase-insensitive match.
origin_statestringYesGA2-letter USPS code.
dest_citystringYesMiamiCase-insensitive match.
dest_statestringYesFL2-letter USPS code.
equipmentstringNovanvan, reefer, flatbed, step_deck, hotshot, power_only. Omit for any.

Example: curl

curl -X POST 'https://stretchxlfreight.com/stretch-crm/api/?endpoint=api/lane_rates' \
 -H 'X-API-Key: sxlf_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
 -H 'Content-Type: application/json' \
 -d '{
 "origin_city": "Atlanta",
 "origin_state": "GA",
 "dest_city": "Miami",
 "dest_state": "FL",
 "equipment": "van"
 }'

Example: Node.js (fetch)

const res = await fetch(
 'https://stretchxlfreight.com/stretch-crm/api/?endpoint=api/lane_rates',
 {
 method: 'POST',
 headers: {
 'X-API-Key': process.env.SXLF_API_KEY,
 'Content-Type': 'application/json',
 },
 body: JSON.stringify({
 origin_city: 'Atlanta',
 origin_state: 'GA',
 dest_city: 'Miami',
 dest_state: 'FL',
 equipment: 'van',
 }),
 }
);
const { success, data } = await res.json();
if (!success) throw new Error(data || 'lookup failed');
console.log(`Median rate: $${data.rate.median} | ${data.samples} samples`);

Example: Python (requests)

import os, requests
r = requests.post(
 'https://stretchxlfreight.com/stretch-crm/api/?endpoint=api/lane_rates',
 headers={'X-API-Key': os.environ['SXLF_API_KEY']},
 json={
 'origin_city': 'Atlanta',
 'origin_state': 'GA',
 'dest_city': 'Miami',
 'dest_state': 'FL',
 'equipment': 'van',
 },
 timeout=10,
)
d = r.json()['data']
print(f"Median rate: ${d['rate']['median']} ({d['samples']} samples)")

Response shape

{
 "success": true,
 "data": {
 "lane": {
 "origin": "Mount Gilead, NC",
 "destination": "Enfield, CT",
 "equipment": "any"
 },
 "samples": 48,
 "sources_count": 1,
 "rate": { "median": 3450, "low": 3200, "high": 3450 },
 "per_mile": { "median": 4.62, "low": 4.29, "high": 4.62 },
 "distance_avg": 747,
 "data_freshness": {
 "newest_load": "2026-05-29T20:30:31+00:00",
 "cache_fetched": "2026-06-01 01:15:24"
 },
 "is_estimate": false,

 "tier": "pro",
 "quota": {
 "daily_quota": 5000,
 "daily_used": 47,
 "daily_remaining": 4953,
 "monthly_quota": 50000,
 "monthly_used": 218,
 "monthly_remaining": 49782
 },
 "fetched_at": "2026-06-01T05:18:22+00:00"
 }
}

Empty-lane fallback: when no live loads matched the lane in the last 24h, we return "is_estimate": true and surface the national per-mile bucket for the equipment type with "rate": null (per-mile only). You can detect this and surface "Estimated" to your users.

FHWA corridor stats: use api/lane_flow for official FAF5.7.1 tonnage / ton-miles / value on indexed top corridors. That data is not embedded inside api/lane_rates responses.

Error responses

{ "success": false, "message": "Invalid API key", "data": null } // 401
{ "success": false, "message": "FHWA Freight Stats add-on required. Enable faf_stats on this key (+$5/mo Free/Starter) or upgrade to Pro. See /developers/ or /dev/dashboard", "data": null } // 403 (api/lane_flow only)
{ "success": false, "message": "Daily quota of 100 exceeded for plan 'free'. Upgrade at /developers/", "data": null } // 429
{ "success": false, "message": "Need origin_city, origin_state, dest_city, dest_state", "data": null } // 400

Use cases

Security & encryption

Data at rest is encrypted with Dark Envelope (darkenvelope.io). Every API key's owner contact details, internal notes, and HMAC signing secret are sealed in an AES-256-GCM envelope (32-byte per-key DEK wrapped by the master KEK, IV + authentication tag per payload). Plaintext PII never persists in our database — even with full DB read access, an attacker only sees ciphertext. The KEK lives in our infrastructure secret store; we can rotate it without re-issuing keys. Dark Envelope is an open envelope-encryption specification developed by the Stretch XL team; the format is compatible across PHP and Node.js so cross-service decryption stays clean as we add new backend stacks.

Network: TLS 1.3 only. All requests must hit https://stretchxlfreight.com. Plain HTTP returns 301. We require modern cipher suites (no SSLv3, no TLS 1.0/1.1, no CBC).

Keys are SHA-256 hashed. Your raw sxlf_live_xxx key is shown ONCE at issuance and never stored — only the SHA-256 hash. Lost it? Issue a new one; the old one stays revoked.

Optional: HMAC request signing (Pro / Enterprise)

For sensitive integrations, enable per-key HMAC signing in the admin portal. Each request must include three additional headers signed with a per-key secret. Replay attacks rejected via timestamp window (±300s) + nonce cache (10 min). Even if an attacker captures your API key in transit, they cannot forge a request without the signing secret. Default OFF; Enterprise customers can require it.

Request signing protocol

# 1. Build the canonical request string
ts=$(date +%s)
nonce=$(openssl rand -hex 16)
method="GET"
path="/api/?endpoint=api/lane_rates&origin_city=Phoenix&origin_state=AZ&dest_city=Dallas&dest_state=TX&equipment=van"
body=""
body_sha256=$(echo -n "$body" | sha256sum | cut -d' ' -f1)
canonical="$ts\n$nonce\n$method\n$path\n$body_sha256"

# 2. Sign with HMAC-SHA256, base64-encode
sig=$(printf "$canonical" | openssl dgst -binary -sha256 -hmac "$SXLF_SIGNING_SECRET" | base64)

# 3. Add headers
curl -H "X-API-Key: ${SXLF_API_KEY}"           \
     -H "X-SXLF-Timestamp: $ts"                 \
     -H "X-SXLF-Nonce: $nonce"                  \
     -H "X-SXLF-Signature: $sig"                \
     "https://stretchxlfreight.com${path}"

Signature validation: the server rejects requests where the timestamp is outside ±300s, the nonce was seen in the last 10 minutes for this key, or the HMAC doesn't match. All three failures return 401.

Rate limits + quotas

Three layers of throttling, all enforced independently:

PlanDaily quotaMonthly quotaBurst per secondBurst per minuteAdd-ons available
Free100/day3,000/month1 req/s30 req/minFHWA Stats add-on +$5/mo (faf_stats)
Starter $29/mo500/day5,000/month5 req/s100 req/minFHWA Stats add-on +$5/mo (faf_stats)
Pro $99/mo5,000/day50,000/month20 req/s500 req/minFHWA Stats included, HMAC signing available
Enterprise custom∞∞200 req/s5,000 req/minEverything + dedicated support + HMAC required

Quotas reset:

When you hit any limit you'll get HTTP 429 with a Retry-After header indicating how long to wait. Burst limits exist to prevent runaway scripts from burning your daily quota in 60 seconds — they're not designed to be hit by normal integrations.

Data sources + freshness

Daily lane rates (api/lane_rates) come from our multi-source loadboard cache (warmer + hourly scrapers). FHWA FAF (api/lane_flow) is official annual corridor volume — BTS/FHWA publish new FAF versions roughly 1–2× per year, not daily. We probe ORNL daily for new releases and rebuild the local index when upstream changes.

We aggregate loads from multiple top freight data sources, plus Stretch XL Freight's own direct shipper-load feed. Our load-board warmer pulls fresh data every 3 minutes. Each load is filtered to the requested lane (exact origin city/state → destination city/state match) and the last 24 hours.

data.data_freshness.newest_load is the timestamp of the freshest load in the match set. data.data_freshness.cache_fetched is when we last hit upstream.

Terms

By using this API you agree to the terms of service. Data is provided as-is for informational and analytical use. Do not redistribute raw load detail (broker contact info, exact load IDs) without an Enterprise license.

Stretch XL Freight LLC · FMCSA-licensed · USDOT #4409725 · MC #01732149 · Easley, SC