Carrier·United Kingdom·gb.royalmail
Royal Mail Tracking API
Track Royal Mail packages with WhereParcel's unified tracking API. Support for 1st Class, 2nd Class, Special Delivery, and international services.
Open Playground Read the Docs View Pricing
Carriers marked Live can be tracked right now. Those marked On request are in our catalog but not connected yet — ask for one and we usually add it within days.
Royal MailSheet 1 of 1
- Carrier Code
gb.royalmail- Country
- 🇬🇧 United Kingdom
- Status
- On request
- Number formats
- 1 — Royal Mail Tracked
- Response
- The same JSON shape as all 39+ live carriers
Royal Mail Tracking Number Formats
| Service | Format | Example |
|---|---|---|
| Royal Mail Tracked | XX XXXX XXXX X GB | AB123456785GB |
Quick Start
Track Royal Mail packages with a single API call:
curl -X POST https://api.whereparcel.com/v2/track \
-H "Authorization: Bearer YOUR_API_KEY:YOUR_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"trackingItems": [{
"carrier": "gb.royalmail",
"trackingNumber": "AB123456785GB"
}]
}' const response = await fetch('https://api.whereparcel.com/v2/track', {
method: 'POST',
headers: {
'Authorization': `Bearer ${API_KEY}:${SECRET_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
trackingItems: [{
carrier: 'gb.royalmail',
trackingNumber: 'AB123456785GB',
}],
}),
});
const { data } = await response.json();
console.log(data[0].data?.deliveryStatus);
// → "in_transit", "delivered", etc. import requests
response = requests.post(
'https://api.whereparcel.com/v2/track',
headers={
'Authorization': f'Bearer {API_KEY}:{SECRET_KEY}',
'Content-Type': 'application/json',
},
json={
'trackingItems': [{
'carrier': 'gb.royalmail',
'trackingNumber': 'AB123456785GB',
}],
},
)
item = response.json()['data'][0]
print(item.get('data', {}).get('deliveryStatus')) {
"success": true,
"data": [{
"carrier": "gb.royalmail",
"status": "success",
"data": {
"deliveryStatus": "in_transit",
"events": [ … ]
},
"billable": true
}]
} - APer item:
successorerror— one bad number doesn't fail the batch. - BOne of nine values; Royal Mail's wording is in
rawStatuson each event. - CCache hits come back with
billable: false.
Automatic Updates with Webhooks
Instead of polling, register a webhook and we re-check your Royal Mail parcels about every 12 hours, pushing each status to you. Each tracking number counts as just 1 request — no matter how many updates follow.
// Register a webhook endpoint
await fetch('https://api.whereparcel.com/v2/webhook-endpoints', {
method: 'POST',
headers: {
'Authorization': `Bearer ${API_KEY}:${SECRET_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
name: 'Production',
url: 'https://yourapp.com/webhooks/tracking',
description: 'Royal Mail tracking updates',
}),
});Why WhereParcel for Royal Mail
- Unified JSON — same response shape across Royal Mail and the rest of our 39+ live carriers. No carrier-specific branching code.
- Honest pricing — Starter $49/mo (10K req), Pro $99/mo (30K), Business $650/mo (300K). Cancel anytime.
- Free 3 months — write one short blog post mentioning WhereParcel via the ambassador program and get 3 months of Starter free.
- Don't see a carrier? — Request it on our community board — we add new carriers fast.
Try without signup
Use our free Tracking Number Validator to paste any Royal Mail number and instantly see the carrier and service type — no account needed, runs entirely in your browser.
Related Resources
- 5-minute API setup guide — first request to webhook in cURL/Node/Python/Go
- Best parcel tracking API 2026 — 5-way comparison — WhereParcel vs AfterShip, 17TRACK, Tracktry, Parcellab
- Understanding tracking number formats by carrier — every major carrier's regex with examples
- Building a branded tracking page — Shopify, WooCommerce, custom
- Webhook best practices — signature verification, retries, idempotency
- Browse all 39+ live carriers
Start tracking Royal Mail packages in minutes.
Read the Docs Open Playground