# Estafeta Tracking API & MCP

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

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

## Overview & Quick Facts

| Property | Value |
|---|---|
| **Carrier slug (`?carrier=`)** | `estafeta` |
| **Brand aliases** | Estafeta, Estafeta Mexico, Estafeta guia |
| **Category** | Regional parcels (Mexico) |
| **Single-package REST endpoint** | `GET https://api.lastscanned.com/v1/track/{trackingNumber}` |
| **Batch REST endpoint** | `GET https://api.lastscanned.com/v1/track?numbers=...,...` |
| **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{12}[A-Z]\d{9}$/` (the 22-character guide) | none | `123456789012A123456789` |
| **Pass 2 (`mayMatch`)** | none | none | none |

| Format | Pattern |
|---|---|
| Guide (22 characters) | `^\d{12}[A-Z]\d{9}$` |
| Tracking code (10 digits) | `^\d{10}$` |

Shapes this carrier does not own alone are not auto-detected; pass `?carrier=estafeta`.

## Synchronous `GET` Request & Normalized JSON Response

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

```json
{
  "carrier": "estafeta",
  "trackingNumber": "123456789012A123456789",
  "status": "delivered",
  "statusDescription": "Entregado",
  "service": "Terrestre",
  "deliveredAt": null,
  "deliveredAtLocal": "2026-08-30T14:23:00",
  "signedBy": "MARIA PEREZ",
  "destination": null,
  "events": [
    {
      "timestamp": null,
      "localTime": "2026-08-30T14:23:00",
      "status": "delivered",
      "description": "Entregado",
      "location": "Culiacán",
      "code": null
    },
    {
      "timestamp": null,
      "localTime": "2026-08-30T12:44:00",
      "status": "out_for_delivery",
      "description": "En proceso de entrega a domicilio",
      "location": "Culiacán",
      "code": null
    },
    {
      "timestamp": null,
      "localTime": "2026-08-30T12:41:00",
      "status": "in_transit",
      "description": "En tránsito",
      "location": "Culiacán",
      "code": null
    }
  ]
}
```

## Notes

- **Guide or tracking code**: both the 22-character guide and the 10-digit tracking code work. Only the guide shape auto-detects; a bare 10-digit code needs `?carrier=estafeta`.
- **Label only**: a guide that exists but has not been handed to Estafeta returns status `label_created` with one undated event.
- **Local time only**: Mexico spans several zones and the page prints none, so `timestamp` is `null`. Descriptions are in Spanish.

## Related Resources

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