Classic API — Address SINGLEV2

Support DQE
Support DQE
  • Updated

Use the /SINGLEV2/ endpoint to return address suggestions from a single free-form address input. Once the user selects an address, optionally call /COMPLV2/ to retrieve building or apartment complement details.

GET request

Endpoint

https://{SERVER_ADDRESS}/SINGLEV2/?Adresse={INPUT}&Taille={LENGTH}&Pays={COUNTRY_CODE}&Licence={LICENCE_CODE}&NbMax={NB}&Version=1&Instance={VALUE}&Langue={LANGUAGE}&Filter={FILTER}

Replace the values in braces with your own information.

ParameterValueDescriptionMandatory/Optional
SERVER_ADDRESS{SERVER_ADDRESS}Address of the DQE server that will process the data.Mandatory
Licence{LICENCE_CODE}Licence code assigned to your account or token generated by oauth2.Mandatory
Adresse{INPUT}User input.Mandatory
Pays{COUNTRY_CODE}ISO 3-letter country code.Mandatory
Taille{LENGTH}Character limit for the address. Works only on Latin addresses.Optional. Default: 38. Recommended minimum: 32.
NbMax{NB}Limits the number of returned responses. Maximum: 20.Optional. Default: 20.
Version1Allows the street type to be returned in the response. Without this parameter, the street type is not sent in the dedicated key.Optional
Instance{VALUE}Allows you to pass a value during the call, returned in the response.Optional
Langue{LANGUAGE}For Japan only: JP Kanji, JK Katakana, EN English.Optional
Filter{FILTER}France only. 1: all addresses. 2: no Cedex. 3: Cedex only.Optional

POST request

Endpoint

https://{SERVER_ADDRESS}/SINGLEV2/

Add the parameters below in the request body using x-www-form-urlencoded.

ParameterValueDescriptionMandatory/Optional
Licence{LICENCE_CODE}Licence code assigned to your account or token generated by oauth2.Mandatory
Adresse{INPUT}User input.Mandatory
Pays{COUNTRY_CODE}ISO 3-letter country code.Mandatory
Taille{LENGTH}Character limit for the address. Works only on Latin addresses.Optional. Default: 38. Recommended minimum: 32.
NbMax{NB}Limits the number of returned responses. Maximum: 20.Optional. Default: 20.
Version1Allows the street type to be returned in the response.Optional
Instance{VALUE}Allows you to pass a value during the call.Optional
Langue{LANGUAGE}For Japan only: JP Kanji, JK Katakana, EN English.Optional
Filter{FILTER}France only. 1: all; 2: no Cedex; 3: Cedex only.Optional

Response

Success response

The JSON response is a dictionary whose keys are numbered from 1 to n. Each element contains one address suggestion.

{
  "1": {
    "Instance": "",
    "IDLocalite": "75056",
    "CodePostal": "75008",
    "Localite": "PARIS 8",
    "SousLocalite": "",
    "Pays": "FRA",
    "LieuDit": "",
    "Latitude": "",
    "Longitude": "",
    "IDVoie": "750080153",
    "Label": "12 AV DES CHAMPS ELYSEES 75008 PARIS 8",
    "Numero": "12",
    "Num": "12",
    "NbNumero": "148",
    "valid_num": "1",
    "NumSeul": "12",
    "ListeNumero": "1,3,5,...",
    "TypeVoie": "AV",
    "Voie": "DES CHAMPS ELYSEES",
    "Complement": "",
    "Saisie": "12 AV DES CHAMPS ELYSEES"
  }
}
KeyValueFranceInternational
InstanceValue passed as a parameter during the call and returned in the response.STRING(3)STRING(3)
ProvinceRegion where the city is located. For the USA, this field contains the 2-letter state code.Not availableSTRING(50)
IDLocaliteUnique code for each city. INSEE code for France.STRING(20)STRING(20)
CodePostalCity postal code.STRING(10)STRING(10)
LocaliteCity name.STRING(38)STRING(50)
SousLocaliteUsed for countries other than France.EmptySTRING(50)
PaysISO country code.STRING(3)STRING(3)
LieuDitDependent locality if applicable.STRING(38)Empty
LatitudeLatitude of the address.Not availableEmpty
LongitudeLongitude of the address.Not availableEmpty
IDVoie or CodeVoieUnique number identifying the street.STRING(20)STRING(20)
LabelLabel displayed for auto-completion. A street number in brackets indicates that the street number does not exist.STRING(255)STRING(255)
Region1Official region.Not availableSTRING(50)
Region2County.Not availableSTRING(50)
Region3County.Not availableSTRING(50)
Region4Other region information.Not availableSTRING(50)
NumeroStreet number with complement.STRING(38)STRING(38)
NumStreet number with complement.STRING(4)STRING(4)
NbNumero or NbnumeroNumber of numbers in the street.INTEGER(4)INTEGER(4)
valid_num1: the number exists in the street. 0: the number does not exist.INTEGER(1)Not available
NumSeulStreet number without the number complement.STRING(4)STRING(4)
ListeNumeroList of available numbers in the street.STRING(1024)STRING(1024)
TypeVoieStreet type. Returned when Version=1 is set.STRING(20)Not available
VoieStreet name.STRING(38)STRING(150)
SuburbSuburb.Not availableSTRING(50)
ComplementAdditional address information.EmptySTRING(50)
Complement2Additional address information 2.Not availableSTRING(50)
SaisieText input used to search the street.STRING(255)STRING(255)
EntrepriseCompany name.STRING(38)UK only
ThoroughfareDependent street.Not availableUK only

Error response

Error typeResponse type
Missing or incorrect Licence parameterEmpty response
Missing Adresse parameter400 Bad Request
Missing Pays parameter400 Bad Request
Error on a parameter name400 Bad Request

Related to

Was this article helpful?

0 out of 0 found this helpful