Download the us-zipcode-info-app
directory. Click here to download it.
Unzip the downloaded file and navigate to the working directory.
bash
cd RapidAPI\ DevRel-Examples-External\ main\ us-zipcode-info-app/
Install dependencies
bash
npm install
Create .env.local
file in root and add your RapidAPI key.
bash
NEXT_PUBLIC_RAPIDAPI_KEY=YOUR_RAPID_API_KEY
Run the app
bash
npm run dev
You are all set! Open localhost:3000 to see the app.
You can get a lot of information from an area’s zip code. Instead of looking it up on the Internet, we can build an app for it using an API from RapidAPI Hub. In this piece, let’s do just this and build an app to get the information associated with a zip code.