Get count of all location for account[ Edited ]
September 2016 - last edited September 2016 by Terry W
I want to get the count of all locations in one account, but as you know we can get only 100 Location in one Request. I have over 15 000 locations in one account and don't want to send 150 request to check what is the count of the locations in my account. In UI you can see the count of all your locations and filter : verified, not verified, closed, and more... I need to make one request to get the count for all locations in my account.
Re: Get count of all location for account
Hi @Iliyan H,
It’s currently not possible to make a single request and get back the total number of locations in the specified account because it’s not a supported operation in the API as summarized in the Google My Business API Reference document. As you mentioned, what you can do is to list and count all paginated locations by including the pageSize and pageToken query parameters.
We’ll keep your scenario in mind as we’re working on the next release. We’ll announce new functionalities of the Google My Business API as they become available on both this board and the Google Developers site. Please stay tuned for updates and thank you for your patience!