/
Get Zip code Details API

Get Zip code Details API

Overview

The Get Zipcode Details API retrieves detailed information about a specific zipcode. This information includes geographical and demographic data, providing developers with insights into the specified area.

Base URL

The base URL for the API is https://api.realtyfeed.com.

Endpoint

Get Zip code Details

Endpoint

GET /geo/zipcode/{zipcode}

Path Parameters

  • zipcode (string): The target zipcode for which details will be retrieved.

Response

  • 200 OK: Returns a JSON response containing detailed information about the specified zip code.

    Example:

{ "type": "Feature", "properties": { "OBJECTID": 8572, "ZIP_CODE": "28376", "PO_NAME": "Raeford", "STATE": "NC", "POPULATION": 44678, "POP_SQMI": 277.93, "SQMI": 160.75, "Shape__Area": 621825381.054688, "Shape__Length": 198455.036970826 }, "geometry": { "type": "Polygon", "coordinates": [ [ [-79.444644, 35.040765], [-79.444517, 35.041009], [-79.444392, 35.041246], ... ] ] } }

404 Not Found: If no details are found for the given zip code.

Example

Request:

GET /geo/zipcode/28376

Response:

{ "type": "Feature", "properties": { "OBJECTID": 8572, "ZIP_CODE": "28376", "PO_NAME": "Raeford", "STATE": "NC", "POPULATION": 44678, "POP_SQMI": 277.93, "SQMI": 160.75, "Shape__Area": 621825381.054688, "Shape__Length": 198455.036970826 }, "geometry": { "type": "Polygon", "coordinates": [ [ [-79.444644, 35.040765], [-79.444517, 35.041009], [-79.444392, 35.041246], ... ] ] } }

Usage

To use the Get Zipcode Details API, perform a GET request to the specified endpoint with the target zip code as a path parameter. The API will respond with detailed information about the specified zip code.

Error Handling

  • 404 Not Found: If no details are found for the given zip code, the API will respond with a 404 status code and an error message in the response body.

Related content

State Zip codes API
State Zip codes API
More like this
Nearby Zip codes API
Nearby Zip codes API
More like this
Geo Boundaries Downsampling (Resolution)
Geo Boundaries Downsampling (Resolution)
Read with this
Zip codes List API
Zip codes List API
More like this
Zip code Auto Suggestion API
Zip code Auto Suggestion API
Read with this
Zip codes Inside Bounding Box API
Zip codes Inside Bounding Box API
More like this