Carriers

Hispapost Tracking API & MCP

Query live Hispapost (hispapost) parcel status in a single synchronous GET request or MCP tool call. Barcodes are free-form letters and digits, so pass ?carrier=hispapost.

Overview & Quick Facts

PropertyValue
Carrier slug (?carrier=)hispapost
Brand aliasesHispapost, Hispapost Spain, Grupo Hispapost
CategoryParcel and mail delivery (Spain)
Single-package REST endpointGET https://api.lastscanned.com/v1/track/{trackingNumber}
Batch REST endpointGET https://api.lastscanned.com/v1/track?numbers=CNES00000000123,...
MCP server (https://mcp.lastscanned.com)track_package, track_packages, list_carriers
Authentication & pricingAuthorization: Bearer lsk_live_... · 1 free keyless lookup/day per IP

Tracking Number Formats & Auto-Detection

PassRule / RegexCheck DigitExamples
Pass 1 (matches)nonenonenone
Pass 2 (mayMatch)/^CNES\d{11}$/noneCNES00000000123

Barcodes are 6–40 letters and digits (CNES…, BAE…, Temu's BG…), too loose to detect except the CNES shape.

Synchronous GET Request & Normalized JSON Response

curl -s "https://api.lastscanned.com/v1/track/CNES01102880652?carrier=hispapost" \
  -H "Authorization: Bearer $LASTSCANNED_API_KEY"
{
  "carrier": "hispapost",
  "trackingNumber": "CNES01102880652",
  "status": "delivered",
  "statusDescription": "Entregado",
  "service": null,
  "deliveredAt": "2024-03-07T10:44:00Z",
  "deliveredAtLocal": "2024-03-07T11:44:00",
  "signedBy": null,
  "destination": null,
  "events": [
    {
      "timestamp": "2024-03-07T10:44:00Z",
      "localTime": "2024-03-07T11:44:00",
      "status": "delivered",
      "description": "Entregado",
      "location": null,
      "code": null
    }
  ]
}

Notes

  • Source: the "Localizador de envíos" form is a Rails form: lastscanned loads it for a session cookie and CSRF token, then posts the barcode. The page answers with the state and its date.
  • Single event: Hispapost shows the latest state, not a scan list, so there is one event. An unknown barcode is HTTP 422.
  • Time zone: the date is read as Europe/Madrid.

On this page