Skip to main content
GET
/
zipcodes
/
search
Search Zipcodes
curl --request GET \
  --url https://api.shovels.ai/v2/zipcodes/search \
  --header 'X-API-Key: <api-key>'
{
  "items": [
    {
      "geo_id": "94705",
      "state": "CA"
    },
    {
      "geo_id": "94704",
      "state": "CA"
    },
    {
      "geo_id": "73301-5678",
      "state": "TX"
    }
  ],
  "page": 1,
  "size": 3
}

Authorizations

X-API-Key
string
header
required

Query Parameters

q
string
required

The code to search for in the zipcodes fields.

Response

A list of zipcodes that match the search code.

Paginated response for zipcodes.

items
Zipcodes · object[]
required

The list of items returned in the response following given criteria.

page
integer
required

The page number of the response.

size
integer
required

The number of items returned in the response.

next_page
integer | null
required

The next page number of the response.

I