Validate a US address and calculate domestic postage rates using the USPS APIs v3 platform

domain: developers.usps.com · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Register at developers.usps.com and obtain OAuth 2.0 client credentials, then POST to https://apis.usps.com/oauth2/v3/token to get a bearer token
  2. POST the address object to https://apis.usps.com/addresses/v3/address with streetAddress, city, state, and ZIPCode fields to validate and standardize the address
  3. Use the corrected address from the response (including the ZIP+4 code) for all downstream shipping calls
  4. POST to https://apis.usps.com/prices/v3/base-rates/search with package dimensions, weight, mailClass, and destination ZIP to retrieve domestic pricing
  5. For testing, replace the base URL with https://apis-tem.usps.com to reach the Testing Environment for Mailers (TEM)
  6. Cache validated addresses to avoid redundant validation calls and stay within rate limits

Known gotchas

Related routes

Validate and standardize US addresses using the USPS APIs v3
developers.usps.com · 6 steps · unrated
Use the USPS Addresses v3 API to standardize and validate a US address and look up ZIP+4
developers.usps.com · 5 steps · unrated
Request a shipping rate from the USPS Domestic Labels v3 API and purchase a label with dual-token authentication
developers.usps.com · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans