API Restful - Description - Address - SINGLE - Response

Support DQE
Support DQE
  • Updated

Single response success

The JSON response is a dictionary (object) containing two main keys:

  • "Found": an integer indicating the number of addresses found (e.g., 0 or 1),
  • "Addresses": a list containing one or more address objects.

Each address object is itself a dictionary containing the following keys:

KeyDescriptionSize / Type
PostalCodePostal code of the address (here, in UK format).String (up to 10 characters)
CityCity name.String (up to 100 characters)
HamletHamlet or locality.Optional string
SpecialDistributionSpecial distribution mention (e.g., PO box, military service, etc.).Optional string
CountryISO 3166-1 alpha-3 country code (e.g., "GBR" for the United Kingdom).Fixed string (3 characters)
StateCodeState or administrative region code (often empty for non-federal countries).Optional string (0–10 characters)
SubLocalitySub-locality or neighborhood (e.g., Chelsea, Soho).Optional string
CityIdInternal or database identifier for the city.String or integer (variable)
InputOriginal user input used for the search or normalization.String (up to 255 characters)
LabelFull formatted address label (user display).String (up to 255 characters)
AdditionalAddressAddress complement (e.g., apartment, building, residence).String (up to 255 characters)
StreetNumberStreet number (e.g., "12").String (up to 10 characters)
StreetTypeStreet type (e.g., "Street", "Avenue", "Road").String (up to 50 characters)
StreetStreet name.String (up to 100 characters)
StreetIdUnique internal street identifier (often concatenated with the postal code).String (variable, up to 50 characters)
IsValidStreetNumberValidity indicator for the street number (1 = valid, 0 = invalid).Integer (0 or 1)
StreetNumberListCountNumber of available street numbers for this street.Integer
StreetNumberListList of available street numbers (if any).String or array
StreetNumberOnlyIsolated street number without complement.Optional string
StateLabelFull name of the state or region.Optional string
AdministrativeAreaAdministrative subdivision above the city.Optional string
SuburbSuburb or district.Optional string
CompanyCompany name associated with the address.Optional string
LatitudeGeographic coordinate (latitude).String or number (e.g., “51.4988”)
LongitudeGeographic coordinate (longitude).String or number (e.g., “-0.1337”)

Example:

{
  "Found": 1,
  "Addresses": [
    {
      "PostalCode": "108-6390",
      "City": "港区",
      "Hamlet": "",
      "SpecialDistribution": "",
      "Country": "JPN",
      "StateCode": "13",
      "SubLocality": "",
      "CityId": "402573",
      "Input": "108-6390",
      "Label": "〒108-6390 東京都港区三田",
      "AdditionalAddress": "",
      "StreetNumber": "",
      "StreetType": "",
      "Street": "三田",
      "StreetId": "558203",
      "IsValidStreetNumber": 1,
      "StreetNumberListCount": 0,
      "StreetNumberList": "",
      "StreetNumberOnly": "",
      "StateLabel": "東京都",
      "AdministrativeArea": "港区",
      "Suburb": "",
      "Company": "",
      "Latitude": "",
      "Longitude": ""
    }
  ]
}

 

Single response error

Error typeRequestResponse type
Missing “Licence” parameter https://{SERVER_ADDRESS}/{VERSION}/single/?Address=UB96NS&Country=GBR{"status": 400, "message": "Missing parameters", "details": "Licence", "error": "bad request"}
Empty “Licence” parameterhttps://{SERVER_ADDRESS}/{VERSION}/single/?Address=UB96NS&Country=GBR&Licence={"status": 400, "message": "Licence must be filled", "details": "Empty", "error": "bad request"}
Incorrect licence numberhttps://{SERVER_ADDRESS}/{VERSION}/single/?Address=UB96NS&Country=GBR&Licence={WRONG LICENSE}{"status": 401, "message": "Your licence is not allowed to cover this functionnality", "details": "{WRONG KucENCE}", "error": "unauthorized_client"}
Missing “Address” parameterhttps://{SERVER_ADDRESS}/{VERSION}/single/?&Country=GBR&Licence={LICENSE}{"status": 400, "message": "Missing parameters", "details": "Address", "error": "bad request"}
Missing “Country” parameterhttps://{SERVER_ADDRESS}/{VERSION}/single/?Address=a&Licence={LICENSE}{"status": 400, "message": "Missing parameters", "details": "Country", "error": "bad request"}
Empty “Address” parameterhttps://{SERVER_ADDRESS}/{VERSION}/single/?Address=a&Country=&Licence={LICENSE}{"status": 400, "message": "Country must be filled", "details": "Empty", "error": "bad request"}
Empty “Country” parameterhttps://{SERVER_ADDRESS}/{VERSION}/single/?Address=a&Country=&Licence={LICENSE}{"status": 400, "message": "Country must be filled", "details": "Empty", "error": "bad request"}
Error on a parameterhttps://{SERVER_ADDRESS}/{VERSION}/single/?Adress=a&Country=GBR&Licence={LICENSE}{"status": 400, "message": "Missing parameters", "details": "Address", "error": "bad request"}

Related to

Was this article helpful?

0 out of 0 found this helpful