Skip to Content
TimeToCargo

Overview

Get an API key and retrieve your first tracking result

Retrieve container movement history using a container, bill of lading, or booking number with the TimeToCargo API.

Get an API key

Create a key in your account and include it in the api_key query parameter. You can sign up for a free trial in your account. To continue using the API, subscribe to a paid plan.

Send a tracking 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.

To detect the number type automatically, omit type in GET /v2/tracking or an item’s track_number.type in POST /v2/tracking/batch. company remains required. Explicit container, bl, and bk retain the requested search mode; null, an empty string, and AUTO are invalid type values. Automatic detection returns one selected result, rather than a list of alternatives.

GET https://tracking.timetocargo.com/v2/tracking?api_key=YOUR_TOKEN&company=AUTO&value=MSDU8368827
Accept: application/json

Handle the response

Check the HTTP status, followed by the success and status fields in the response. When status is "OK", data contains the tracking result. INFO_NOT_FOUND means the request was processed but no tracking data was found. See Errors for other statuses and how to handle them.

A single-number request returns its result in the same response. To track multiple numbers, create a task with POST /v2/tracking/batch, then retrieve its results with GET /v2/tracking/batch. See the batch tracking example.

Next steps

Start with the code examples, review authentication and limits, or set up webhooks to receive shipment updates. The API reference describes all operations and fields. You can also download the OpenAPI specification.

Moving from another provider? Choose a migration guide to map requests, responses, and webhooks.

Last updated on

On this page