Azure Maps totalResults is always 100

Haiko Wick 20 Reputation points
2025-05-30T05:20:55.6866667+00:00

Hi, we are currently testing Azure Maps as an alternative to google Maps for categorized radius searches around a location. Unfortunately, we are encountering a problem with pagination:

Regardless of the requested location and radius, the Nearby search (and also the POI search) returns a maximum of 100 results (totalResults). If the offset is set to 100, no more results are returned. The example given in https://learn.microsoft.com/de-de/rest/api/maps/search/get-search-nearby?view=rest-maps-1.0&tabs=HTTP#examples also returns a totalResults of 100 and does not allow pagination. Is there a configuration option we might have overlooked?

Using Gen2 (Maps & Location Insights) in West Europe

Azure Maps
Azure Maps
An Azure service that provides geospatial APIs to add maps, spatial analytics, and mobility solutions to apps.
834 questions
{count} votes

Accepted answer
  1. rbrundritt 20,921 Reputation points Microsoft Employee Moderator
    2025-05-30T13:35:46.9266667+00:00

    This is one of the older search services that is directly powered by TomTom. If memory serves me correctly TomTom modified the backend of this service a year or two ago so that only the first 100 POI's may be retrieved. I believe there were concerns with individuals scraping the POI data and creating databases. The pagination is still there as many users will retrieve 10 results at a time and allow users to page to the next 10 results.

    I'm not on the Azure Maps team, but wrote a lot of the code samples for Azure Maps and recall one where I had it paging through POI's and a few years ago it stopped getting more than 100 results. Testing the TomTom service that powers this Azure Maps API I see the same behavior: https://developer.tomtom.com/search-api/documentation/search-service/nearby-search

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Manas Mohanty 5,940 Reputation points Microsoft External Staff Moderator
    2025-06-02T10:40:13.2266667+00:00

    Hi Haiko Wick

    Currently Nearby Search and POI Search APIs are capped at returning 100 results per request.

    To retrieve more than 100 results, you can use the ofs (offset) parameter in combination with limit. This allows you to paginate through the results.

    Attached is the sample example source code

    Sample -https://samples.azuremaps.com/?search=search&sample=load-pois-as-the-map-moves

    Source code -

    Reference thread -https://learn.microsoft.com/en-us/answers/questions/1180380/how-to-extend-the-limit-of-100-in-azure-maps-searc

    Hope it helps.

    Thank you.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.