# CDEK Tracking API & MCP

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

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

## Overview & Quick Facts

| Property | Value |
|---|---|
| **Carrier slug (`?carrier=`)** | `cdek` |
| **Brand aliases** | CDEK Express, СДЭК, SDEK |
| **Category** | Domestic and cross-border parcels (Russia, CIS) |
| **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`)** | none | none | none |
| **Pass 2 (`mayMatch`)** | none | none | none |

`matches` and `mayMatch` are both empty: CDEK numbers are 10 or 11 digits, a shape that is not exclusive, so pass `?carrier=cdek`.

## Synchronous `GET` Request & Normalized JSON Response

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

```json
{
  "carrier": "cdek",
  "trackingNumber": "19876543210",
  "status": "delivered",
  "statusDescription": "Вручён",
  "service": null,
  "deliveredAt": "2026-08-11T07:04:00Z",
  "deliveredAtLocal": "2026-08-11T11:04:00",
  "signedBy": null,
  "destination": {
    "city": "Баку",
    "state": null,
    "country": "AZ"
  },
  "events": [
    {
      "timestamp": "2026-08-11T07:04:00Z",
      "localTime": "2026-08-11T11:04:00",
      "status": "delivered",
      "description": "Вручён",
      "location": null,
      "code": "DELIVERED"
    },
    {
      "timestamp": "2026-06-12T15:52:34Z",
      "localTime": "2026-06-12T11:52:34",
      "status": "in_transit",
      "description": "Отправлено в г. Нью-Йорк",
      "location": "Нью-Касл",
      "code": "SENT_TO_NEXT_CITY"
    },
    {
      "timestamp": "2026-06-07T15:23:05Z",
      "localTime": "2026-06-07T11:23:05",
      "status": "in_transit",
      "description": "Принят на доставку",
      "location": "Нью-Касл",
      "code": "ACCEPTED_FOR_DELIVERY"
    },
    {
      "timestamp": "2026-06-07T15:22:57Z",
      "localTime": "2026-06-07T11:22:57",
      "status": "label_created",
      "description": "Создан",
      "location": null,
      "code": "CREATED"
    }
  ]
}
```

## Notes

- **Source**: the JSON behind the my.cdek.ru order page (`/api/lkfl/v3/tracing/trackInfoBeta/{number}`). No account is needed.
- **Stages and scans**: CDEK reports order stages (`CREATED`, `IN_PROGRESS`, `DELIVERED`, `NOT_DELIVERED`). The `IN_PROGRESS` stage is replaced by the per-city scans listed under it.
- **Time zone**: CDEK sends UTC. `localTime` uses the city's own offset for city scans, the sender office's for the creation stage and the receiver office's for the closing stages.
- **Wording**: stage and scan names are CDEK's own Russian text, with the stage code in `code`.
- **Not found**: HTTP 404 with `tracing.cant_determine_order` becomes `not_found`.

## Related Resources

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