It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to paginate requests on Trello REST API

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

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)

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

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

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Trello

There's a lot to love about the next evolution of Trello Community

Hi, team, Whether you've been hanging out here in the Trello collection for awhile, or whether you're just now joining us from the Trello Slack Community, we’ve got some exciting news about th...

2,265 views 23 46
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you