Skip to content

Address by Zipcode

Look up address information by postal code. Queries the local database first; if not found, falls back to an external geocoding service.

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

Parameters

ParameterTypeRequiredDescription
zipCodeStringYesPostal/zip code to look up
countryCodeStringNoISO 3166-1 alpha-2 country code (filters results when provided)

Request

bash
curl -X POST "https://api.alaikis.com/std/biz/bigdata/data/zipcode/address" \
  -H "X-API-Key: your_api_key" \
  -H "X-API-Secret: your_api_secret" \
  -d 'bizContent={"zipCode": "90210", "countryCode": "US"}'

Response

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

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

Lookup Behavior

  1. Local database first: Queries the internal postal code database
  2. External fallback: If no results found locally, queries an external geocoding API
  3. Country filtering: When countryCode is provided, results are filtered to match the specified country

Error Codes

CodeDescription
400Invalid JSON format
406Missing required parameter (zipCode)