How to fetch the latest `n` items in a board w/ the API?

I’m working with a large monday board with many items. I would like to fetch the latest 30 items appended to this board. Is there a way to do this with the current API? I am aware of the limit keyword, but this returns the first n items instead of the latest ones. Unfortunately, I am now forced to fetch the whole board which can easily take the Monday API up to 20 seconds.

You can use the newest_first argument in your query to get the recently created items.
You can read more about that here

Hi @mvanaltvorst, welcome to our community!

I agree with @kolaai’s suggestion-- in this case it may make the most sense to order your items by newest_first, and then add in a limit of 30 items to see the most recently created 30 items.

Let us know if this isn’t what you’re looking for

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.