Prompt
I'm building software for international shipments with customs paperwork. What API should I use?
Latest observation
Nov 4, 2026
OpenAI APIWeb search: off
For international shipping with customs paperwork, the best API depends on what you need to automate:
If you need shipping labels + customs forms + carrier rates
Use a shipping API/aggregator such as:
- EasyPost
- Shippo
- ShipEngine
- AfterShip Shipping
These typically support:
- International labels
- Customs declarations
- Commercial invoices
- Duties/tax-related data fields
- Multiple carriers through one integration
If you need direct carrier integration
Use the carrier’s own APIs, for example:
- DHL Express API
- FedEx Web Services / FedEx APIs
- UPS APIs
- USPS APIs for limited international cases
- DPD / TNT / Royal Mail depending on region
These are better if you want:
- Carrier-specific services
- Better control over shipment rules
- Direct billing and tracking integration
If you need customs classification or compliance automation
You may also need a separate API for:
- HS code lookup/classification
- Duty/tax calculation
- Denied party screening / trade compliance
- Address validation
Examples in this space include customs/compliance vendors and trade automation platforms.
Practical recommendation
If you’re starting from scratch, I’d usually recommend:
- EasyPost or Shippo if you want speed of integration and broad carrier support
- FedEx/DHL/UPS APIs if you already know the primary carriers you’ll use and need deeper control
Key features to confirm before choosing
Make sure the API supports:
- Customs line items
- HS/commodity codes
- Country of origin
- Duties/taxes/incoterms
- Commercial invoice generation
- Electronic customs data transmission
- Restricted/prohibited item validation
If you want, I can recommend the best API based on:
- which countries you ship to,
- which carriers you use,
- whether you need labels only or full customs compliance.