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.