State Zip codes API

Overview

The State Zipcodes API allows you to retrieve a list of zipcodes within a specified state. This is useful for obtaining zip code information for a particular state.

Base URL

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

Endpoint

Get Zipcodes by State

Endpoint

GET /zipcode/state/{state}

Path Parameters

  • state (string): The state code for which zipcodes will be retrieved. Supported state codes include:

    • "TX", "CA", "NY", "PA", "IL", "OH", "MO", "FL", "IA", "MI", "MN", "VA", "NC", "IN", "WI", "KY", "GA", "KS", "WV", "TN", "AL", "OK", "NE", "WA", "AR", "NJ", "CO", "MA", "LA", "MD", "OR", "ME", "MS", "SC", "AZ", "ND", "SD", "MT", "NM", "UT", "CT", "ID", "VT", "NH", "AK", "NV", "WY", "PR", "HI", "RI", "DE", "DC", "VI", "GU", "MP", "AS"

Response

  • 200 OK: Returns a JSON response containing a list of zipcodes within the specified state.

    Example:

  • ["12345", "12346", "12347", ...]

404 Not Found: If no zip codes are found for the given state.

Usage

To use the State Zipcodes API, perform a GET request to the specified endpoint with the state code as a path parameter. The API will respond with a list of zipcodes within the specified state.