# LaBaih Tracking API & MCP

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

Query live **LaBaih** (`labaih`) package status and scan history in a single synchronous `GET` request or MCP tool call. Pass `?carrier=labaih` to select it.

## Overview & Quick Facts

| Property | Value |
|---|---|
| **Carrier slug (`?carrier=`)** | `labaih` |
| **Brand aliases** | LaBaih, La Baih, لبيه, mylabaih.com |
| **Category** | Saudi Arabian last-mile delivery |
| **Single-package REST endpoint** | `GET https://api.lastscanned.com/v1/track/{trackingNumber}` |
| **Batch REST endpoint** | `GET https://api.lastscanned.com/v1/track?numbers=25010112000012,...` |
| **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`)** | none | none | none |
| **Pass 2 (`mayMatch`)** | none | none | none |

A 14-digit number whose first 12 digits are the creation date and time is not specific enough to claim, so pass `?carrier=labaih`.

## Synchronous `GET` Request & Normalized JSON Response

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

```json
{
  "carrier": "labaih",
  "trackingNumber": "25010112000012",
  "status": "delivered",
  "statusDescription": "Shipment Delivered",
  "service": null,
  "deliveredAt": null,
  "deliveredAtLocal": "2026-01-03T00:31:22",
  "signedBy": null,
  "destination": null,
  "events": [
    {
      "timestamp": null,
      "localTime": "2026-01-03T00:31:22",
      "status": "delivered",
      "description": "Shipment Delivered",
      "location": null,
      "code": null
    },
    {
      "timestamp": null,
      "localTime": "2026-01-02T22:52:33",
      "status": "in_transit",
      "description": "In-Transit to Customer",
      "location": null,
      "code": null
    },
    {
      "timestamp": null,
      "localTime": "2026-01-01T23:50:32",
      "status": "in_transit",
      "description": "Arrived at Riyadh Facility",
      "location": "Riyadh",
      "code": null
    },
    {
      "timestamp": null,
      "localTime": "2026-01-01T18:39:46",
      "status": "label_created",
      "description": "Shipment created",
      "location": null,
      "code": null
    }
  ]
}
```

## Notes

- **Page comments**: the page contains HTML comments with sample markup (a 2021 demo timeline); they are removed before reading.
- **Time zone**: the page does not state one, so only `localTime` is given.
- **Unknown number**: the site redirects (302) to its 404 page, which is returned as `not_found`.

## Related Resources

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