Contact support

Reference

Address suggest

GET

/api/v1/addresses/suggest/

Street, city, county, and ZIP suggestions from local TIGER data.

Parameters

Name Type Description
lat number Optional latitude. Sent with lng, biases suggestions toward that point. From -90 to 90.
lng number Optional longitude. Sent with lat, biases suggestions toward that point. From -180 to 180.
limit integer Maximum number of rows to return. Default 8, from 1 to 20.
q* string Partial address, city, or ZIP.
state string Two-letter state. Scopes street suggestions when q has no state.
zip string Five-digit ZIP. Scopes street suggestions when q has no ZIP.

* Required.

Response

  • results object[]

    Suggestions. Pass query back as the address on a lookup.

    • kind string

      One of address, place, zcta.

    • label string
    • query string

Example

{
  "results": [
    {
      "kind": "address",
      "label": "1600 Pennsylvania Avenue NW, Washington, DC 20500",
      "query": "1600 Pennsylvania Avenue NW, Washington, DC 20500"
    }
  ]
}

Status

  • 200 Matching streets, cities, and ZIPs.
  • 400 Missing query, an unknown state abbreviation, or a ZIP that is not five digits.
  • 401 Missing or invalid credentials.
  • 403 This plan has no call allowance configured.
  • 429 Monthly call limit reached.