Hello,
We’ve integrated Wrike with our ERP system via the API, and overall it’s working well. However, we occasionally run into synchronization issues, and I’ve been asked to build a “difference report” between both systems.
For projects, this was straightforward (~600 total). I can easily compare presence and identify mismatches between the two systems.
Where I’m struggling is with tasks.
At this stage, I don’t need a detailed comparison of individual tasks. A simple task count per project is sufficient to identify discrepancies.
Current approach
Right now, I’m calling the Tasks API for each project:
let url = `${WRIKE_URL}/folders/${project.wrike_project_id}/tasks?descendants=true`;
We have ~600 projects with an average of ~30 tasks each, so while the total volume isn’t huge, this still results in ~600 API calls (one per project), which:
- Risks hitting rate limits
- Requires throttling with artificial delays
- Causes my n8n workflow to sometimes timeout
My question
Is there a more efficient or “smarter” way to retrieve the task count per project/folder?
For example:
- A way to get counts without retrieving full task lists?
- A bulk or aggregated endpoint?
- Any best practices to reduce the number of API calls in this scenario?
I’d really appreciate any suggestions or patterns others have used in similar integrations.
Thanks in advance!
Stephen..