# DPD Portugal Tracking API & MCP

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

Query live **DPD Portugal** (`dpdpt`) package status and scan history in a single synchronous `GET` request or MCP tool call.

## Overview & Quick Facts

| Property | Value |
|---|---|
| **Carrier slug (`?carrier=`)** | `dpdpt` |
| **Brand aliases** | DPD Portugal, DPD PT, tracking.dpd.pt |
| **Category** | Regional parcels (Portugal) |
| **Single-package REST endpoint** | `GET https://api.lastscanned.com/v1/track/{trackingNumber}` |
| **Batch REST endpoint** | `GET https://api.lastscanned.com/v1/track?numbers=...,...` |
| **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 |

14-digit DPD references are shared with other DPD countries, so pass `?carrier=dpdpt`.

## Synchronous `GET` Request & Normalized JSON Response

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

```json
{
  "carrier": "dpdpt",
  "trackingNumber": "09853970000000",
  "status": "delivered",
  "statusDescription": "PROVA DE ENTREGA",
  "service": null,
  "deliveredAt": null,
  "deliveredAtLocal": "2026-10-14T15:52:00",
  "signedBy": "Maria Silva",
  "destination": null,
  "message": null,
  "events": [
    {
      "timestamp": null,
      "localTime": "2026-10-14T15:52:00",
      "status": "delivered",
      "description": "PROVA DE ENTREGA",
      "location": null,
      "code": "POD"
    },
    {
      "timestamp": null,
      "localTime": "2026-10-13T09:32:00",
      "status": "out_for_delivery",
      "description": "EM DISTRIBUIÇÃO",
      "location": null,
      "code": "OFD"
    }
  ]
}
```

## Notes

- **Language**: descriptions are DPD Portugal's Portuguese wording; `code` is DPD's scan code (`POD` proof of delivery, `OFD` out for delivery, `HUB`, `PEC`, `COL`, ...).
- **Pickup points**: scans `001` and `002` (delivered to a pickup point) are `exception`: the parcel waits for the recipient.
- **Time zone**: the page prints scan times with no zone, so `localTime` is that clock time and `timestamp` is `null`.

## Related Resources

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