# EMS Tracking API & MCP

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

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

## Overview & Quick Facts

| Property | Value |
|---|---|
| **Carrier slug (`?carrier=`)** | `ems` |
| **Brand aliases** | China EMS, EMS, UPU EMS, China Post EMS |
| **Category** | International EMS express mail |
| **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`)** | `/^E[A-Z]\d{9}CN$/` | UPU S10 (mod 11) | `EB123456785CN` |
| **Pass 2 (`mayMatch`)** | none | none | none |

EMS numbers from other posts (for example `EM…JP`) belong to those posts' adapters; pass `?carrier=ems` to send any EMS number to the UPU tracker.

## Synchronous `GET` Request & Normalized JSON Response

```bash
curl -s "https://api.lastscanned.com/v1/track/EB123456785CN" \
  -H "Authorization: Bearer $LASTSCANNED_API_KEY"
```

```json
{
  "carrier": "ems",
  "trackingNumber": "EB123456785CN",
  "status": "in_transit",
  "statusDescription": "Departed from export office",
  "service": null,
  "deliveredAt": null,
  "deliveredAtLocal": null,
  "signedBy": null,
  "destination": null,
  "message": null,
  "events": [
    {
      "timestamp": null,
      "localTime": "2026-09-13T01:37:00",
      "status": "in_transit",
      "description": "Departed from export office",
      "location": "Guangzhou Baiyun International Apt",
      "code": null
    },
    {
      "timestamp": null,
      "localTime": "2026-09-12T10:48:00",
      "status": "in_transit",
      "description": "Posted",
      "location": "516008",
      "code": null
    }
  ]
}
```

## Notes

- **Time zone**: the tracker prints each scan in the local time of the office that made it, with no zone. `localTime` is that clock time and `timestamp` is `null`.
- **Location**: an office name or code as the EMS system prints it (often a postal code or an office abbreviation).
- **Scope**: this is the UPU EMS cooperative tracker, not the China Post parcel tracker.

## Related Resources

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