Location Finder - Unified API

I'm getting a 200 empty response that says "locations": []

Created by: Jhonathan Ibanez

Modified on: Wed, 3 Apr, 2024 at 11:13 AM

The DHL Location Finder - Unified API is essentially built by taking a geolocation with latitude, and longitude coordinates as reference, and then analyzing what DHL locations are nearby. This is the process that the endpoint "find-by-geo" implements.

When using the endpoint "find-by-address", an additional step is added where we implement a geolocation service to find the coordinates of a given address. This service however has challenges in correctly identifying all possible postal codes in the world. When doing a call to the API with the find-by-address endpoint and adding a postal code that is not identifiable with our geolocation source, the API will return an empty response as below:


2    "locations": []


We are aware of this issue and we are working on a solution to improve our data quality and support a larger scale of postal codes worldwide. Please excuse the inconvenience.

In the meantime, we suggest you use the endpoint "find-by-geo" and directly input the coordinates of the address you wish to query. Please refer to the DHL Location Finder - Unified API documentation to read more about it.

Jhonathan is the author of this solution article.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.