My API call with maxResults=8 returns just 6 items, whereas on the googleplus site search there are clearly more results.
Also when setting the max-results up to like 20 i get more results.
So why am i just receiving six items, when there would be 8 possible?
My call:
https://www.googleapis.com/plus/v1/activities?query=gamescon&key=mykey&orderBy=recent&maxResults=8&fields=items(actor(displayName),kind,object(attachments(content,image(type,url),url),content,objectType),published,title,url,verb)
The Google+ API guarantees that the number items in the response will not exceed the requested
maxResults, but it doesn’t guaranteed that many results in the response. If anextPageTokenfield is available in the first page of results, use that for an additional page of results.You need to capture the
nextPageTokenfield in JSON response. Take this page token, and make another request with thatpageToken.Example, make a request for:
https://www.googleapis.com/plus/v1/activities?query=gamescon&key=mykey&orderBy=recent&maxResults=8&fields=nextPageToken,itemsResponse:
Take the
nextPageTokenin that response and include it in your next request as thepageTokenquery parameter.https://www.googleapis.com/plus/v1/activities?query=gamescon&key=mykey&orderBy=recent&maxResults=8&pageToken=xyz&fields=nextPageToken,items