Thread:KDemerath/@comment-27659888-20170214004610/@comment-25085701-20170221164157

KDemerath wrote: Taldin wrote: Possibly answering the actual question -- you can get a task's ID from the APIv3 page, but so far the only way I've been able to get the ID is with a bit of human intervention, since you have to find the data structure that pertains to the new task or habit. I see no way to obtain a task's ID via the APIv3 page. Did I missed something?

I would go via the Data Display Tool (http://data.habitrpg.com ). Fetch Data -> Task Overview -> toggle developer data -> search the Habit or Daily you want its ID of. Done. Oh, wow. I never noticed the toggle developer data link there on the Data Display Tool.

I would have used https://habitica.com/apidoc/#api-Task-GetUserTasks  API call using curl to get the user's entire task list, and then I'd look through the output until I found the task with the "text" field matching the one I was looking for. From there I'd pick out the corresponding "_id" field to get the task ID.

A dedicated programmer could probably automate the process with a scanner/parser program, but at the time I learned how to do that, I was in the middle of a bunch of other projects (and sadly still don't have a lot of free time to program.)