3 ms·
As it happens, the USPS actually has an online form for this service [0]. For instance, if I query "1600 pennsylvania avenue" in Washington, DC, then I get the
by LegionMammal978 3y ago
As it happens, the USPS actually has an online form for this service [0]. For instance, if I query "1600 pennsylvania avenue" in Washington, DC, then I get the full two-line address back on page 2, complete with the Zip+4 code:
1600 PENNSYLVANIA AVE NW
WASHINGTON DC 20500-0005
I've used this tool before to double-check some more wonky addresses before sending mail to them. I'd be surprised if they don't also offer an API for the service.
[0] https://tools.usps.com/zip-code-lookup.htm?byaddress https://tools.usps.com/zip-code-lookup.htm?byaddress
- yellingdog 3y agoThey do, it's free, and their developer website is shockingly nice. https://developer.usps.com/api/18 https://developer.usps.com/api/18
- pests 3y agoThis works wonderful until the site tries to force the suggestion on you and your address is somehow wonky in the system like not existing at all or under a wrong or mis-ordered apartment number.