Developer Reference

TForce Freight

291 service centers across the US, Canada, and Mexico. Search by state, ZIP, or terminal code. Includes timezone and mailing address data.

GET /api/tforce-location?state=:state&zip=:zip&country=:country

TForce Location by State or ZIP

Look up TForce Freight service centers by state code or ZIP code. Covers US, Canada, and Mexico. Returns terminal details including timezone and mailing address.

Query Parameters

Parameter Type Description
state optional string State/province code (e.g., GA, PQ, JA). Required if zip not provided.
zip optional string ZIP/postal code. Takes priority over state if both provided.
country optional string Filter by country: US, CA, or MX

Response Fields

Field Type Description
locations[].alphaCode string Terminal code (e.g., ATL)
locations[].terminalName string Terminal name
locations[].address object Physical address with street, city, state, zip, country
locations[].contact object Phone and fax
locations[].timezone string Timezone (Eastern, Central, Pacific, Mountain)
locations[].mailingAddress object Mailing address (may differ from physical)

Code Examples

curl "https://freightapis.dev/api/tforce-location?state=GA" \
  -H "Authorization: Bearer nmfc_live_xxxxxxxxxxxxxxxxxxxx"

Full-text search across terminal names, cities, addresses, and alpha codes across all three countries. Paginated.

Query Parameters

Parameter Type Description
q required string Search query (min 2 characters)
page optional integer Page number (default: 1)

Code Examples

curl "https://freightapis.dev/api/tforce-location/search?q=montreal" \
  -H "Authorization: Bearer nmfc_live_xxxxxxxxxxxxxxxxxxxx"
GET /api/tforce-location/terminal/:code

Terminal by Alpha Code

Look up TForce service center(s) by alpha code. A code may exist in multiple countries.

Path Parameters

Parameter Type Description
code required string Terminal alpha code (e.g., ATL, MTL)

Code Examples

curl "https://freightapis.dev/api/tforce-location/terminal/ATL" \
  -H "Authorization: Bearer nmfc_live_xxxxxxxxxxxxxxxxxxxx"
GET /api/tforce-location/coverage

TForce Coverage Statistics

Returns aggregate statistics: total service centers, breakdown by country and state/province.

Code Examples

curl "https://freightapis.dev/api/tforce-location/coverage" \
  -H "Authorization: Bearer nmfc_live_xxxxxxxxxxxxxxxxxxxx"
POST /api/tforce-location/batch

Batch State Lookup

Retrieve service centers for multiple states in a single request. Maximum 10 states per call.

Request Body

Parameter Type Description
states required string[] Array of state/province codes (max 10)

Code Examples

curl -X POST "https://freightapis.dev/api/tforce-location/batch" \
  -H "Authorization: Bearer nmfc_live_xxxxxxxxxxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{"states": ["GA", "TX", "PQ"]}'