For AI agents: the documentation index is at llms.txt. Add .md to any page's URL for its Markdown.
Comparing lastscanned vs. direct carrier calls, AfterShip, EasyPost, Ship24 & 17TRACK
When building package tracking into a SaaS product, customer support workflow, order-status portal, or AI agent, engineering teams typically evaluate two options:
Calling carrier websites or official carrier APIs directly from their own backend (Cloudflare Workers, Vercel Functions, AWS Lambda, Fly.io).
Buying a multi-carrier tracking aggregator (AfterShip, EasyPost, Ship24, or 17TRACK).
This page breaks down the concrete technical obstacles of calling dozens of carriers directly from serverless functions, followed by a head-to-head architecture and pricing comparison against legacy tracking aggregators.
If you try to fetch() carrier tracking endpoints directly from a serverless or edge runtime (Cloudflare Workers, Vercel Functions, AWS Lambda, Fly.io, or a Node.js container on a cloud provider), requests fail immediately across both undocumented web endpoints and official carrier developer portals:
Carrier
What happens when your serverless function calls the carrier directly
Undocumented web API (webapis.ups.com/track/api/Track/GetStatus): Protected by Akamai Bot Manager (403 Forbidden on datacenter IPs and Node/Undici TLS fingerprints) and requires a paired GetCSRFToken handshake (X-XSRF-TOKEN-ST header + session cookies). Official UPS Developer Portal: Requires OAuth 2.0 client credentials tied to a 6-character UPS shipper account number.
One stateless GET request with Authorization: Bearer lsk_live_... returns normalized UTC + local timestamps, signedBy, service, and scan events—no UPS account required.
Undocumented web API & api.fedex.com/track/v2/shipments: Akamai Bot Manager sensor checks reject cloud/datacenter requests with 403, while the official FedEx Developer Portal requires OAuth 2.0 token refresh loops, project validation tests, and production key approval.
Auto-detects 12-, 15-, 20-, and 96… 22-digit FedEx barcodes in Pass 1 and returns the full scan history in one synchronous JSON response.
Public tracker (tools.usps.com): Akamai Bot Manager blocks serverless datacenter IPs with 403 or blank challenge pages. Official USPS v3 API: Requires OAuth 2.0 + Customer Onboarding Portal (COPRA) enrollment (Mailer ID / CRID), and still returns "Pre-Shipment: Picked Up by Shipping Partner, USPS Awaiting Item" ("USPS Currently Awaiting Package") for 3–7 days on 92… consolidator labels.
Tracks all 92…–95… and …US S10 numbers with zero USPS enrollment—and lets you pass ?carrier=osm or ?carrier=pitneybowes on 92… consolidator barcodes to retrieve live middle-mile sort scans before USPS acceptance.
Fragmented portals & rate limits: DHL splits tracking across express, ecommerce, and parcel-de divisions, requires a DHL Developer Portal API key (DHL-API-Key) with strict default daily quotas, and returns deeply nested division-specific schemas.
Validates 10-digit Mod-7 (dhlExpress) and S10 …DE check digits, routes across Express, eCommerce, and Paket automatically, and normalizes every scan into one schema.
Datacenter IP blocks (t.lasership.com/OrderEvents): Blocks automated datacenter requests and requires separate legacy LaserShip vs. OnTrac format handling.
Auto-detects both OnTrac (C/D + 14 digits) and LaserShip (1LS…, LX…) formats and returns normalized UTC and local scan timestamps.
Firebase App Check gate (graph.shipveho.com/graphql): Rejects requests with 401/403 unless accompanied by a live x-firebase-appcheck token minted via reCAPTCHA Enterprise (6Lf5dJ4pAAAAAM5213981b76-48e0-a6a8-575b0e5d1). Official Veho Packages API (api.shipveho.com) restricts tracking details unless your merchant API key created the order.
Tracks any VH… parcel (and shipper references via ?carrier=veho) with one API key—no Veho shipper contract or App Check token required.
WAF challenges & shipper-only portals: Purolator sits behind AWS WAF challenges and SOAP/REST contract keys; Canada Post requires Developer Program credentials; Intelcom / Dragonfly (INTLCM…) has no self-serve public developer portal.
Validates 16-digit GS1 Mod-10 (gs1) and S10 …CA numbers, supports Purolator 3L+9D and ?carrier=purolator 12-digit PINs, and auto-detects INTLCM… Dragonfly parcels across Canada and Australia.
Proprietary payloads & proof-of-work gates: SpeedX encodes tracking payloads in base64 proto-JSON; Sendle's 2026 platform requires solving a cryptographic SHA-256 proof-of-work challenge (salt:nonce zero-bit check) on every lookup; TForce only renders year-less HTML tables; UniUni and GOFO offer no public recipient API keys.
Decodes every payload, resolves regional timezones and check digits, and returns a single TrackingResult JSON shape.
Signature headers, IP bans & missing handoff numbers: CNE requires custom MD5 request signatures and blocks shared IPs (ReturnValue: -5555); SunYou wraps responses in JSONP with mislabeled +08:00 destination offsets; UBI mixes duplicate partner scans; merchant APIs require shipper accounts that created the waybill.
Auto-detects all 8 cross-border formats, cleans up timezone offsets, and extracts the destination carrier and final-mile tracking number into message (e.g. "Handed to USPS as 9261..." or "Handed to Australia Post as 33X...").
Instead of maintaining dozens of regex matchers, 4 check-digit validators, per-carrier OAuth token caches, CSRF handshakes, and a response parser per carrier in your serverless function—only to hit 403 Forbidden from a cloud IP—your backend makes a single fetch() call:
// One synchronous GET call from any Cloudflare Worker, Vercel Function, or AWS Lambdaconst res = await fetch( `https://api.containerfeed.com/v1/track/${encodeURIComponent(trackingNumber)}`, { headers: { Authorization: `Bearer ${process.env.LASTSCANNED_API_KEY}`, }, },);const pkg = await res.json();// pkg.carrier -> "ups" | "usps" | "fedex" | "speedx" | "uniuni" | ... (every supported carrier)// pkg.status -> "label_created" | "in_transit" | "out_for_delivery" | "delivered" | "exception" | "returned" | "unknown"// pkg.estimatedDelivery -> "2026-10-28" (or null)// pkg.message -> "Handed to UniUni as UUS5BM1269395824723" (on cross-border handoffs)// pkg.events -> Chronological scan array with UTC `timestamp` and local `localTime`
Most multi-carrier tracking APIs were designed around asynchronous webhook queues for enterprise post-purchase email suites (POST a tracking number to register a tracker, store a tracker ID in your database, and wait for an async webhook to fire).
lastscanned is built for synchronous, stateless GET lookups and AI agent tool calls (MCP and HTTP 402 machine payments) with predictable unique-number pricing.
Capability / Metric
lastscanned
AfterShip
EasyPost
Ship24
17TRACK
Primary request model
Synchronous GET /v1/track/{number} (live JSON in one HTTP call; zero registration)
Async POST tracker registration + webhook queue
POST tracker creation tied to carrier/label accounts
Async POST /trackers + webhook (sync POST /tracking/search on the $99/mo Per-Call plan, can block about a minute)
Async POST register number first + webhook / subsequent poll
Database / webhook state required
None (stateless)
Must store tracker IDs & run webhook endpoints
Must store trk_... IDs & webhook handlers
Must register trackers (on standard plan)
Must register numbers against prepaid quota
Entry API tier
$0/mo Free (5 numbers/day + 1 keyless lookup/day per IP)
Tracking Premium lists the API: $118/mo ($99/mo billed annually) for 1,000 shipments. Essentials does not list the API (November 21, 2026)
Pay-as-you-go ($0.01–$0.03/shipment) or $20/mo BYOCA; free tracker on labels bought through EasyPost
Tracking API: free tier includes the API (10 shipments/mo), then $39/mo for 1,000. All-in-One API from Pro at $59/mo (November 21, 2026)
200 one-time free, then prepaid quota (price not verified)
Cost for 1,000 unique packages / month
$7.99 / month (Pro)
$118 / month (Premium; $99/mo billed annually)
$20.00 / month ($0.02/shipment)
$39.00 / month (Tracking API)
Prepaid quota (current price not verified)
Overage rate above 1,000 packages
$0.015 per extra unique tracking number
1.3× the plan's unit price (November 21, 2026)
$0.01–$0.03 per shipment
$0.045 per extra shipment on the $39 Tracking API plan. Higher per-call prices were not on the pages read November 21, 2026
Prepaid annual tier upgrade required
Cost of re-polling the same package 20x in a month
$0 (unlimited re-polls included on Pro)
Included after async registration
Included on registered tracker
Included on per-shipment tier; 20x charges on per-call tier
Included after registration
Failed / carrier-error lookup billing
Always $0 (only 200 or 404 count)
Quota consumed on registration
Charged on tracker creation
Credit spent on POST /trackers, even if pending / parcel_not_found
Quota consumed on registration
Carrier credentials required
Zero across every supported carrier
Zero (for standard public carriers)
Often requires BYO carrier credentials for full data
Zero
Zero
US, CA & AU regional couriers (uniuni, speedx, gofo, veho, intelcom, bettertrucks, cdl, axlehire, sendle)
All 13 built-in
Partial (enterprise post-purchase focus)
Thin on China/Temu/Shein US regional last-mile
Partial aggregator coverage
Strong on China export, mixed on US regional
92…"USPS Currently Awaiting Package" middle-mile consolidator scans
Built-in via ?carrier=osm & ?carrier=pitneybowes
Requires separate courier slug / tracker registration
Returns USPS pre-shipment status until USPS scan
Depends on courier auto-detection
Depends on courier auto-detection
Cross-border last-mile handoff number extraction
Top-level message ("Handed to <carrier> as <number>") across all 8 cross-border carriers
Nested in courier-specific fields
Limited cross-border consolidator support
Available in aggregator payload
Available after async registration
Native remote MCP server
https://mcp.containerfeed.com/mcp (Streamable HTTP, 1 keyless lookup/day, lsk_pack_ MPP credit keys, OAuth for Claude and ChatGPT connectors)
None native
None native
https://api.ship24.com/mcp: 401 without a paid apik_… key; no keyless lookups
Community stdio wrappers only
Webhook authentication
Per-payload HMAC-SHA256 (Lastscanned-Signature), plus drop-in "format": "17track"
HMAC signature
HMAC signature
One static Authorization: Bearer secret per account (no per-message signature or replay protection)
SHA-256 sign header
Keyless AI agent micropayments (HTTP 402)
Built-in machine payments ($0.50 card pack for 25 numbers, or $0.02 USDC per number on Tempo or Solana)
In interactive workflows—such as "Where Is My Order?" (WISMO) AI support agents, live chat widgets, helpdesk macros, and on-demand order-lookup pages—a customer asks about a package right now.
With legacy webhook platforms (AfterShip, 17TRACK, Ship24's standard plan), looking up an unregistered tracking number requires a multi-step dance:
POST the tracking number to create a tracker in their database.
Receive an initial PENDING status with an empty events: [] array while their background queue schedules a job.
Wait seconds or minutes for an inbound webhook before your application can answer the customer's question.
With lastscanned, there is no tracker registration step and no webhook receiver to host. Call GET https://api.containerfeed.com/v1/track/{trackingNumber} (or pass up to 100 numbers to GET /v1/track?numbers=...) and receive the live normalized status and full scan timeline in the same HTTP response.
Tracking APIs typically force an unpleasant billing trade-off:
Per-shipment enterprise plans (AfterShip at $59/mo, Ship24 at $39/mo) charge steep monthly minimums bundled with branded tracking pages, email marketing flows, and returns portals you may not need.
Per-call APIs charge every single time you poll a tracking number—so polling an active shipment 15 times over 5 days costs 15 API credits.
lastscanned combines synchronous GET simplicity with unique-number monthly billing:
Free tier ($0/mo): 5 unique tracking numbers per day (plus 1 unauthenticated keyless lookup per day per IP so anyone can test GET /v1/track/:number immediately).
Pro tier ($7.99/mo): Includes 1,000 unique tracking numbers per monthly billing period, then $0.015 per additional unique tracking number. Eligible Pro accounts can also opt in, per shipment, to email at their verified account address (10 new shipments per billing period, up to 5 exception emails per shipment). That email is separate from webhooks, follows the watch schedule, and is not a live or guaranteed message. It does not add a tracking charge. Free accounts and prepaid packs do not get it. See Plans.
Growth tier ($69.99/mo): Includes 15,000 unique tracking numbers per monthly billing period, then $0.014 per additional unique number, with the same re-poll rules as Pro. It costs less than Pro once you track more than about 5,100 numbers in a period.
Unlimited re-polls: Once your account looks up a tracking number during a billing period, every subsequent GET /v1/track/:number or MCP track_package call for that same tracking number is free for the rest of the billing period.
Failure protection: Only lookups where the carrier returns a tracking result (200) or confirms 404 not_found count toward your daily allowance, Pro unique-number count, or MPP credit pack. Upstream timeouts or 502 carrier_error responses never cost a cent.
lastscanned is designed from the ground up for both human developers and autonomous AI agents:
Zero-install remote MCP server (https://mcp.containerfeed.com/mcp): Connect Claude Code, Cursor, Windsurf, or custom agents over Streamable HTTP in one command—no local wrapper scripts required:
Claude and ChatGPT connectors (including ChatGPT Developer Mode) sign in with OAuth instead, so no key is ever put in the URL.
Keyless pay-per-request via the Machine Payments Protocol (HTTP 402): When an autonomous agent calls GET /v1/track/{trackingNumber} without an API key after using the IP's 1 free daily lookup (or calls the batch endpoint), lastscanned returns an HTTP 402 Payment Required response with a standard WWW-Authenticate: Payment challenge (mpp.dev, discovery spec at https://api.containerfeed.com/openapi.json). The card pack uses stripe/charge. Per-number payment is USDC on Tempo or Solana:
Card rail (stripe/charge): Pay $0.50 via a Stripe Shared Payment Token for a 25-tracking-number credit pack. Unused credits are returned in the x-lastscanned-key response header (lsk_pack_<32hex>) and credits.key JSON field so the agent can reuse them as a standard Bearer lsk_pack_... token on future requests or MCP calls.
Stablecoin rail (tempo/charge or solana/charge): Pay $0.02 per tracking number in USDC on Tempo or Solana. On Solana you pay the network fee in SOL. A rate quote costs the same $0.02.
Two of the largest sources of "Where Is My Order?" support tickets happen in the handoff gap between carriers:
Domestic 92… USPS consolidator parcels (OSM Worldwide & Pitney Bowes):
Millions of US e-commerce parcels ship via OSM Worldwide or Pitney Bowes bearing a 22-digit 92… (or 30-digit 420 + ZIP + 92…) USPS IMpb barcode. While the consolidator moves the parcel across its regional hubs for 3–7 days, querying USPS only returns "Pre-Shipment: Picked Up by Shipping Partner, USPS Awaiting Item" ("USPS Currently Awaiting Package"). With lastscanned, passing ?carrier=osm or ?carrier=pitneybowes on that exact same 92… number queries the consolidator directly and returns every intermediate hub arrival/departure scan plus the consolidator's estimatedDelivery date.
Cross-border last-mile handoff extraction (Yanwen, 4PX, Cainiao, YunExpress, CNE Express, SunYou, UBI Smart Parcel, Asendia):
When an international parcel clears customs and is handed to a local courier (USPS, UniUni, SpeedX, GOFO, OnTrac, Canada Post, Intelcom / Dragonfly, Australia Post, or Royal Mail), lastscanned extracts both the destination carrier and the secondary tracking number into the top-level message field (for example, "Handed to UniUni as UUS5BM1269395824723"), allowing your app or AI agent to chain a second lookup on the local doorstep barcode automatically.