Provero Logo

Global address lookup API

Help customers pick an address in your form. Search for suggestions, let the customer choose one, then fetch the full address for their selection.

  1. Send the address the customer has typed in input. You get a list of matching suggestions. Show the list and let the customer choose an address. A postcode alone may return an area rather than individual premises; use the UK Postcode Picker when you need a premise list for a UK postcode.

    Example: the customer chooses this suggestion

    1600 Pennsylvania Avenue NW, Washington, DC, USA

    place_id: example-place-id

    For another search before selection, send the returned session_id with the new input. The first successful live search charges the lookup session rate. Further searches using the same active session_id are included, even if the session ends without a selected address. A new session incurs a new charge.

    Keep the chosen suggestion’s place_id and the session_id. Send both IDs in the next request so Provero can show the searches and details together.

  2. Send the chosen suggestion’s place_id and the returned session_id to the details endpoint. You get the full address, with separate fields such as town, postcode and country when available.

    Example: send that same ID in your next request

    { "place_id": "example-place-id", "session_id": "4bb98d42-05e5-4e95-8582-a398954bff45" }

    Use the returned address to fill your form. formatted_address gives you the address as one string; the structured fields let you fill individual inputs.

    The first live details request in the active, charged session is included. A standalone details request, or another request after the session has ended, incurs a new lookup session charge. Demo responses are free.

For address validation

Finding an address does not confirm it is correct or deliverable. To validate it, send the returned formatted_address in address.addressLines to the Global address validation API.

Try the two-step lookup

Open a step below for request fields, code and response examples.

1. Find address

Search for suggestions, then let the customer select one. Pass that suggestion’s non-empty place_id to step 2; the examples use example-place-id for the same address in both steps.

Endpoint

POST
https://api.provero.io/api/validate/address/suggest

Headers

Authorization:
Content-Type: application/json
Accept: application/json


Request Body

Field Type Required Description
input string Yes Address search text, up to 255 characters. A postcode alone may return an area rather than an individual premise.
included_region_codes string[] No Up to 15 ISO-2 region codes. Codes are normalised to uppercase and UK becomes GB. Omit or supply an empty array for no region filter.
language_code string No Preferred response language, up to 10 characters. Omitted, null or empty values leave language selection to the lookup service.
session_id string (UUID) No Provero session identifier from an earlier Find address response. Reuse it for further searches while the customer is choosing an address. Omit it to start a new session. Sessions expire after five minutes of inactivity and close when details are requested.
Request Payload Example (JSON)
{
    "input": "1600 Pennsylvania Avenue NW",
    "included_region_codes": [
        "US"
    ],
    "language_code": "en"
}

Request Examples

Choose language Bash (cURL) 5 examples
curl -X POST https://api.provero.io/api/validate/address/suggest \
  -H "Authorization: Bearer REPLACE_WITH_API_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{
    "input": "1600 Pennsylvania Avenue NW",
    "included_region_codes": [
        "US"
    ],
    "language_code": "en"
}'

Response Examples

Choose response example Suggestions (200) 6 examples
{
    "session_id": "4bb98d42-05e5-4e95-8582-a398954bff45",
    "input": "1600 Pennsylvania Avenue NW",
    "suggestions": [
        {
            "place_id": "example-place-id",
            "text": "1600 Pennsylvania Avenue NW, Washington, DC, USA",
            "main_text": "1600 Pennsylvania Avenue NW",
            "secondary_text": "Washington, DC, USA",
            "types": [
                "street_address"
            ]
        }
    ]
}

Response Body

Success structure

Field Name Type Always
Returned
Example Description
session_id string (UUID) Yes Reuse for further searches, then send with the chosen place_id to Get address details. This is not a Google token.
input string Yes Search input echoed in the response.
suggestions object[] Yes Suggestions for an address picker. An empty array is a successful lookup with no matches, not an error.
suggestions[].place_id string|null Yes Identifier to pass to Get address details. May be null when unavailable; only allow selection for resolution when a non-empty identifier is present.
suggestions[].text string Yes Full suggestion label, or an empty string when unavailable.
suggestions[].main_text string Yes Primary display text, or an empty string.
suggestions[].secondary_text string Yes Supporting display text, or an empty string.
suggestions[].types string[] Yes Place categories; may be empty. These are not validation verdicts.

Error structure

Field Name Type Always
Returned
Example Description
message string No Authentication, request-validation or billing error message.
errors object No Field errors for HTTP 422 invalid requests, rejected before lookup without charge.
service string No Billing service identifier in HTTP 402 responses.
required_amount string No Required charge in HTTP 402 responses; the example rate is illustrative.
current_balance string No Available balance in HTTP 402 responses.
requestError.serviceException.messageId string No Service access or lookup failure message. HTTP 403 indicates denied service access; HTTP 422 can also indicate an unconfigured lookup service. Other service failures use the returned HTTP error status.
requestError.serviceException.code integer No Service error code. Inspect the HTTP status as well; this is not a validation verdict.
requestError.serviceException.errorCode string No Optional machine-readable service access error code when supplied.

