TrackSort — Tracking Number Validator & Normalizer
Pricing
from $2.00 / 1,000 processed tracking numbers
TrackSort — Tracking Number Validator & Normalizer
Detect the carrier, validate the format and normalize a batch of shipment tracking numbers — UPS, FedEx, DHL Express and USPS. One dataset item per number; no live tracking lookups, pay per event.
Pricing
from $2.00 / 1,000 processed tracking numbers
Rating
0.0
(0)
Developer
Khristian Kopachelli
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
14 hours ago
Last modified
Categories
Features
Share
TrackSort — Shipment Tracking Number Normalizer
Give the Actor a batch of shipment tracking numbers. For each one it detects the carrier, validates the format against that carrier's documented rules and returns a normalized form — one dataset item per number.
No live tracking lookups. TrackSort never contacts a carrier, uses no
proxies and makes no outbound requests at all: it is pure format
classification, so runs are fast and cheap. Live status is deliberately out of
scope (see docs/PRD.md §9).
Supported carriers (v1)
| Carrier id | Carrier | Format rule |
|---|---|---|
ups | UPS | 1Z + 16 alphanumeric characters |
fedex | FedEx | 12, 15, 20 or 22 digits |
dhl | DHL Express | 10 or 11 digits |
usps | USPS | 20–22 digits |
Each rule cites its public source and verification date in src/carriers.ts.
Where two carriers' formats genuinely overlap — a 20- or 22-digit number fits
both USPS IMpb and FedEx, and FedEx Ground Economy legitimately carries USPS
numbers — the Actor does not guess: the item gets carrier: null,
valid: true, an ambiguous-carrier issue and both ids in alternates.
Input
{"trackingNumbers": ["1Z 999-AA1 0123 4567 84","123456789012","9400 1118 9922 3197 4284 9","not-a-tracking-number"],"carriers": ["ups", "fedex", "dhl", "usps"],"includeUnknown": true,"maxItems": 1000}
trackingNumbers— required, up to 10,000 entries.carriers— optional allow-list; excluded carriers are reported asfiltered-carrier:<id>issues, never silently dropped.includeUnknown— defaulttrue: numbers matching no carrier format still get an item (carrier: null,valid: false). Setfalseto skip those unbilled; numbers that match a format — including filter-excluded and ambiguous matches — are always delivered with their issues disclosed.maxItems— process at most this many numbers per run (default 1,000, max 10,000); the rest are reported as truncated.
Output
One dataset item per number:
{"input": "1Z 999-AA1 0123 4567 84","carrier": "ups","carrierName": "UPS","valid": true,"normalized": "1Z999AA10123456784","checkDigitValid": null,"confidence": "high","issues": []}
normalized— uppercase, spaces/dashes/dots stripped.checkDigitValid—nullwhen the carrier publishes no public check-digit algorithm. Never guessed.issues— machine-readable:unknown-carrier,no-allowed-carrier,ambiguous-carrier,filtered-carrier:<id>,bad-charset,check-digit-failed,empty,truncated-input.alternates— every carrier id whose format matched the number (including filter-excluded ones), in carrier-table order. With a single winner it lists the other matches; withambiguous-carrierorno-allowed-carrierit lists all of them.
A run summary (counts, stop reason) is stored as OUTPUT in the key-value
store.
Pricing
Pay per event: tracksort-number per processed number, plus the standard
apify-actor-start. The apify-default-dataset-item event is not priced.
Numbers dropped by includeUnknown: false are not charged.
Limits
Up to 10,000 numbers per run (maxItems). Numbers over 128 characters are
truncated and flagged truncated-input (raw inputs over 4,096 characters are
rejected). Pure computation — typical runs finish in seconds. Tracking numbers
are treated as customer data: logs carry hashes only, never full numbers.