# Madhur Courier Tracking API & MCP

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

Query live **Madhur Courier** (`madhurcourier`) package status and scan history in a single synchronous `GET` request or MCP tool call. Madhur Courier Services (India) C-Note tracking and movement history.

## Overview & Quick Facts

| Property | Value |
|---|---|
| **Carrier slug (`?carrier=`)** | `madhurcourier` |
| **Brand aliases** | Madhur Courier Services, Madhur Couriers |
| **Category** | Indian domestic courier and cargo |
| **Single-package REST endpoint** | `GET https://api.lastscanned.com/v1/track/{trackingNumber}` |
| **Batch REST endpoint** | `GET https://api.lastscanned.com/v1/track?numbers=P500000412,P500000412` |
| **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`)** | `^P\d{9}$` | none | `P500000412` |

The shape is shared with other carriers, so it is only tried when no other carrier claims the number; `?carrier=madhurcourier` is the sure way.

## Synchronous `GET` Request & Normalized JSON Response

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

```json
{
  "carrier": "madhurcourier",
  "trackingNumber": "P500000412",
  "status": "delivered",
  "statusDescription": "DELIVERED TO AREA:.... IN PATNA Pcs:2",
  "service": null,
  "deliveredAt": null,
  "deliveredAtLocal": "2020-11-13",
  "signedBy": null,
  "destination": null,
  "message": null,
  "events": [
    {
      "timestamp": null,
      "localTime": "2020-11-13",
      "status": "delivered",
      "description": "DELIVERED TO AREA:.... IN PATNA Pcs:2",
      "location": "PATNA",
      "code": "RUNSHEET UPDATE"
    },
    {
      "timestamp": null,
      "localTime": "2020-10-30",
      "status": "label_created",
      "description": "PARCEL BOOKED BY DELHI FROM NAYA BAZAR (DEL) TO PATNA Pcs:2",
      "location": "NAYA BAZAR (DEL)",
      "code": "BOOKING"
    }
  ]
}
```

## Notes

- **Source**: The C-Note tracking page `madhurcouriers.in/CNoteTracking`, an ASP.NET form run under its cookieless session: `lastscanned` opens the session, posts the number with the form's hidden fields and reads the movements table. No account.
- **Dates only**: the movements table has a date but no time of day, so `timestamp` is `null` and `localTime` is the date (`2020-11-13`). Same-day movements keep the carrier's order, newest first.
- **Locations**: the branch the movement names (the destination branch when there is one, else the origin).
- **Digit-only numbers** (10–11 digits) are shared with other carriers, so pass `?carrier=madhurcourier`.

## Related Resources

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