# LinHan International Tracking API & MCP

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

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

## Overview & Quick Facts

| Property | Value |
|---|---|
| **Carrier slug (`?carrier=`)** | `linhan` |
| **Brand aliases** | LinHan International, Linhan, 林汉国际, linhan56.com |
| **Category** | Chinese cross-border e-commerce logistics (林汉国际) |
| **Single-package REST endpoint** | `GET https://api.lastscanned.com/v1/track/{trackingNumber}` |
| **Batch REST endpoint** | `GET https://api.lastscanned.com/v1/track?numbers=LHGJ32271042CD,...` |
| **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`)** | `/^LHGJ\d{8}CD$/` | none | `LHGJ32271042CD` |
| **Pass 2 (`mayMatch`)** | none | none | none |

`LHGJ` + 8 digits + `CD` belong to LinHan alone, so `?carrier=linhan` is optional.

## Synchronous `GET` Request & Normalized JSON Response

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

```json
{
  "carrier": "linhan",
  "trackingNumber": "LHGJ32271042CD",
  "status": "delivered",
  "statusDescription": "Delivered",
  "service": null,
  "deliveredAt": "2026-05-18T04:16:36Z",
  "deliveredAtLocal": "2026-05-18T12:16:36",
  "signedBy": null,
  "destination": null,
  "events": [
    {
      "timestamp": "2026-05-18T04:16:36Z",
      "localTime": "2026-05-18T12:16:36",
      "status": "delivered",
      "description": "Delivered",
      "location": "Springfield, Illinois",
      "code": null
    },
    {
      "timestamp": "2026-05-16T03:58:58Z",
      "localTime": "2026-05-16T11:58:58",
      "status": "in_transit",
      "description": "Leaving the sorting center",
      "location": "Springfield, Illinois",
      "code": null
    },
    {
      "timestamp": "2026-05-07T21:21:24Z",
      "localTime": "2026-05-08T05:21:24",
      "status": "in_transit",
      "description": "Leave the Los Angeles processing center",
      "location": null,
      "code": null
    },
    {
      "timestamp": "2026-05-01T07:55:56Z",
      "localTime": "2026-05-01T15:55:56",
      "status": "label_created",
      "description": "Order information received",
      "location": null,
      "code": null
    }
  ]
}
```

## Notes

- **Location**: US scans read `Springfield, Illinois, 62701 Delivered`; the place is moved to `location` and the ZIP and wording are separated.
- **Time zone**: China time (`Asia/Shanghai`, UTC+8) for every scan; `timestamp` is converted from that.

## Related Resources

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