Skip to main content

Zipcode Area Search

Search postal code areas with full pagination support. Query by country, state, city, postal code, and geographic coordinates.

Endpoint: POST /biz/bigdata/data/zipcode/area

Parameters​

ParameterTypeRequiredDescription
countryCodeStringNo*ISO 3166-1 alpha-2 country code
countryStringNo*Country name
stateStringNo*State/province name
stateCodeStringNo*State/province code
cityStringNo*City name
suburbsStringNo*Suburb/district name
zipCodeStringNo*Postal/zip code (exact match)
zipCodeStartWithStringNo*Postal code prefix (LIKE prefix%)
zipCodeEndWithStringNo*Postal code suffix (LIKE %suffix)
locationStringNo*Location name
latStringNo*Latitude (exact match)
lonStringNo*Longitude (exact match)
pageNumberIntegerNoPage number (default: 1)
pageSizeIntegerNoPage size (default: 30)

*At least one search parameter is required (excluding pagination parameters).

Request​

curl -X POST "https://api.alaikis.com/std/biz/bigdata/data/zipcode/area" \
-H "X-API-Key: your_api_key" \
-H "X-API-Secret: your_api_secret" \
-d 'bizContent={"countryCode": "US", "state": "California", "pageNumber": 1, "pageSize": 10}'

Response​

{
"code": 200,
"msg": "success",
"data": {
"content": [
{
"id": 1001,
"country": "United States",
"countryCode": "US",
"state": "California",
"stateCode": "CA",
"city": "Los Angeles",
"suburbs": "Beverly Hills",
"zipCode": "90210",
"location": "Beverly Hills",
"latitude": "34.1030",
"longitude": "-118.4100",
"createdTime": "2024-01-15T10:30:00",
"validAdministrativeType": "city",
"isValid": true
}
],
"totalElements": 2530,
"pageNumber": 0,
"pageSize": 10
}
}

Data Model​

FieldTypeDescription
idIntegerUnique record ID
countryStringCountry name
countryCodeStringISO 3166-1 alpha-2 country code
stateStringState/province name
stateCodeStringState/province code
cityStringCity name
suburbsStringSuburb/district name
zipCodeStringPostal/zip code
locationStringLocation description
latitudeStringLatitude in decimal degrees
longitudeStringLongitude in decimal degrees
createdTimeStringRecord creation timestamp
validAdministrativeTypeStringAdministrative type validation
isValidBooleanWhether the record is validated

Pagination​

The response uses a paginated structure:

FieldTypeDescription
contentArrayResult records for current page
totalElementsLongTotal number of matching records
pageNumberIntegerCurrent page number (0-based)
pageSizeIntegerNumber of records per page

Error Codes​

CodeDescription
400Invalid JSON format
406No search parameters provided