A simple Node.js microservice for zip code lookups. Integrates with ZipCodeApi.com.
- Register for a free API key at https://www.zipcodeapi.com/Register
- Create a directory named
private
in the root - Create a file named
zip-code-api-creds.json
, plugging in your API key using the file format below - Change to the root directory of this project in your terminal and run
npm install
- Start the server using
npm start
and start plugging in API routes!
{
"public_key": "YOUR-KEY-HERE"
}
Includes cite and state approximation.
/details/<zipcode>
/distance/<zipcode1>/<zipcode2>