# Starex Tracking API & MCP

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

Query live **Starex** (`starex`) package status and scan history in a single synchronous `GET` request or MCP tool call. `lastscanned` auto-detects `STR` + two country letters + 12 digits.

## Overview & Quick Facts

| Property | Value |
|---|---|
| **Carrier slug (`?carrier=`)** | `starex` |
| **Brand aliases** | Starex, Starex Global, Starex Azerbaijan, STRAZ |
| **Category** | Parcel forwarder (Azerbaijan, Uzbekistan) |
| **Single-package REST endpoint** | `GET https://api.lastscanned.com/v1/track/{trackingNumber}` |
| **Batch REST endpoint** | `GET https://api.lastscanned.com/v1/track?numbers=STRAZ123456789012,...` |
| **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`)** | `/^STR[A-Z]{2}\d{12}$/` | none | `STRAZ123456789012` |
| **Pass 2 (`mayMatch`)** | none | none | none |

## Synchronous `GET` Request & Normalized JSON Response

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

```json
{
  "carrier": "starex",
  "trackingNumber": "STRAZ123456789012",
  "status": "delivered",
  "statusDescription": "Delivered: The package has been successfully delivered",
  "service": null,
  "deliveredAt": null,
  "deliveredAtLocal": "2026-05-01T14:23:00",
  "signedBy": null,
  "destination": null,
  "events": [
    {
      "timestamp": null,
      "localTime": "2026-05-01T14:23:00",
      "status": "delivered",
      "description": "Delivered: The package has been successfully delivered",
      "location": null,
      "code": "delivered"
    },
    {
      "timestamp": null,
      "localTime": "2026-04-30T13:35:00",
      "status": "exception",
      "description": "Ready for Pickup: The package is ready for pickup at the branch.",
      "location": null,
      "code": "ready_for_pickup"
    },
    {
      "timestamp": null,
      "localTime": "2026-04-29T15:15:00",
      "status": "in_transit",
      "description": "Customs Cleared: The package has successfully cleared customs.",
      "location": null,
      "code": "import_customs_released"
    },
    {
      "timestamp": null,
      "localTime": "2026-03-23T22:33:00",
      "status": "label_created",
      "description": "Confirm Package: The package must be confirmed to continue processing.",
      "location": null,
      "code": "waiting_for_confirmation"
    }
  ]
}
```

## Notes

- **Status codes**: `code` is Starex's own step (`waiting_for_confirmation`, `accepted_at_facility`, `export_customs_clearance`, `import_customs_released`, `sorting`, `in_transit`, `ready_for_pickup`, `delivered`). A parcel waiting at a branch (`ready_for_pickup`) reports `exception`.
- **Time zone**: Starex prints `dd-mm-yyyy hh:mm` with no zone, so `timestamp` is `null`.

## Related Resources

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