# DHL Parcel Spain & Portugal Tracking API & MCP

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

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

`dhlparceles` covers DHL Parcel Iberia's parcels, including pickup at a DHL ServicePoint.

**Source**: Plain `GET https://clientesparcel.dhl.es/LiveTracking.GTW/api/shipment-detail?number={number}`, no key needed. An unknown number is an empty 204.

## Overview & Quick Facts

| Property | Value |
|---|---|
| **Carrier slug (`?carrier=`)** | `dhlparceles` |
| **Brand aliases** | DHL Parcel Spain, DHL Parcel Portugal, DHL Parcel Iberia, DHL Paquete, ServicePoint |
| **Category** | International parcels |
| **Single-package REST endpoint** | `GET https://api.lastscanned.com/v1/track/{trackingNumber}?carrier=dhlparceles` |
| **Batch REST endpoint** | `GET https://api.lastscanned.com/v1/track?numbers=...,...&carrier=dhlparceles` |
| **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 |

The 10-digit DHL Parcel number (`5000000000` style) is not distinguishable from other 10-digit numbers, so pass `?carrier=dhlparceles`. It also answers references that ride the network, such as `CC…DE` pieces that [DHL](/docs/carriers/dhl) auto-detects.

## Synchronous `GET` Request & Normalized JSON Response

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

```json
{
  "carrier": "dhlparceles",
  "trackingNumber": "5000000001",
  "status": "delivered",
  "statusDescription": "Parcel picked up by recipient",
  "service": "DHL PARCEL IBERIA",
  "deliveredAt": null,
  "deliveredAtLocal": "2026-08-18T16:46:00",
  "signedBy": null,
  "destination": null,
  "events": [
    {
      "timestamp": null,
      "localTime": "2026-08-18T16:46:00",
      "status": "delivered",
      "description": "Parcel picked up by recipient",
      "location": "Bizkaia",
      "code": "RS"
    },
    {
      "timestamp": null,
      "localTime": "2026-08-18T15:58:00",
      "status": "exception",
      "description": "Delivered to DHL ServicePoint, ready for collection by the recipient",
      "location": "Bizkaia",
      "code": "IS"
    },
    {
      "timestamp": null,
      "localTime": "2026-08-18T09:28:00",
      "status": "out_for_delivery",
      "description": "Out for delivery",
      "location": "Bizkaia",
      "code": "A"
    }
  ]
}
```

## Notes

- **Time zone**: scan times are the depot's wall clock and the network spans Spain and Portugal, so only `localTime` is set.
- **Wording**: scan descriptions are English (the request is sent with an English `Accept-Language`); `code` is DHL's event code (`RS` collected, `IS` ready for collection, `A` out for delivery, `NH` recipient absent).

## Related Resources

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