27
Views
2
Comments
I need an API that will return a list of zip codes for a city
Question
Application Type
Reactive

I'm using Google API to find locations with their zips.  When I look up by zip code I get the location with no problem.  Also, when I look up a location with one zip code it works perfectly.  However, I'm running into an issue where, when I enter a location with multiple zip codes I don't get any of them.  What I would like is to be able to get back a list of ALL zip codes in that area.

Does anyone know of an API, resource, or a forge component that will be able to return a list of zip codes for a city like Pittsburgh for example that has multiple zips??

2019-01-07 16-04-16
Siya
 
MVP

Please see if this works for you : https://www.zip-codes.com/zip-code-api.asp

2021-11-12 04-59-31
Manikandan Sambasivam

To get a list of all ZIP codes for a city like Pittsburgh using Google API or any other service, you may face limitations with the Google API as it typically returns a single ZIP code for a given location. 

Option 1: Using Google Places API

Google Places API can be used to get detailed place information, but it might not directly provide all ZIP codes for a city. However, you can try querying multiple places within the city and aggregate the ZIP codes. This approach might not be efficient.

Option 2: Using GeoNames API

GeoNames is a geographical database that covers all countries and contains over 11 million place names. You can use the GeoNames postal code search service to get all ZIP codes for a city.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.