Hey @jumonjii!
You need to send data to the API, it can’t read what comes after the command if you don’t tell it to send it through.
In our case here, I think $(1)
will be more than enough to do the job.
$(urlfetch http://myfunstuff.great-site.net/astro.php?query=$(1))
Please read the documentation.