# Delhivery Tracking API & MCP

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

Query live **Delhivery** (`delhivery`) package status and scan history in a single synchronous `GET` request or MCP tool call, using the same public JSON that Delhivery's own tracking page calls. Pass `?carrier=delhivery` for its plain 13- and 14-digit waybills.

## Overview & Quick Facts

| Property | Value |
|---|---|
| **Carrier slug (`?carrier=`)** | `delhivery` |
| **Brand & service aliases** | Delhivery, Delhivery Express, Delhivery Courier, Delhivery AWB |
| **Category** | India domestic parcel & e-commerce |
| **Single-package REST endpoint** | `GET https://api.lastscanned.com/v1/track/{trackingNumber}?carrier=delhivery` |
| **Batch REST endpoint** | `GET https://api.lastscanned.com/v1/track?numbers=1234567890123,1234567890123&carrier=delhivery` |
| **MCP server (`https://mcp.lastscanned.com`)** | `track_package`, `track_packages`, `list_carriers` (`claude mcp add --transport http lastscanned https://mcp.lastscanned.com`) |
| **Authentication & pricing** | `Authorization: Bearer lsk_live_...` · **1 free keyless lookup/day per IP** · **Free tier** (5 unique numbers/day, $0) · **Pro** ($4.99/mo for 1,000 unique numbers, unlimited re-polls, $0.015/extra) · **HTTP 402 Stripe MPP** ($0.50 for 25-number `lsk_pack_` key or $0.02/number in USDC on Tempo) |

## Tracking Number Formats & Auto-Detection (`matches` vs `?carrier=delhivery`)

| Pass | Rule / Regex | Check Digit | Examples |
|---|---|---|---|
| **Pass 1 (`matches`)** | *None* | — | — |
| **Pass 2 (`mayMatch`)** | `/^\d{13,14}$/` | — | `1234567890123` |
| **Explicit (`?carrier=delhivery`)** | Any Delhivery waybill (AWB) | — | `1234567890123` |

### When is `?carrier=delhivery` optional vs required?

- **Optional**: a 13- or 14-digit number that no other carrier claims is tried against Delhivery in Pass 2.
- **Recommended**: pass `?carrier=delhivery` anyway, because plain digit runs are not Delhivery's alone.

## Synchronous `GET` Request & Normalized JSON Response

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

```ts
const res = await fetch("https://api.lastscanned.com/v1/track/1234567890123?carrier=delhivery", {
  headers: { Authorization: `Bearer ${process.env.LASTSCANNED_API_KEY}` },
});
const pkg = await res.json();
console.log(pkg.status, pkg.events[0]);
```

MCP `track_package` tool call:

```json
{
  "tool": "track_package",
  "arguments": { "tracking_number": "1234567890123", "carrier": "delhivery" }
}
```

Normalized `TrackingResult` response:

```json
{
  "carrier": "delhivery",
  "trackingNumber": "1234567890123",
  "status": "in_transit",
  "statusDescription": "Shipment received at facility",
  "service": null,
  "deliveredAt": null,
  "deliveredAtLocal": null,
  "signedBy": null,
  "destination": null,
  "events": [
    {
      "timestamp": "2026-10-25T08:07:38Z",
      "localTime": "2026-10-25T13:37:38",
      "status": "in_transit",
      "description": "Shipment received at facility",
      "location": "Bengaluru_Bidadi_H (Karnataka)",
      "code": "UD"
    },
    {
      "timestamp": "2026-10-24T11:20:00Z",
      "localTime": "2026-10-24T16:50:00",
      "status": "label_created",
      "description": "Manifested",
      "location": "Mumbai_Bhiwandi_H (Maharashtra)",
      "code": "X-UCI"
    }
  ]
}
```

## Notes

- **Source**: the `unified-tracking` JSON behind Delhivery's own tracking page, no account or key. A number Delhivery does not know ("invalid AWB or very old package") returns `not_found`.
- **Times**: Delhivery prints India Standard Time with no offset. India is one zone, so each event carries `timestamp` in UTC computed from `Asia/Kolkata`.
- **Old waybills**: Delhivery drops tracking for very old packages, which then read as `not_found`.

## Related Resources

- **Live browser lookup tool**: [Track a Delhivery package live on lastscanned.com/lookup/delhivery](https://lastscanned.com/lookup/delhivery)
- **Carrier hub**: [All supported carriers](/carriers)
- **Regex & check digits**: [Tracking number formats & auto-detection](/formats)
- **AI support workflows**: [WISMO AI agents & synchronous tracking](/wismo)
