# Thailand Post Tracking API & MCP

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

Query live **Thailand Post** (`thailandpost`) international mail in a single synchronous `GET` request or MCP tool call. `lastscanned` auto-detects S10 numbers ending in `TH`.

## Overview & Quick Facts

| Property | Value |
|---|---|
| **Carrier slug (`?carrier=`)** | `thailandpost` |
| **Brand aliases** | Thailand Post, Thai Post, ไปรษณีย์ไทย |
| **Category** | National post (Thailand), international mail |
| **Single-package REST endpoint** | `GET https://api.lastscanned.com/v1/track/{trackingNumber}` |
| **Batch REST endpoint** | `GET https://api.lastscanned.com/v1/track?numbers=RR123456785TH,...` |
| **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`)** | `S10 *TH` with a valid check digit (`/^[A-Z]{2}\d{9}TH$/`) | S10 | `RR123456785TH` |
| **Pass 2 (`mayMatch`)** | none | none | none |

## Synchronous `GET` Request & Normalized JSON Response

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

```json
{
  "carrier": "thailandpost",
  "trackingNumber": "RR123456785TH",
  "status": "delivered",
  "statusDescription": "Final delivery",
  "service": null,
  "deliveredAt": null,
  "deliveredAtLocal": "2026-09-22T15:00:00",
  "signedBy": null,
  "destination": null,
  "events": [
    {
      "timestamp": null,
      "localTime": "2026-09-22T15:00:00",
      "status": "delivered",
      "description": "Final delivery",
      "location": "BKK",
      "code": "EMI"
    },
    {
      "timestamp": "2026-09-13T12:12:00Z",
      "localTime": "2026-09-13T19:12:00",
      "status": "in_transit",
      "description": "Item presented to export Customs/Security",
      "location": "THBKKA",
      "code": "EXA"
    }
  ]
}
```

## Notes

- **Source**: the JSON Thailand Post's own tracking page (track.thailandpost.co.th) reads. If that refuses, S10 numbers fall back to the UPU's public Global Track & Trace, and the rest to the same lookup run in a browser session.
- **Coverage**: domestic and international items, with Thai post office names and times in Bangkok time (UTC+7).
- **Times**: scans at a Thai office (code starting `TH`) are converted to UTC from Bangkok time. Other scans carry `localTime` only.
- **Sample note**: the sample above is illustrative.

## Related Resources

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