Given a USPS tracking number, return the current status, expected delivery date, last-known location, and full chronological event timeline via the USPS REST API v3 (recommended) or the public tracking page behind Akamai (fallback).
Works with
AI-first code editor with Composer
Before installing skills in Cursor, ensure your development environment meets these requirements:
node --versiontrack-packageExecute the skills CLI command in your project's root directory to begin installation:
Fetches track-package from usps.com/track-package-854rdc and configures it for Cursor.
The CLI shows a list of agents. Use arrow keys and space to select Cursor:
Confirm successful installation by checking the skill directory location:
Restart Cursor to activate track-package. Access via /track-package in your agent's command palette.
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your environment. Always review source, verify the publisher, and test in isolation before production.
Submit your Claude Code skill and start earning
Automate repetitive workflows and reduce manual effort
Example
Generate reports, summarize documents, draft communications
Save 3-5 hours per week on routine tasks
Learn new skills, understand complex topics, get expert guidance
Example
Explain concepts, provide examples, suggest learning resources
Accelerate learning and skill development by 2x
Enhance output quality through reviews, suggestions, and refinements
Example
Review drafts, suggest improvements, catch errors
Improve work quality by 30-40% with less effort
0
total installs
0
this week
0
upvotes
Run in your terminal
0
installs
0
this week
—
stars
| name | track-package |
| title | USPS Package Tracking |
| description | >- Given a USPS tracking number, return the current status, expected delivery date, last-known location, and full chronological event timeline via the USPS REST API v3 (recommended) or the public tracking page behind Akamai (fallback). |
| website | usps.com |
| category | logistics |
| tags | - logistics - tracking - usps - shipping - akamai - read-only |
| source | 'browserbase: agent-runtime 2026-05-16' |
| updated | '2026-05-16' |
| recommended_method | api |
| alternative_methods | - method: browser rationale: >- Fallback when no USPS Developer Portal credentials are available. The public tracking page at tools.usps.com/go/TrackConfirmAction?tLabels=<NUM> is Akamai-protected — a Verified + residential-proxy Browserbase session is mandatory. Pays a 50-100x cost premium per lookup vs the API path. - method: api rationale: >- Legacy XML Web Tools API at secure.shippingapis.com/ShippingAPI.dll?API=TrackV2 still serves but is being phased out under USPS's April 2026 'API Access Control' initiative. Use the v3 REST API for new integrations. |
| verified | false |
| proxies | false |
Given a USPS tracking number, return the current package status, last-known location, expected delivery date, and the full chronological event timeline. Read-only — never schedules, redirects, or modifies the shipment. Two equivalent surfaces are documented: the modern OAuth2-gated REST API (recommended) and the public browser tracking page (fallback when no API credentials are available).
USPS exposes a clean OAuth2-gated REST API at apis.usps.com/tracking/v3/tracking/{trackingNumber} that returns the same structured data the public tracking page renders. Lead with this. The public tools.usps.com/go/TrackConfirmAction?tLabels=... deep-link is fronted by Akamai Bot Manager (verified — see Gotchas), so the browser fallback requires a Verified + residential-proxy session and pays a 50-100× cost premium per lookup. Use the API path unless the caller has explicitly opted out of credentialed access.
Prerequisites (one-time per deployment):
https://gateway.usps.com/). Free.apis-tem.usps.com (Testing Environment for Mailers) during integration — same auth, sandbox shipments.Per-lookup flow:
Obtain an OAuth2 access token (client-credentials grant). Tokens are typically valid 8 hours; cache and re-use.
POST https://apis.usps.com/oauth2/v3/token
Content-Type: application/x-www-form-urlencoded
grant_type=client_credentials
&client_id=<CONSUMER_KEY>
&client_secret=<CONSUMER_SECRET>
&scope=tracking
Returns { "access_token": "<JWT>", "token_type": "Bearer", "expires_in": 28799, "scope": "tracking" }.
Call the tracking endpoint:
GET https://apis.usps.com/tracking/v3/tracking/{trackingNumber}?expand=DETAIL
Authorization: Bearer <access_token>
Accept: application/json
The expand=DETAIL query param returns the full event timeline; without it the response is summary-only (status + expected delivery only). Pass the tracking number unformatted (digits only; strip spaces and dashes).
Map the JSON to the output schema in "Expected Output" below. Key fields:
trackingNumber — echo back.status / statusCategory — verbatim USPS phrase ("Delivered, Front Door/Porch") and the high-level category bucket.expectedDeliveryDate (ISO date) — only present for in-transit shipments; null after delivery.originCity / originState / destinationCity / destinationState — origin and destination metadata.trackingEvents[] — reverse-chronological by default (most recent first). Each event has eventTimestamp (ISO 8601), eventType / eventCode, eventDescription, and a location block (eventCity, eventState, eventZIP, eventCountry). Reverse the array if your output schema requires chronological order.Status-category mapping — USPS returns free-form status text but most consumers want a small enum. Bucket by the leading verb/phrase:
| Category | Trigger phrases |
|---|---|
delivered | "Delivered" (any sub-state — Front Door, Mailbox, Parcel Locker, etc.) |
out_for_delivery | "Out for Delivery" |
in_transit | "In Transit", "Arrived at", "Departed", "Accepted", "USPS in possession" |
pre_shipment | "Shipping Label Created", "Pre-Shipment", "Awaiting Item" |
available_for_pickup | "Available for Pickup", "Held at Post Office" |
alert | "Delivery Exception", "No Access", "Return to Sender", "Forwarded" |
delivery_attempted | "Delivery Attempted", "Notice Left" |
Treat unmapped strings as in_transit and surface the raw text — USPS occasionally adds new event types.
A Verified + residential-proxy Browserbase session can scrape the public tracking page. The page is fully JS-rendered behind an Akamai challenge — bare fetch always returns the obfuscated _abck JS interstitial, never the real content (verified 2026-05-16: browse cloud fetch --proxies https://tools.usps.com/go/TrackConfirmAction?tLabels=... returns 226 KB of Akamai-Grn-stamped challenge HTML, zero tracking data).
SID=$(browse cloud sessions create --keep-alive --verified --proxies | jq -r '.id')
browse cloud browse --connect "$SID" open "https://tools.usps.com/go/TrackConfirmAction?tLabels=<NUM>"
browse cloud browse --connect "$SID" wait load
browse cloud browse --connect "$SID" wait timeout 4000 # Akamai challenge solves over 2-4s after load
browse cloud browse --connect "$SID" snapshot
After the snapshot resolves, the visible tracking card is identified by:
heading "Delivered, Front Door/Porch" or heading "In Transit to Next Facility".To get the full timeline, click the button "Tracking History" ref, wait timeout 1500, then snapshot again. Events render as dt/dd-style rows: date+time first, description on the next line, city/state on the third. Parse top-to-bottom; the list is already reverse-chronological. Cap at the first 30 events — long histories occasionally exceed snapshot's truncation limit, in which case fall back to browse cloud browse --connect "$SID" get text body and regex-parse.
Don't click "Add Tracking Plus", "Schedule Redelivery", "Hold for Pickup", or any USPS-account-linked CTA — they trigger sign-in walls and contaminate the session.
Release the session when done:
browse cloud sessions update "$SID" --status REQUEST_RELEASE
tools.usps.com/go/TrackConfirmAction* and m.usps.com/m/TrackConfirmAction* URL returns a 200 OK with Akamai _abck challenge JS (~220 KB obfuscated script body) when fetched without a real browser. Verified + residential-proxy session is mandatory for the browser fallback — a bare browse cloud fetch (even with --proxies) never sees the actual tracking content. The Akamai-Grn and X-Akamai-Transformed response headers confirm Akamai is in the path.TrackConfirmAjaxAction.action is dead. The old "internal XHR" endpoint that scraping tutorials reference returns 404 with There is no Action mapped for namespace [/] and action name [TrackConfirmAjaxAction]. Don't waste time on it.https://secure.shippingapis.com/ShippingAPI.dll?API=TrackV2&XML=<TrackRequest USERID="..."...> still serves (verified 2026-05-16: returns 80040B1A Authorization failure for unregistered USERIDs), but USPS announced in April 2026 that API Access Control is rolling out across all surfaces. New integrations should use the v3 REST API. The legacy API USERID is not interchangeable with the v3 Consumer Key.scope=tracking in the token request body. Omitting it returns a token without tracking access and the tracking call 403s with insufficient_scope.expand=DETAIL is required for the event timeline. Without it, the response includes only the current status and (if applicable) expected delivery date — no trackingEvents array. This is the single most common foot-gun on the v3 API.USPS:, tracking#:, etc.). USPS tracking numbers are 13, 20, 22, 26, or 30 characters depending on service class.tLabels query param is plural-but-not-an-array. https://tools.usps.com/go/TrackConfirmAction?tLabels=<NUM> is the public deep-link. Some legacy docs/blogs reference qtc_tLabels1=<NUM> (matches the input form's POST name) — both forms reach the same page, but the deep-link form is more stable. Don't try comma-separating multiple numbers; the UI only renders the first.apis-tem.usps.com returns predictable canned responses for test tracking numbers; real production numbers will 404 against it. Use apis.usps.com for real lookups.status field through to the consumer in addition to your normalized status_category enum.* means the date is estimated, not guaranteed. Surface the asterisk or set an is_estimated flag.connect.browserbase.com / connect.usw2.browserbase.com, so the browser fallback was characterized via browse cloud fetch evidence + USPS Developer Portal docs (developers.usps.com/trackingv3r2, /Oauth, /getting-started) rather than an end-to-end browse cloud browse run. The API path is fully exercised at the endpoint-shape level (auth 401/403 + OAuth2 endpoint 404/403 boundary checks) but the JSON response schema in "Expected Output" mirrors USPS's published docs rather than a recorded live response. Treat the browser-fallback selectors as starting hints — they reflect the public page's documented structure but the next agent should verify them once Browserbase WSS connectivity is restored.The skill emits one of three outcome shapes:
// Success — full timeline retrieved
{
"success": true,
"tracking_number": "9400111899223197428490",
"status": "Delivered, Front Door/Porch",
"status_category": "delivered",
"expected_delivery_date": null,
"last_known_location": "ATLANTA, GA 30304",
"origin": { "city": "SAN FRANCISCO", "state": "CA", "zip": "94103" },
"destination": { "city": "ATLANTA", "state": "GA", "zip": "30304" },
"events": [
{
"timestamp": "2026-03-12T13:42:00-04:00",
"event_code": "01",
"description": "Delivered, Front Door/Porch",
"location": { "city": "ATLANTA", "state": "GA", "zip": "30304" }
},
{
"timestamp": "2026-03-12T09:15:00-04:00",
"event_code": "OF",
"description": "Out for Delivery",
"location": { "city": "ATLANTA", "state": "GA", "zip": "30304" }
},
{
"timestamp": "2026-03-12T08:51:00-04:00",
"event_code": "AR",
"description": "Arrived at Post Office",
"location": { "city": "ATLANTA", "state": "GA", "zip": "30304" }
}
],
"is_estimated_delivery": false,
"source": "api",
"error_reasoning": null
}
// In-transit — expected delivery known, events partial
{
"success": true,
"tracking_number": "9405511899223197428490",
"status": "In Transit to Next Facility",
"status_category": "in_transit",
"expected_delivery_date": "2026-03-22",
"last_known_location": "MEMPHIS, TN 38101",
"origin": { "city": "SAN FRANCISCO", "state": "CA", "zip": "94103" },
"destination": { "city": "ATLANTA", "state": "GA", "zip": "30304" },
"events": [
{
"timestamp": "2026-03-20T02:14:00-05:00",
"event_code": "10",
"description": "Departed USPS Regional Facility",
"location": { "city": "MEMPHIS", "state": "TN", "zip": "38101" }
}
],
"is_estimated_delivery": true,
"source": "api",
"error_reasoning": null
}
// Not found — invalid or aged-out tracking number
{
"success": false,
"tracking_number": "9999999999999999999999",
"status_category": "not_found",
"error_reasoning": "A status update is not yet available on your package. It will be available when the shipper provides an update or the package is delivered to USPS. Check back soon."
}
// Blocked by anti-bot wall (browser fallback only — API path never produces this)
{
"success": false,
"tracking_number": "9400111899223197428490",
"status_category": "blocked",
"error_reasoning": "Akamai Bot Manager interstitial did not resolve within 8s; retry with a fresh Verified+proxy session or fall back to the API path."
}
Prerequisites
Time Estimate
15-45 minutes depending on use case complexity
Steps
Common Pitfalls
✓ Do
✗ Don't
💡 Pro Tips
✓ Use when
Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.
✗ Avoid when
Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.
apartments.com/search-rentals-33icwz
dior.com/find-all-products-qxm8lj
booking.com/search-hotels-asq6cc
aj-geddes/useful-ai-prompts
nav.com/get-smb-funding-2s1rpm
apps.ilsos.gov/business-search-wk944z
track-package reduced setup friction for our internal harness; good balance of opinion and flexibility.
I recommend track-package for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
We added track-package from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
track-package fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
We added track-package from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
Useful defaults in track-package — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
track-package reduced setup friction for our internal harness; good balance of opinion and flexibility.
track-package has been reliable in day-to-day use. Documentation quality is above average for community skills.
Keeps context tight: track-package is the kind of skill you can hand to a new teammate without a long onboarding doc.
Registry listing for track-package matched our evaluation — installs cleanly and behaves as described in the markdown.
showing 1-10 of 44