Send a GET request to lookup a postal code from geo location.
Required. The License Key issued by Melissa.
Example:id={REPLACE-WITH-YOUR-LICENSE-KEY}
Options - Specify which options to use for the selected action. List of options in <OptionName>:<Parameter> format. Multiple options are delimited with a ,.
For example: OptionName:Parameter,OptionName:Parameter.
Level:< CarrierRoute | Plus4 | PostalCode >- This option specifies the level of data to search. Depending on which parameter you set forLevel, you can return the ZIP, ZIP+4, or ZIP and Carrier Route with your records.CarrierRoute- Two fields are returned for each record:- PostalCode: A 5-digit postal code
- CarrierRoute: the nearest Carrier Route.
Plus4- Two fields are returned for each record:- PostalCode: a 9-digit ZIP+4 Postal Code.
- CarrierRoute: the nearest Carrier Route.
PostalCode- Default. Returns the nearest 5-digit Postal Code.
Enum:"Level:CarrierRoute""Level:Plus4""Level:PostalCode"
- Reverse GeoCoder Serverhttps://reversegeo.melissadata.net/v3/web/ReverseGeoCode/doLookupPostalCodes
curl -i -X GET \
'https://reversegeo.melissadata.net/v3/web/ReverseGeoCode/doLookupPostalCodes?id=%7BREPLACE-WITH-YOUR-LICENSE-KEY%7D&lat=33.63756710910554&long=-117.60695049134513' \
-H 'Accept: */*' \
-H 'Content-Type: application/json'Successful response
Lists error codes from any errors caused by the most recent request as a whole. For more information, see Reverse GeoCoder Result Codes.
Comma delimited status, error codes, and change codes for the record. For more information, see Reverse GeoCoder Result Codes.
Response
{ "Version": "6.2.0.5179", "TransmissionReference": "", "TransmissionResults": "", "Results": "GS07", "TotalRecords": 1, "Records": [ { … } ] }