Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to paginate requests on Trello REST API

Vantroeyen Eric February 10, 2018

In the documentation on Actions Nested Resource it says that we can use the following parameters:

  • limit
  • page
  • format

but in the paragraph Nested Actions with Query Params in the curl example it uses 

  • actions_limit

limit and page are not working on the curl example, meanwhile actions_format (which is not described) accept the count parameter.

So, I don't understand when or how to use limit and page

I have a board with more than 1000 actions, I'd like to access those above 1000.

Can someone provide an example ?

2 answers

0 votes
raúl aguirre February 13, 2019

i have the same problem,in JSON file from my trello board the actions are limited to just 1000

Vantroeyen Eric February 13, 2019

To have all the records, the solution is to iterate/repeat the request until receive an empty answer.

Like Francisco Belda likes this
0 votes
Oscar Triscon
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 10, 2018

You use actions_limit when you're requesting actions as part of another resource (e.g. GET boards/BOARD_ID?actions=all&actions_limit=1000), and limit when you're requesting actions directly (e.g. GET boards/BOARD_ID/actions?limit=1000).

If you're just interested in the actions, go for the direct request and specify limit. Once you get your response, get the date of the oldest action, and issue another request setting the before parameter to that date (e.g. GET boards/BOARD_ID/actions?limit=1000&before=2018-02-10T13:05:37Z)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events