[SOLVED] Api Get tasks Examples

Hi All,

I’m looking examples to get task using filters in API, and Vikunja API documentation does not show examples, I want get all tasks with priority NOW and DUE in the next 12 hours:

https://try.vikunja.io/api/v1/tasks/all?sort_by[]=id&order_by[]=desc&filter_by[]=priority&filter_value[]=5&filter_comparator[]=equals

So, how can add the next 12 hours to above query and order by due time?

Thanks!

After some tries, I’ve found it and more or less understand

http://192.168.1.58:3456/api/v1/tasks/all?sort_by[]=due_date&order_by[]=asc&filter_by[x]=priority&filter_value[]=5&filter_comparator[]=equals&filter_by[]=due_date&filter_value[]=now%2B24h&filter_comparator[]=less&filter_concat=and&filter_include_nulls=true

filter_value=now%2b24h it’s encoded, “now+24h”