1

GMB API v1 does not return all locations.

On Google developer playground if I run something like https://mybusiness.googleapis.com/v4/accounts/my_account_number/locations?

it would return all my locations where I'm a owner

If I use the new API and run https://mybusinessbusinessinformation.googleapis.com/v1/accounts/my_account_number/locations?read_mask=title it would not return all locations.

I verified if anything is different on the location, but could not find anything.

What I'm doing wrong here?

mat's
  • 49
  • 1
  • 10
  • I have less than 100 locations. I also asked in the google support and the answer was: There was likely an error with the pageSize, we're still trying to troubleshoot the problem you reported and will follow up soon with a response if we are able to replicate your issue. In the meantime you will likely need to establish the pageSize – mat's Jun 15 '22 at 14:30

1 Answers1

2

add &pageSize=100

https://mybusinessbusinessinformation.googleapis.com/v1/accounts/my_account_number/locations?read_mask=title&pageSize=100

pageToken maybe required if your total locations is more than 100.

nic_reg_01
  • 36
  • 3