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
| Property | Value |
|---|---|
Carrier slug (?carrier=) | hispapost |
| Brand aliases | Hispapost, Hispapost Spain, Grupo Hispapost |
| Category | Parcel and mail delivery (Spain) |
| Single-package REST endpoint | GET https://api.lastscanned.com/v1/track/{trackingNumber} |
| Batch REST endpoint | GET https://api.lastscanned.com/v1/track?numbers=CNES00000000123,... |
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) | /^CNES\d{11}$/ | none | CNES00000000123 |
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:
lastscannedloads 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.
Related Resources
- Regex & check digits: Tracking number formats & auto-detection
Hermes Austria Tracking API & MCP
Track Hermes Austria (myhermes.at) parcels via synchronous REST GET or MCP. Normalized JSON status and scan history, no carrier credentials required.
Hongkong Post Tracking API & MCP
Track Hongkong Post (S10 HK mail) via synchronous REST GET or MCP. Normalized JSON latest status, no carrier credentials required.