2. Get address details

Retrieve structured details using the place_id selected in step 1. Include its session_id to link all searches and the selected address in Provero. Invalid links return HTTP 422 before lookup. Handle missing address details before displaying or submitting them for validation. An invalid or unavailable identifier can also produce a service error rather than an empty success response.

Endpoint

POST
https://api.provero.io/api/validate/address/resolve

Headers

Authorization:
Content-Type: application/json
Accept: application/json


Request Body

Field Type Required Description
session_id string (UUID) No The session_id returned by Find address. The chosen place_id must appear in a suggestion from this session. Omit it to make an unlinked request. Existing lookup_id requests remain supported.
place_id string Yes Non-empty identifier from the selected suggestion, up to 1024 characters. Leading and trailing whitespace is trimmed. The example matches step 1.
Request Payload Example (JSON)
{
    "place_id": "example-place-id",
    "session_id": "4bb98d42-05e5-4e95-8582-a398954bff45"
}

Request Examples

Choose language Bash (cURL) 5 examples
curl -X POST https://api.provero.io/api/validate/address/resolve \
  -H "Authorization: Bearer REPLACE_WITH_API_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{
    "place_id": "example-place-id",
    "session_id": "4bb98d42-05e5-4e95-8582-a398954bff45"
}'

Response Examples

Choose response example Address details (200) 7 examples
{
    "valid": true,
    "address_complete": true,
    "place_id": "example-place-id",
    "session_id": "4bb98d42-05e5-4e95-8582-a398954bff45",
    "formatted_address": "1600 Pennsylvania Avenue NW, Washington, DC 20500, USA",
    "postal_address": {
        "regionCode": "US",
        "postalCode": "20500",
        "administrativeArea": "DC",
        "locality": "Washington",
        "addressLines": [
            "1600 Pennsylvania Avenue NW"
        ]
    },
    "address": {
        "Address1": "1600 Pennsylvania Avenue NW",
        "Address2": "",
        "Town": "Washington",
        "County": "DC",
        "Postcode": "20500",
        "Country": "US"
    },
    "address_components": [
        {
            "name": "1600",
            "short_name": "1600",
            "type": "street_number",
            "types": [
                "street_number"
            ]
        }
    ],
    "location": {
        "latitude": 38.8977,
        "longitude": -77.0365
    },
    "types": [
        "street_address"
    ],
    "display_name": "1600 Pennsylvania Avenue NW"
}

Response Body

Top-level fields are present, but optional address details can be empty strings or empty arrays. Nested postal fields and coordinates may be absent. Lookup flags do not replace Global address validation.

Success structure

Field Name Type Always
Returned
Example Description
session_id string (UUID) No Verified session identifier, returned when supplied.
valid boolean Yes True when postal address data is present. This is a lookup flag, not a validation or deliverability verdict.
address_complete boolean Yes True when postal address data and a non-empty formatted address are present. Does not confirm component correctness or deliverability.
place_id string Yes Resolved place identifier; falls back to the requested identifier when not supplied in lookup data.
formatted_address string Yes Formatted address, or an empty string when unavailable.
postal_address object|array Yes Structured postal data when available, otherwise an empty array. Nested fields are optional and vary by country.
postal_address.regionCode string No Country or region code when supplied.
postal_address.postalCode string No Postal or ZIP code when supplied.
postal_address.administrativeArea string No State, province or administrative area when supplied.
postal_address.locality string No City or town when supplied.
postal_address.addressLines string[] No Address lines when supplied. Additional postal fields may also be returned.
address object Yes Convenience address fields, always present as strings; unavailable values are empty.
address.Address1 string Yes First postal address line, falling back to the formatted address.
address.Address2 string Yes Remaining postal address lines joined with commas, or an empty string.
address.Town string Yes Postal locality, or an empty string.
address.County string Yes Postal administrative area, or an empty string.
address.Postcode string Yes Postal code, or an empty string.
address.Country string Yes Postal region code, or an empty string.
address_components object[] Yes Address components with name, short_name, type and types; may be empty. Names and type may be empty strings, and types may be an empty array.
location object|array Yes Coordinates when available, otherwise an empty array. Individual coordinate fields are not guaranteed.
types string[] Yes Place categories, or an empty array.
display_name string Yes Display label derived from the address, or an empty string.

Error structure

Field Name Type Always
Returned
Example Description
message string No Authentication, request-validation or billing error message.
errors object No Field errors for HTTP 422 invalid requests, rejected before lookup without charge.
service string No Billing service identifier in HTTP 402 responses.
required_amount string No Required charge in HTTP 402 responses; the example rate is illustrative.
current_balance string No Available balance in HTTP 402 responses.
requestError.serviceException.messageId string No Service access or lookup failure message. HTTP 403 indicates denied service access; HTTP 422 can also indicate an unconfigured lookup service. Other service failures use the returned HTTP error status.
requestError.serviceException.code integer No Service error code. Inspect the HTTP status as well; this is not a validation verdict.
requestError.serviceException.errorCode string No Optional machine-readable service access error code when supplied.