Skip to content
  • Global Express Thoroughfare

    Request

    GlobalExpressThoroughfare is a means for retrieving the thoroughfares within a Postal Code using the Postal Code and beginning of the thoroughfare name as the inputs.

    The service requires at least one of the follwing input combinations:

    Set A - thoroughfare

    Set B - postalcode

    Query
    diacriticreplaceboolean

    True replaces diacritics in the address. False will keep current diacritics in the address results. If left blank, this defaults to False.

    Enum:truefalse
    Example:diacriticreplace=true
    formatstring

    Desired format of the response. Possible values are json, jsonp, or xml, depending on the endpoint.

    Note: the base URL for JavaScript format request is https://expressentry.melissadata.net/jsonp/.

    Enum:"xml""json""jsonp"
    Example:format=json
    idstring, (password)required

    Required. The License Key issued by Melissa.

    Example:id={REPLACE-WITH-YOUR-LICENSE-KEY}
    maxrecordsnumber, <= 100

    The maximum number of records to return.

    Default:10
    Example:maxrecords=20
    countrystringrequired

    Required. The ISO2Code or country name of the address.

    Default:"US"
    Example:country=US
    postalcodestring

    Postal Code, ZIP. The complete postal code.

    Example:postalcode=92688
    thoroughfarestring

    Street, Thoroughfare. This is used to limit the search to thoroughfares beginning with the specified letters. This requires a minimum of three characters. For example, mai will return all thoroughfares beginning with mai in the specified postal code.

    Headers
    Acceptstringrequired

    Format of the response.

    Enum:"application/json""application/javascript""*/*"
    Example:*/*
    Content-Typestringrequired

    Format of the request.

    Enum:"application/json""application/xml""application/javascript""*/*"
    Example:*/*
    curl -i -X GET \
      'https://expressentry.melissadata.net/web/GlobalExpressThoroughfare?id=%7BREPLACE-WITH-YOUR-LICENSE-KEY%7D&country=US' \
      -H 'Accept: */*' \
      -H 'Content-Type: */*'

    Responses

    Global Express Locality Administrative Area response

    Body
    Versionstring

    The current service version number.

    ResultCodestring

    Lists result codes for the most recent request. For more information, see Global Express Entry Result Codes.

    ErrorStringstring

    Lists error codes from any errors caused by the most recent request. For more information, see Global Express Entry Result Codes.

    ResultsArray of objects

    Array with Address array(s) containing the record level fields.

    Response
    { "Version": "8.0.0.1249", "ResultCode": "XS02", "ErrorString": "", "Results": [ {}, {} ] }