Reputation: 7052
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} :
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
Upvotes: 1
Views: 323