After you've created your query and everything is working, go to the query edit page and click on the little 3 dots menu in the screen below.
You'll want to click on the Show API Key
button which will give you a pop-up with the api_key
for accessing the results for that particular query. You'll also want to pay attention to the query_id
from the URL bar, in the attached photo it's 764
.
The URL you'll want to use is as follows:
https://sql.telemetry.mozilla.org/api/queries/<query_id>/results.json?api_key=<api_key>
The json format returned by re:dash is documented here.
Alternatively if you'd like it to just return a CSV, you can replace the .json
in the URL with .csv
.