Address Standardization

Using the Address Standardization API

4min
making a request to standardize an address, make a post request to the address standardization endpoint with the address details in the request body request body the request body should contain the data object with the following fields field required/optional type description address required string the street address which you want to process pincode optional string pincode associated with the provided address city optional string city associated with the provided address state optional string state associated with the provided address example request { "data" { "address" "plot 5, sector 44, gurgaon", "pincode" "122003", "city" "gurgaon", "state" "haryana" } } understanding the response the address standardization api returns a json response with the standardized address response schema field type description success boolean indicates if the request was successful true if successful, false if there was an error status code number status code of the request message string information about the processed request request id string a unique id for the request result object contains the standardized address components example response { "success" true, "status code" 200, "message" "request has been processed", "request id" "geocode|cd59836e e385 4e6e 8272 ec593468b78b", "result" { "country" "india", "state" "haryana", "city" "gurgaon", "locality" "sector 44", "sub locality" "delhivery corporate office", "entity information" { "sector" "44", "building name" "delhivery corporate" }, "pincode" 122003 } } in the result object, you'll find the standardized address components, including pincode , country , state , city , locality , and sub locality the entity information object will contain additional information about the address if available parameter required/optional description example data required payload with details of address, pin code, city, and state n/a address required the street address for which you want to get the standardized output plot 5, sector 44, gurgaon pincode optional the pincode associated with the provided address 122003 city optional city associated with the provided address gurgaon state optional state associated with the provided address haryana