# Raben Tracking API & MCP

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

Track **Raben Group** road freight consignments (DE, PL, NL, AT, IT, CZ) with per-scan time zones. Query live status, scan history and normalized fields in a single synchronous `GET` request or MCP tool call.

## Overview & Quick Facts

| Property | Value |
|---|---|
| **Carrier slug (`?carrier=`)** | `raben` |
| **Brand aliases** | Raben, Raben Group, MyRaben |
| **Category** | Regional road freight (EU) |
| **Source** | MyRaben (Mendix) anonymous session: `GET oftc.myraben.com/link/ShipmentInformation?ShipmentNumber={n}` for cookies, then `POST /xas/` `get_session_data` |
| **Single-package REST endpoint** | `GET https://api.lastscanned.com/v1/track/{trackingNumber}` |
| **Batch REST endpoint** | `GET https://api.lastscanned.com/v1/track?numbers=276574000999999,...` |
| **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`)** | `/^276(?:574|634)\d{9}$/` | none | `276574000999999` |

The shape is only a last-resort guess, so pass `?carrier=raben` to be sure.

## Synchronous `GET` Request & Normalized JSON Response

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

```json
{
  "carrier": "raben",
  "trackingNumber": "276574000999999",
  "status": "delivered",
  "statusDescription": "delivered",
  "service": "Raben Germany",
  "deliveredAt": "2026-10-27T13:53:00Z",
  "deliveredAtLocal": "2026-10-27T14:53:00",
  "signedBy": null,
  "destination": null,
  "events": [
    {
      "timestamp": "2026-10-27T13:53:00Z",
      "localTime": "2026-10-27T14:53:00",
      "status": "delivered",
      "description": "delivered",
      "location": "Salzburg, Austria",
      "code": "E03"
    },
    {
      "timestamp": "2026-10-27T11:02:00Z",
      "localTime": "2026-10-27T12:02:00",
      "status": "out_for_delivery",
      "description": "in delivery",
      "location": "Salzburg, Austria",
      "code": "E05"
    },
    {
      "timestamp": "2026-10-22T14:31:00Z",
      "localTime": "2026-10-22T16:31:00",
      "status": "in_transit",
      "description": "loaded",
      "location": "Linz, Austria",
      "code": "E08"
    }
  ]
}
```

## Notes

- **Session**: the lookup is two requests (a cookie-setting link, then the Mendix session data); events are read from the session state.
- **Time zone**: scan times are UTC; `localTime` is converted using the scan's country. Scans with no country keep `timestamp` only.
- **Shipment**: `estimatedDelivery` is set while the consignment is not delivered.

## Related Resources

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