1

When calling {URL}/posts/?{parameters} :

the 10 first items are returned if the response contains more than 10 items, an attribute { "nextPageToken":"xyz" } is added to the JSON data response. Then when calling {URL}/posts/?{parameters}&pageToken={nextPageToken} :

the response contains the next 10 items a new nextPageToken is returned until no more page => Looks like the expected behavior, working fine.

However: When calling {URL}/posts/search/?q={query_string}{parameters} :

the 10 first items are returned if the response contains more than 10 items, an attribute { "nextPageToken":"xyz" } is added to the JSON data response. Then when calling {URL}/posts/search/?q={query_string}{parameters}&pageToken={nextPageToken} :

  • the 10 first items are displayed again (ie not the next 10),
  • returned nextPageToken is the same than first call

Looks like pageToken is ignored for /posts/search/. Is this the expected behavior? How to access items of /posts/search/ response returning more than 10 items?

Replicated issue.

https://blogger.googleapis.com/v3/blogs/{blog id}/posts/search?q={search}&key={api key}&pageToken={next page tok}&maxResults=100

VLAZ
  • 26,331
  • 9
  • 49
  • 67
Bolt UIX
  • 5,988
  • 6
  • 31
  • 58
  • Hi @bolt-uix, I also have this issue in my app, did you solve it ? – MML Aug 10 '22 at 18:35
  • I did not find a solution, so I am loading max=500 records & doing filter/search by app side. – Bolt UIX Aug 11 '22 at 06:58
  • 1
    Can you update your question with this solution, please because the `maxResults` parameter is not working with me on search also – MML Aug 11 '22 at 12:20

0 Answers0