# Huiyi Logistics Tracking API & MCP

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

Query live **Huiyi Logistics** (`hywl`) package status and scan history in a single synchronous `GET` request or MCP tool call. `lastscanned` auto-detects the number format below.

## Overview & Quick Facts

| Property | Value |
|---|---|
| **Carrier slug (`?carrier=`)** | `hywl` |
| **Brand aliases** | Huiyi Logistics, SZHYWL, szhywl.it.com, TRK |
| **Category** | China cross-border parcels (Huiyi Logistics) |
| **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`)** | `/^TRK[0-9A-F]{12}$/` | none | `TRK1A2B3C4D5E6F` |
| **Pass 2 (`mayMatch`)** | none | none | none |

`Huiyi Logistics` numbers are claimed by `hywl`, so `?carrier=hywl` is optional.

## Synchronous `GET` Request & Normalized JSON Response

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

```json
{
  "carrier": "hywl",
  "trackingNumber": "TRK1A2B3C4D5E6F",
  "status": "delivered",
  "statusDescription": "Delivered【Lyon, 69001】, 已妥投【Lyon, 69001】",
  "service": null,
  "deliveredAt": "2026-05-20T19:43:31Z",
  "deliveredAtLocal": "2026-05-20T19:43:31",
  "signedBy": null,
  "destination": {
    "city": null,
    "state": null,
    "country": "FR"
  },
  "message": null,
  "events": [
    {
      "timestamp": "2026-05-20T19:43:31Z",
      "localTime": "2026-05-20T19:43:31",
      "status": "delivered",
      "description": "Delivered【Lyon, 69001】, 已妥投【Lyon, 69001】",
      "location": "Lyon, 69001",
      "code": "Delivered"
    },
    {
      "timestamp": "2026-05-19T12:43:31Z",
      "localTime": "2026-05-19T12:43:31",
      "status": "out_for_delivery",
      "description": "Dispatching【Lyon, 69001】, 出门投递【Lyon, 69001】",
      "location": "Lyon, 69001",
      "code": "Out for Delivery"
    },
    {
      "timestamp": "2026-04-26T07:43:31Z",
      "localTime": "2026-04-26T07:43:31",
      "status": "in_transit",
      "description": "广州市 51000066, SZHYWL已收取邮件",
      "location": "广州市 51000066",
      "code": "Picked Up"
    }
  ]
}
```

## Notes

- **Time zone**: the feed's times are UTC, so `localTime` is the same clock as `timestamp`.
- **Descriptions** are bilingual as the carrier sends them; `code` is the carrier's own status (`Picked Up`, `In Transit`, `Customs`, `Out for Delivery`, `Delivered`).

## Related Resources

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