# Lightning Express Tracking API & MCP

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

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

## Overview & Quick Facts

| Property | Value |
|---|---|
| **Carrier slug (`?carrier=`)** | `lightningexpress` |
| **Brand aliases** | Lightning Express, Lightning Express CA, lightningexpressca.com |
| **Category** | Canadian parcel delivery (Lightning Express CA) |
| **Single-package REST endpoint** | `GET https://api.lastscanned.com/v1/track/{trackingNumber}` |
| **Batch REST endpoint** | `GET https://api.lastscanned.com/v1/track?numbers=YYZ123202601011234,...` |
| **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`)** | `/^[A-Z]{3}\d{3}20\d{2}[01]\d[0-3]\d\d{4}$/` (spaces optional) | none | `YYZ123 20260101 1234` |
| **Pass 2 (`mayMatch`)** | none | none | none |

The region + creation date + sequence shape belongs to Lightning Express alone, with or without the spaces.

## Synchronous `GET` Request & Normalized JSON Response

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

```json
{
  "carrier": "lightningexpress",
  "trackingNumber": "YYZ123 20260101 1234",
  "status": "delivered",
  "statusDescription": "Delivered",
  "service": null,
  "deliveredAt": null,
  "deliveredAtLocal": "2026-01-01T18:05:43",
  "signedBy": null,
  "destination": null,
  "events": [
    {
      "timestamp": null,
      "localTime": "2026-01-01T18:05:43",
      "status": "delivered",
      "description": "Delivered",
      "location": null,
      "code": "2"
    },
    {
      "timestamp": null,
      "localTime": "2026-01-01T18:03:43",
      "status": "in_transit",
      "description": "Received",
      "location": null,
      "code": "1"
    },
    {
      "timestamp": null,
      "localTime": "2026-01-01T15:10:38",
      "status": "label_created",
      "description": "Label created",
      "location": null,
      "code": "0"
    }
  ]
}
```

## Notes

- **Spaces**: waybills are printed `YYZ123 20260101 1234`; the API accepts them with or without the spaces and the result echoes the number without spaces.
- **Steps**: the API gives one time per step (created, received, collected, completed, returned), not a scan list, so each step with a time becomes an event.
- **Time zone**: the API does not state one, so only `localTime` is given.

## Related Resources

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