# DHL Freight Tracking API & MCP

URL: https://docs.lastscanned.com/carriers/dhlfreight

Query live **DHL Freight** (`dhlfreight`) package status and scan history in a single synchronous `GET` request or MCP tool call.

`dhlfreight` covers DHL Freight Europe's road freight consignments on ActiveTracing, such as pallets and groupage.

**Source**: Plain `GET https://activetracing.dhl.com/DatPublic/datSelection.do?search=consignmentId&a={number}` (server-rendered HTML), no key needed.

## Overview & Quick Facts

| Property | Value |
|---|---|
| **Carrier slug (`?carrier=`)** | `dhlfreight` |
| **Brand aliases** | DHL Freight, DHL ActiveTracing, DHL Road Freight, DHL Euroconnect |
| **Category** | International freight |
| **Single-package REST endpoint** | `GET https://api.lastscanned.com/v1/track/{trackingNumber}?carrier=dhlfreight` |
| **Batch REST endpoint** | `GET https://api.lastscanned.com/v1/track?numbers=...,...&carrier=dhlfreight` |
| **MCP server (`https://mcp.lastscanned.com`)** | `track_package`, `track_packages`, `list_carriers` |
| **Authentication & pricing** | `Authorization: Bearer lsk_live_...` · 1 free keyless lookup/day per IP |

## Tracking Number Formats & Auto-Detection

| Pass | Rule / Regex | Check Digit | Examples |
|---|---|---|---|
| **Pass 1 (`matches`)** | none | none | none |
| **Pass 2 (`mayMatch`)** | none | none | none |

Consignment numbers are 11 digits and overlap other carriers' formats, so pass `?carrier=dhlfreight`.

## Synchronous `GET` Request & Normalized JSON Response

```bash
curl -s "https://api.lastscanned.com/v1/track/00012345678?carrier=dhlfreight" \
  -H "Authorization: Bearer $LASTSCANNED_API_KEY"
```

```json
{
  "carrier": "dhlfreight",
  "trackingNumber": "00012345678",
  "status": "in_transit",
  "statusDescription": "Out for Collection",
  "service": "DHL Road Freight Standard",
  "deliveredAt": null,
  "deliveredAtLocal": null,
  "signedBy": null,
  "destination": null,
  "events": [
    {
      "timestamp": null,
      "localTime": "2026-06-02T06:29:00",
      "status": "in_transit",
      "description": "Out for Collection",
      "location": "DE-WEIßENHORN",
      "code": null
    },
    {
      "timestamp": null,
      "localTime": "2026-06-02",
      "status": "label_created",
      "description": "Consignment created",
      "location": "DE-WEIßENHORN",
      "code": null
    }
  ]
}
```

## Notes

- **Time zone**: terminals are across Europe and the page gives local clock times only, so `localTime` is set and `timestamp` is `null`. A scan with no time of day has a date-only `localTime`.
- **Detail**: `service` is the freight product (for example `DHL Road Freight Standard`).

## Related Resources

- **Regex & check digits**: [Tracking number formats & auto-detection](/formats)
