How do I get all posts from blogger api in flutter

I have over 200 posts from blogger API but when I put APi key and blogger ID in listview.builder I just get 10 posts how to use nextPageToken or get all posts from the API.

you can see the source code

Thanks.

1 answer

  • answered 2021-07-27 17:57 Hasan Abbasi

    this API response to your request with a nextPageToken that you can use for getting the next page's post by calling this pattern of URL:

    https://www.googleapis.com/blogger/v3/blogs/2399953/posts?key=YOURKEY&pageToken=nextPageToken
    

    then you can do another API call and get the next page token and do it iteratively until the next page token is empty!

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum