Problems with : Search tasks in a workspace

Hello everyone,
I have a problem with the advanced search. When I limit the results as set by your API (100 items) I don’t get the “next_page” field to keep retrieving the missing items. Example : https://app.asana.com/api/1.0/workspaces/{ID}/tasks/search?projects.any={ID}&created_at.after=2022-10-01

Thank you very much

OR

I just put sort_by and same result

Welcome, @Rafael_A_LR,

Is it possible that this is the issue for you (from the developer doc):

Pagination

Search results are not stable; repeating the same query multiple times may return the data in a different order, even if the data do not change. Because of this, the traditional pagination available elsewhere in the Asana API is not available here. However, you can paginate manually by sorting the search results by their creation time and then modifying each subsequent query to exclude data you have already seen. Page sizes are limited to a maximum of 100 items, and can be specified by the limit query parameter.

Hope that helps,

Larry

2 Likes