Skip to Content
TimeToCargo

Authentication

API keys, request limits, and terms of use

Include a valid API key in the api_key query parameter. Get a key in your account.

Base URL for requests: https://tracking.timetocargo.com/v2.

By using the API you agree to the Terms of Service. Questions: info@timetocargo.com.

Limits

  • GET /v2/tracking and POST /v2/tracking/batch each allow up to 8 requests per minute per API key.
  • GET /v2/tracking/batch allows up to 3 requests per second and 30 per minute per API key.
  • POST /v2/tracking/batch accepts between 1 and 500 numbers per request.
  • Use a carrier SCAC code or company=AUTO for automatic carrier detection. Both options support containers, bills of lading, and bookings, with an explicit or omitted number type.

GET /v2/apikey returns API key details and tracking allowance:

  • updated_at is the key's issue or latest reissue date in UTC.
  • requests_remaining_count is the group's remaining credits, shared by API and account tracking.
  • requests_limit is the full allowance of the current plan, separate from HTTP request rate limits.
  • limits_reset_at is the scheduled quota update in UTC. It does not guarantee payment or renewal: plan changes, cancellation or unpaid renewal can change the conditions. Annual prepaid plans provide credits for the entire period without monthly replenishment.

A null remaining count means it could not be retrieved. A null limit means plan details are unavailable; a null date means no scheduled date or unavailable details. Zero means a known zero allowance.

Demo without registration

The public key aaaaaaaa-bbbb-4ccc-8ddd-eeeeeeeeeeee lets you try three methods without registration: single tracking (container, bill of lading, booking and automatic detection), GET /v2/companies and GET /v2/apikey. Enter it in the API key field on the reference page for the method. Requests use the normal parameter validation.

curl --get 'https://tracking.timetocargo.com/v2/tracking' \
  --data-urlencode 'api_key=aaaaaaaa-bbbb-4ccc-8ddd-eeeeeeeeeeee' \
  --data-urlencode 'company=COSU' \
  --data-urlencode 'type=container' \
  --data-urlencode 'value=CSQU3054383'

Demo responses include the X-Demo-Response: true header.

  • GET /v2/tracking returns the same sample response for any type, for testing your integration. The request field echoes the submitted parameters.
  • GET /v2/companies returns the current carrier list.
  • GET /v2/apikey returns zero for the allowance and remaining credits. limits_reset_at is null.

Demo requests do not create tracking records or consume credits. Other methods and API v1 require a regular key.

Demo single tracking and GET /v2/companies allow 60 requests per minute per IP for each operation. GET /v2/apikey allows 10 requests per second per IP. Visitors sharing an external address, including requests through the documentation, may share these limits.

Tracking number types

type valueTracking number
containerContainer number
blBill of lading number
bkBooking number

If the carrier is not listed, try company=AUTO with a container number. Some ocean carriers and railway operators share a data source, so different carriers may return the same tracking results.

Last updated on

On this page