Tag: address validation

Screen-scraping Addresses from the USPS

As I mentioned in my posts about Web Tools, I wasn’t entirely sure I’d get approval from the Post Office to use the Web Tools servers, so I came up with a plan B. That plan B being screen-scraping the USPS’ website. Like the others, I wrote the code originally in 2010. As it happened, …

Continue reading

USPS Web Tools for Address Validation, the tl;dr version

If you just want to know how the hell to get up and past the scripted tests and get on the live server, this post is for you. It goes like so:

Continue reading

USPS Web Tools for Address Validation, part two

(As noted in part one, this was originally written in 2010 or so, but everything should still apply today.) In Part 1, I walked through the PHP code needed to send and retrieve the XML data the USPS Web Tools API works with. We managed to work our way through the first scripted test you …

Continue reading

USPS Web Tools for Address Validation, part one

(Note: this was originally written in 2010, to the best of my memory. While some references may be outdated, the code still works, as I’m still using it today.) To use the USPS Web Tools API, you have to sign up and get a user ID and password. This is easy enough to do. Go …

Continue reading