Skip to content

Blogger API v3 : when calling /posts/search/, parameter nextPageToken is ignored #1381

Closed
@ludovic-lambert

Description

@ludovic-lambert

Env : javascript, using XMLHttpRequest and JSON API.

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: p4type: questionRequest for information or clarification. Not an issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions