# Via Cargo Tracking API & MCP

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

Query live **Via Cargo** (`viacargo`) package status and scan history in a single synchronous `GET` request or MCP tool call. Pass `?carrier=viacargo` (or the MCP `carrier` argument) so the lookup goes to Via Cargo.

## Overview & Quick Facts

| Property | Value |
|---|---|
| **Carrier slug (`?carrier=`)** | `viacargo` |
| **Brand aliases** | Via Cargo, ViaCargo, Vía Cargo, viacargo.com.ar |
| **Category** | Regional (parcel and freight, Argentina) |
| **Single-package REST endpoint** | `GET https://api.lastscanned.com/v1/track/{trackingNumber}` |
| **Batch REST endpoint** | `GET https://api.lastscanned.com/v1/track?numbers=999999990019,...` |
| **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`)** | none | none | none |

Twelve-digit envío numbers are a shape other carriers also use, so pass `?carrier=viacargo`. Accepted shape: `^\d{12}$`.

## Synchronous `GET` Request & Normalized JSON Response

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

```json
{
  "carrier": "viacargo",
  "trackingNumber": "999008443755",
  "status": "delivered",
  "statusDescription": "ENTREGADA",
  "service": "Via Cargo Estandar",
  "deliveredAt": "2026-03-12T13:45:00Z",
  "deliveredAtLocal": "2026-03-12T10:45:00",
  "signedBy": "JUAN PEREZ",
  "destination": {
    "city": "Villa Gesell",
    "state": "Buenos Aires",
    "country": "AR"
  },
  "events": [
    {
      "timestamp": "2026-03-12T13:45:00Z",
      "localTime": "2026-03-12T10:45:00",
      "status": "delivered",
      "description": "ENTREGADA",
      "location": "Villa Gesell",
      "code": "ENTR"
    },
    {
      "timestamp": "2026-03-09T13:05:00Z",
      "localTime": "2026-03-09T10:05:00",
      "status": "in_transit",
      "description": "RECIBIDO EN DESTINO",
      "location": "Villa Gesell",
      "code": "RCPV"
    },
    {
      "timestamp": "2026-03-05T18:19:00Z",
      "localTime": "2026-03-05T15:19:00",
      "status": "label_created",
      "description": "INGRESO A VIA CARGO",
      "location": "Olivos - Echeverria 2870",
      "code": "ALTA"
    }
  ]
}
```

## Notes

- **Codes**: `code` is the event type (`ALTA` entered, `RECD` received at a distribution centre, `MANI` manifest, `CPCE` departed, `RCPV` received at the destination branch, `ENTR` delivered).
- **Time zone**: Argentina has one offset (-03:00, no DST). The request carries the site script's public key and an empty captcha token.

## Related Resources

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