# PostNL Tracking API & MCP

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

Query live **PostNL** (`postnl`) package status and scan history in a single synchronous `GET` request or MCP tool call. `lastscanned` auto-detects `3S` barcodes and UPU S10 numbers ending `NL`.

## Overview & Quick Facts

| Property | Value |
|---|---|
| **Carrier slug (`?carrier=`)** | `postnl` |
| **Brand & service aliases** | PostNL, TNT Post, jouw.postnl.nl Track & Trace |
| **Single-package REST endpoint** | `GET https://api.lastscanned.com/v1/track/{trackingNumber}` |
| **Batch REST endpoint** | `GET https://api.lastscanned.com/v1/track?numbers=NUMBER1,NUMBER2` |
| **MCP server (`https://mcp.lastscanned.com`)** | `track_package`, `track_packages`, `list_carriers` (`claude mcp add --transport http lastscanned https://mcp.lastscanned.com`) |
| **Authentication & pricing** | `Authorization: Bearer lsk_live_...` · **1 free keyless lookup/day per IP** · **Free tier** (5 unique numbers/day, $0) · **Pro** ($4.99/mo for 1,000 unique numbers, unlimited re-polls, $0.015/extra) · **HTTP 402 Stripe MPP** ($0.50 for 25-number `lsk_pack_` key or $0.02/number in USDC on Tempo) |

## Tracking Number Formats & Auto-Detection

| Pass | Rule | Check Digit | Examples |
|---|---|---|---|
| **Pass 1 (`matches`) — PostNL barcode** | `3S` + 4 letters + 7 to 9 digits | — | `3SABCD1234567` |
| **Pass 1 (`matches`) — UPU S10** | 2 letters, 9 digits, `NL` | UPU S10 mod-11 | `RR123456785NL` |
| **Pass 2 (`mayMatch`)** | *None* | — | — |

## Synchronous `GET` Request & Normalized JSON Response

### `curl`

```bash
curl -s "https://api.lastscanned.com/v1/track/3SABCD1234567" \
  -H "Authorization: Bearer $LASTSCANNED_API_KEY"
```

### JavaScript / TypeScript (`fetch`)

```ts
const res = await fetch("https://api.lastscanned.com/v1/track/3SABCD1234567", {
  headers: { Authorization: `Bearer ${process.env.LASTSCANNED_API_KEY}` },
});
const pkg = await res.json();
console.log(pkg.status, pkg.events[0]);
```

### MCP `track_package` tool call

```json
{
  "tool": "track_package",
  "arguments": {
    "tracking_number": "3SABCD1234567"
  }
}
```

### Normalized `TrackingResult` JSON response

```json
{
  "carrier": "postnl",
  "trackingNumber": "3SABCD1234567",
  "status": "in_transit",
  "statusDescription": "Parcel is being sorted",
  "service": null,
  "deliveredAt": null,
  "deliveredAtLocal": null,
  "signedBy": null,
  "destination": { "city": null, "state": null, "country": "NL" },
  "events": [
    {
      "timestamp": "2026-10-24T11:20:00Z",
      "localTime": "2026-10-24T13:20:00",
      "status": "in_transit",
      "description": "Parcel is being sorted",
      "location": null,
      "code": null
    }
  ]
}
```

## Notes

- The lookup uses the barcode with `NL` and no recipient postcode, which is what PostNL accepts without one; some parcels show fewer details that way.
- A barcode PostNL has no record of comes back as `not_found`.

## Related Resources

- **Carrier hub**: [All supported carriers](/carriers)
- **Regex & check digits**: [Tracking number formats & auto-detection](/formats)
- **AI support workflows**: [WISMO AI agents & synchronous tracking](/wismo)
