› compliance_grid.aiCOMPLIANCEGRIDGOV · COMPLIANCE · INTELLIGENCE
Freight Risk Scoring

Get public-data benchmark bands for a lane and HS code

GET/benchmarks/{lane}/{hs}$0.05 per call

Returns the percentile bands for one lane and HS code, with no shipment and no score. Served from public-domain data (U.S. Census) whatever the caller's plan. The destination must be a U.S. port or US. Resolution falls back from customs district to country, region and HS4, and the response says which level it used and how confident it is.

Parameters

NameInTypeDescription
lanerequiredpathstringLane key `{origin}-{destination}-{mode}`, e.g. CNSHA-USLAX-ocean_container or CN-US-air.
hsrequiredpathstringHS code, 4–10 digits. 8–10 digits are truncated to 6 (reason Q03).
measuresoptionalquerystringComma-separated subset of measures. Default all.
windowoptionalquerystringBenchmark window. Only 24m is built in this release; 12m and 36m return 422 `unsupported_window`. one of "12m", "24m", "36m" · default "24m"
as_ofoptionalquerystringReturn the benchmark version current on this date (audit replay). format date
resolutionoptionalquerystringone of "auto", "exact" · default "auto"

Response fields

FieldTypeDescription
idstring
lane_requestedstring
lane_usedstringThe lane the benchmark was built for. A district benchmark is written CN-US:27-ocean_container.
hs_usedstring
resolutionstring
windowobject
window.fromstring
window.tostring
as_ofstring
confidencestring
sourcesarray of string
districtobjectPresent when the benchmark is at customs-district level: the U.S. Customs district of unlading.
district.codestring
district.namestring or null
cellsobjectThe data behind the bands.
cells.n_cellsinteger
cells.weight_kg_coverednumber
next_refreshstring
objectstring
hs_descriptionstring
source_tierstring
measuresobject

Fields are read from a real response captured 2026-11-04. Optional fields may be absent in other responses.

Errors

  • 400 invalid request
  • 401 missing or bad key
  • 403 not in your plan
  • 429 rate limited, see Retry-After
  • 402 payment required
  • 404 not found
  • 500 server error, retry with backoff
  • 503 temporarily unavailable
  • 5xx retry with backoff

This endpoint reports errors as RFC 9457 problem details (application/problem+json) with a stable code and a request_id.