google-apigoogle-playground

GMB mybusinessbusinessinformation.googleapis.com/v1 not returning all locations


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?


Solution

  • 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.