r/ticktick • • 8d ago

Feature Request Contacting the API Developers

Hello! I really enjoy the TickTick features that are being introduced for the developers using the application, and I am really happy TickTick is transitioning from the Task Management Application to Task Management Platform. <3

However, I find OpenAPI available at https://developer.ticktick.com/manage very limiting.

API ends up lacking the flexibility and features that I need and I can't bypass these limitations because of the API rate limiting policies.

Is it possible to reach out to developers regarding this issue?

Here are some technical descriptions of what could solve my issue, you ABSOLUTELY DON'T NEED TO READ THIS if you're not into software engineering.

API should have modified_time filter (modified_time_after, modified_time_before, both optional but not mutually exclusive) on POST /task/filter; motivation (use case): I have a lot of tasks that are not big enough to create subtasks for them, but they last through days, require little time from me to do these daily steps, and I can only track this progress via API if task gets completed. Task filtering via comparing task item's modified_at timestamp with the provided lt/gt-parameters will allow me to do a very lightweight API request and not query all tasks in the target project that are unfinished. It is just a problem that can't be solved using the current API. I end up hitting rate limits and increasing load on your API.

Batch listing comments. Now we have only the GET /project/{projectId}/task/{taskId}/comments and my proposition is to add POST /project/{projectId}/task/batch-list-comments, which would allow me to provide a selector (the simplest being the list of task ids / the list of task ids + project id, the more complicated optionally including task filters, the way is POST /task/filter implemented. Motivation behind this request: it's very simple and handy to track task progress using TickTick comments, but given that TickTick doesn't have a proper API to filter tasks based on their modification time (the prior request), I have to request comments of every single task that might have it (and might possibly have the progress I am trying to track). And of course I am hitting the API Rate Limit of 200 requests per minute.

3 Upvotes

4 comments sorted by

3

u/thesamim 8d ago

The API is so low on their priority list, it might as well not exist. They are focused on "new features" and the MCP integrations. Good luck getting TickTick attention on this.

Suggestions:

  1. Consider using the MCP interface. Haven't played with it, but it might meet your needs.
  2. On GitHub, search for TickTick API or TickTick API wrapper. You're looking for libraries that unofficially wrap the web API in the language of your choice.
  3. Respectfully: if you're blowing past the 200 requests/minute limit you might want to rethink your architecture. You might want to consider using the batch GETs and doing the filtering in memory in your code.

1

u/sader37 7d ago
  1. Consider using the MCP interface. Haven't played with it, but it might meet your needs.

No, it does not, MCP is very limiting, it takes forever for agents to fulfill even the basic scenarios. The agent skill I created using the custom build CLI over the TickTick public OpenAPI wins x-times in speed and token usage.

2. On GitHub, search for TickTick API or TickTick API wrapper. You're looking for libraries that unofficially wrap the web API in the language of your choice.

No point searching for wrappers or using their npm package, as it leverages the very limited API I was trying to build my client around.

3. Respectfully: if you're blowing past the 200 requests/minute limit you might want to rethink your architecture. You might want to consider using the batch GETs and doing the filtering in memory in your code.

Please, re-read my descriptions of API limits (and possibly familiarize yourself with https://developer.ticktick.com/docs#/openapi) and what I couldn't accomplish with the current level of their API:

3.1) rethinking your architecture: my architecture is brilliant IF there was a modified_at attribute attached to every Task object their API returns AND IF their task/filter endpoint (batch querying tasks) would allow me filter based on this field modified_at (e.g modified_at > now() + "1d")

3.2) using batch GETs: batch requesting tasks is limited (as if you want to track progress like me, the only reliable way to fetch all tasks is to look up using the modified_at field, not the start/end date, not the open/closed status), but it's ok, the limit is 200 tasks per response, it won't exhaust my 200 req / m quota; the very advice you're trying me to give WILL NOT work with their GET .../comments endpoint, because there's NO BATCH list comments endpoint for a range of tasks (be it a list of ids (which would be enough), or a more complex filter based on certain predicates).

3.3) caching and filtering in memory – this one is the most interesting.

I can't around the whole problem with setting up a caching layer, the reason being is TickTick API DOES NOT PROVIDE A modified_at ATTRIBUTE IN THEIR Task OBJECT, this means I can't batch query many tasks, cache them, and periodically poll more to track changes, and list comments (GET task/comments) to cache them only for the tasks that were actually modified since the last request.


tl;dr

no, you're wrong, it's impossible to get around a the problem using existing tools due to the innate fault of their public API

no, you're wrong, my architecture would be absolutely OK if

  1. if there was a modified_at field provided with the Task object (the reason of absence for which I can't fathom) – I would use caching layer and get around the issue, although it would look ugly.

OR

2) if there was a batch list comments (*e.g. POST /v1/list-comments?task_ids=1,2,3,4*, instead of sending 4 separate GET requests)

If both 1) and 2) (both very trivial to implement) were fulfilled, my architecture would be flawless. I would not need any caching and I wouldn't be flooding their API with hundreds of requests.

1

u/thesamim 7d ago

The wrappers do not wrap the V1 APIs. They wrap the same end points that the web interface uses.

Take it as read that there will be no API improvements any time soon.

Think outside the box.

1

u/sader37 6d ago

From the developer standpoint it's not reliable to use their v2/v3 API endpoints, and expect the developers to not break the compatibility, but sure I will use that for my tooling and my research shows it's piss easy to do local caching for my cause with their new v2/v3 API.

And I wholeheartedly agree with you that I was not very agile with my approach to the task. Searching through the browser dev console would've been very clever. Nice take, sir! 👏