Prompt
I need checkout shipping options based on package weight and destination. What API should I use?
Latest observation
Nov 4, 2026
OpenAI APIWeb search: off
Use a shipping rates API / shipping carrier API that can quote rates from package details and destination address.
What to look for
You want an API that accepts:
- Origin address / warehouse
- Destination address or postal code
- Package weight
- Package dimensions (often required too)
- Optional: shipping service level (ground, express, etc.)
Common choices
- EasyPost Rates API — aggregates multiple carriers and returns available rates.
- Shippo Rates API — similar multi-carrier quoting.
- FedEx / UPS / USPS APIs — direct carrier rate quotes if you only use one carrier.
- DHL API — for international shipping.
Best fit for checkout
If you want checkout shipping options from multiple carriers in one call, use:
- EasyPost or Shippo
If you already know which carrier you’ll use, use that carrier’s API directly.
Typical flow
- User enters shipping address at checkout.
- Your backend sends package + destination info to the rates API.
- API returns shipping methods and prices.
- You show the options to the customer.
Important note
Don’t call carrier APIs directly from the browser—do it from your backend to protect API keys.
If you want, I can recommend the best API based on your stack (Shopify, custom app, Node, Python, etc.).