I try to create a list of Discourse topics that are older than 5 days (created 5 days ago or before that) with “curl GET …” command.
Currently I apply the following command to get a list of topics:
topiclist=$(curl -k -X GET “https://mydiscoursesite.com/search.json?q=tags:mytag+status:open”)
…and then I parse the output (topiclist above) with jq for sorting out the old topics.
I wonder if it is possible to do this by adding the date info to the curl command and skip the parsing task (done with jq).