# BlueEX Tracking API & MCP

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

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

## Overview & Quick Facts

| Property | Value |
|---|---|
| **Carrier slug (`?carrier=`)** | `blueex` |
| **Brand aliases** | BlueEX, Blue-EX, Blue EX, blue-ex.com |
| **Category** | Pakistani courier |
| **Single-package REST endpoint** | `GET https://api.lastscanned.com/v1/track/{trackingNumber}` |
| **Batch REST endpoint** | `GET https://api.lastscanned.com/v1/track?numbers=5036410022,5036410022` |
| **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`)** | `/^CP\d{12}$/` | none | `5036410022` |

BlueEX's 10-digit consignment numbers (starting 4, 5 or 6) are shared with other carriers: pass `?carrier=blueex`. The `CP…` form is only a loose fallback.

## Synchronous `GET` Request & Normalized JSON Response

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

```json
{
  "carrier": "blueex",
  "trackingNumber": "5036410022",
  "status": "delivered",
  "statusDescription": "Delivered to Customer",
  "service": null,
  "deliveredAt": "2026-01-23T09:25:00Z",
  "deliveredAtLocal": "2026-01-23T14:25:00",
  "signedBy": null,
  "destination": null,
  "events": [
    {
      "timestamp": "2026-01-23T09:25:00Z",
      "localTime": "2026-01-23T14:25:00",
      "status": "delivered",
      "description": "Delivered to Customer",
      "location": null,
      "code": null
    },
    {
      "timestamp": "2026-01-17T00:59:00Z",
      "localTime": "2026-01-17T05:59:00",
      "status": "out_for_delivery",
      "description": "Out For Delivery",
      "location": null,
      "code": null
    },
    {
      "timestamp": "2026-01-12T10:57:00Z",
      "localTime": "2026-01-12T15:57:00",
      "status": "in_transit",
      "description": "Shipment has reached blueEX Lahore Operations - Lahore",
      "location": "Lahore",
      "code": null
    },
    {
      "timestamp": "2026-01-04T10:04:00Z",
      "localTime": "2026-01-04T15:04:00",
      "status": "label_created",
      "description": "Order information received, pending at Shipper's end.",
      "location": null,
      "code": null
    }
  ]
}
```

## Notes

- **Route**: the `trackall.php` fragment that `blue-ex.com`'s tracking box loads, read as HTML. No account.
- **Time zone**: Pakistan time (`Asia/Karachi`, UTC+5, no DST).
- **Location**: taken from "Shipment reached … - City" scans; other scans carry none.

## Related Resources

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