# ZR Express Tracking API & MCP

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

Query live **ZR Express** (`zrexpress`) package status and scan history in a single synchronous `GET` request or MCP tool call.

## Overview & Quick Facts

| Property | Value |
|---|---|
| **Carrier slug (`?carrier=`)** | `zrexpress` |
| **Brand aliases** | ZR, ZR Express Algérie, ZRexpress, Zimou Relais |
| **Category** | Algerian domestic courier |
| **Region** | Algeria |
| **Single-package REST endpoint** | `GET https://api.lastscanned.com/v1/track/{trackingNumber}` |
| **Batch REST endpoint** | `GET https://api.lastscanned.com/v1/track?numbers=16-ABCDE12345-ZR,...` |
| **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`)** | `/^\d{1,2}-[A-Z0-9]{10}-ZR$/` | none | `16-ABCDE12345-ZR` |
| **Pass 2 (`mayMatch`)** | none | none | none |

A wilaya number, ten letters or digits and `ZR` belongs to ZR Express alone, so `?carrier=zrexpress` is optional. The dashes are part of the number.

## Synchronous `GET` Request & Normalized JSON Response

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

```json
{
  "carrier": "zrexpress",
  "trackingNumber": "16-ABCDE12345-ZR",
  "status": "delivered",
  "statusDescription": "Encaissé",
  "service": null,
  "deliveredAt": "2026-08-07T16:49:57Z",
  "deliveredAtLocal": "2026-08-07T16:49:57",
  "signedBy": null,
  "destination": {
    "city": null,
    "state": null,
    "country": "DZ"
  },
  "events": [
    {
      "timestamp": "2026-08-07T16:49:57Z",
      "localTime": "2026-08-07T16:49:57",
      "status": "delivered",
      "description": "Encaissé",
      "location": null,
      "code": "encaisse"
    },
    {
      "timestamp": "2026-08-06T19:34:46Z",
      "localTime": "2026-08-06T19:34:46",
      "status": "delivered",
      "description": "Livré",
      "location": "Hub Alger 16",
      "code": "livre"
    },
    {
      "timestamp": "2026-08-06T16:43:00Z",
      "localTime": "2026-08-06T16:43:00",
      "status": "out_for_delivery",
      "description": "Sortie en livraison",
      "location": null,
      "code": "sortie_en_livraison"
    },
    {
      "timestamp": "2026-08-05T15:27:34Z",
      "localTime": "2026-08-05T15:27:34",
      "status": "in_transit",
      "description": "Confirmé au bureau",
      "location": "Hub Blida 09",
      "code": "confirme_au_bureau"
    }
  ]
}
```

## Notes

- **Source**: the site is a Next.js app; a GET with `RSC: 1` returns its React flight payload, and the scan elements are read from it. If a deploy changes that payload's shape the lookup fails (`carrier_error`) rather than reporting `not_found`.
- **Language**: the wording is French (hub names may be Arabic) and is kept as sent.
- **Time zone**: the scan's UTC time is in the element key; the printed clock time is the same UTC time.

## Related Resources

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