# GoTo Logistics Tracking API & MCP

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

Query live **GoTo Logistics** (`gtlgoto`) shipment status and scan history in a single synchronous `GET` request or MCP tool call. `lastscanned` auto-detects `GTL…` and `TKGTL…` numbers.

## Overview & Quick Facts

| Property | Value |
|---|---|
| **Carrier slug (`?carrier=`)** | `gtlgoto` |
| **Brand aliases** | GoTo Logistics, GTL, GTL Express, gtl.id |
| **Category** | Domestic parcel logistics (Indonesia) |
| **Single-package REST endpoint** | `GET https://api.lastscanned.com/v1/track/{trackingNumber}` |
| **Batch REST endpoint** | `GET https://api.lastscanned.com/v1/track?numbers=GTL1234567890,...` |
| **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`)** | `/^(TKGTL[0-9A-Z]{11}|GTL\d{10})$/` | none | `GTL1234567890` |
| **Pass 2 (`mayMatch`)** | none | none | none |

## Synchronous `GET` Request & Normalized JSON Response

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

```json
{
  "carrier": "gtlgoto",
  "trackingNumber": "GTL7100971618",
  "status": "delivered",
  "statusDescription": "Paket sudah sampai dan diterima oleh Penerima sendiri.",
  "service": "REG",
  "deliveredAt": null,
  "deliveredAtLocal": "2026-05-16T09:52:50",
  "signedBy": null,
  "destination": null,
  "events": [
    {
      "timestamp": null,
      "localTime": "2026-05-16T09:52:50",
      "status": "delivered",
      "description": "Paket sudah sampai dan diterima oleh Penerima sendiri.",
      "location": "GTL Tasikmalaya Kota Hub",
      "code": "signed_personally"
    },
    {
      "timestamp": null,
      "localTime": "2026-05-16T07:52:00",
      "status": "out_for_delivery",
      "description": "Kurir sedang menuju lokasi pengantaran.",
      "location": "GTL Tasikmalaya Kota Hub",
      "code": "delivery_start"
    },
    {
      "timestamp": null,
      "localTime": "2026-05-15T05:43:24",
      "status": "in_transit",
      "description": "Paket sudah berangkat dari Kosambi Sorting Center.",
      "location": "Kosambi Sorting Center",
      "code": "sc_outbound"
    },
    {
      "timestamp": null,
      "localTime": "2026-05-14T11:41:06",
      "status": "label_created",
      "description": "Pesanan akan segera dipickup oleh kurir.",
      "location": "GTL Tambora Hub",
      "code": null
    }
  ]
}
```

## Notes

- **Source**: the JSON behind gtl.id's tracking page. An unknown number is HTTP 422 with code `5413`.
- **Status**: from the platform status of each step (`delivered`, `out_for_delivery`, `ready_for_pickup`), since one `status_code` can carry different wording.
- **Time zone**: step times have no offset, and Indonesia has three zones, so only `localTime` is set. Driver names and phone numbers in the raw data are not returned.

## Related Resources

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