Skip to content

pyticktick#

pyticktick is the modern (unofficial) Python library for interacting with TickTick. pyticktick supports both the official and unofficial APIs, provides elegant retry logic, and catches data errors early with pydantic.


Make sure you have pyticktick installed, then you can get all your projects and tasks:

import json
from pyticktick import Client

client = Client(v2_username="username", v2_password="password")
resp = client.get_batch_v2()

print("My Projects:")
for project in resp.project_profiles:
    print(json.dumps(project.model_dump(mode="json"), indent=4))

print("My Tasks:")
for task in resp.sync_task_bean.update:
    print(json.dumps(task.model_dump(mode="json"), indent=4))

To see more, you can check out all of the recipes from the cookbook.

Disclaimer

This project is not affiliated with TickTick, and parts of the API accessed by the client are not officially supported. It may even go against their Terms of Service. See Which API should I use? for more information.