Pagination

The Bananatag API uses a cursor-based pagination system to limit each request to 250 results. Each response contains a 'paging' object which contains the pagination data. This object might look like:

                            
"paging":{
    "cursors":{
        "previous":0,
        "next":250,
        "total":617
    },
    "previousURL":"https://api.bananatag.com/tags?rtn=json&cursor=0&total=617",
    "nextURL":"https://api.bananatag.com/tags?rtn=json&cursor=250&total=617"
}
                            
                        

cursors Cursors object containing cursor information for the previous and next request.

cursors.previous The cursor position for the last request.

cursors.next The cursor position for the next request.

cursors.total The total number of results.

previousURL API link for retrieving the current data set.

nextURL API link for retrieving the next set of data.


The Bananatag API libraries will handle all pagination work for you. However, if you would like to start retrieving data from a specific point just simply pass the cursor parameter in your parameter object.