
Live USPS Shipping Rates for WooCommerce, Direct from USPS
Get Live USPS Shipping Rates for WooCommerce, Direct from USPS for free, I am not charging you, nor is USPS, not WooCommerce. This is free, like a gift on your birthday.
If you run a WooCommerce store that ships physical goods, you’ve probably tried to get accurate USPS rates into checkout and discovered three things:
- The shipping methods built into WooCommerce only do flat or weight-based rates. Your customer in Maine and your customer in California pay the same number, even though USPS charges very different prices for the same package.
- Most “live rates” plugins on the market either charge a monthly subscription, route every rate request through a proprietary proxy server, or both.
- The older USPS Web Tools API that a lot of plugins still depend on is being shut down. The current REST API is what production stores need to be on, and the migration story has been quiet.
We built Dependent Media Live Rates for USPS to address all three at once. It’s a free, open-source WordPress plugin that talks directly to the current USPS REST API at apis.usps.com using your own developer credentials — no middleman, no monthly fee, no per-request charge.
It’s now available in the WordPress Plugin Directory: wordpress.org/plugins/dependent-media-live-rates-for-usps
What it does
When a customer reaches checkout, the plugin sends each package’s weight, dimensions, origin ZIP, and destination postal code straight to USPS. USPS returns the actual rates, and your customer sees real shipping costs at the moment of purchase.
Supported services:
Domestic US
- USPS Ground Advantage
- USPS Priority Mail
- USPS Priority Mail Express
International
- USPS First-Class Package International
- USPS Priority Mail International
- USPS Priority Mail Express International
What’s different about it
A few design decisions worth calling out:
Bring your own USPS credentials. You register your store as a USPS Developer Portal application once (it’s free), paste the Consumer Key and Consumer Secret into the plugin settings, and rate requests go directly from your site to USPS. Nothing passes through Dependent Media or any other third party. There’s no monthly fee because there’s nothing for us to charge for — you’re talking to a free public API.
No personal data is sent to USPS. The plugin transmits only what’s needed to calculate a quote: package geometry, the origin ZIP, and the destination postal code. No customer name, email address, or IP. OAuth tokens are cached locally in a WordPress transient.
Multi-box packing by default. Most “live rates” plugins lump every cart item into one virtual box, which produces wrong totals as soon as a customer orders more than one heavy item. We rate each cart line as its own package, sum the costs, and automatically split lines that exceed USPS’s per-package weight caps. There’s a “combined” mode too, for stores that genuinely ship everything in a single box.
Only services that price every box are offered. If a customer’s cart triggers a service that USPS only quotes for some of the packages (e.g. Express isn’t valid for one of the lines), we hide the service rather than show a partial total. A misleading number is worse than a missing option.
Optional fallback flat rate. If the USPS API is unreachable at the moment of checkout, you can configure a flat rate that kicks in instead of failing the cart.
Debug logging through WooCommerce → Status → Logs. Every request and response can be inspected when something looks off.
How to install
- In WordPress admin, go to Plugins → Add New and search for Dependent Media Live Rates for USPS
- Click Install, then Activate
- Register a USPS Developer Portal application at developers.usps.com (free)
- Go to WooCommerce → Settings → Shipping, open a shipping zone, and add USPS Live Rates (DM) as a method
- Paste your Consumer Key and Consumer Secret, choose which services to offer, save
- Test with a real cart to confirm rates come back
Open source, contributions welcome
The plugin is GPL-licensed and developed in the open. Issues, feature requests, and pull requests are welcome on GitHub:
- WordPress Plugin Directory: wordpress.org/plugins/dependent-media-live-rates-for-usps
- Source on GitHub: github.com/Dependent-Media/dm-usps-shipping
If you ship USPS through WooCommerce and you’re tired of paying a subscription fee for a plugin that’s basically wrapping a free public API, give it a try.