This is not an official API, but it is not too hard to simulate the login via OpenID and use the session to start executing a query, poll the job that executes it and retrieve the results in the end. I do most of my Stack Exchange development work in Java, but it should be easy to port to other languages even if you don't know Java. I'm using fairly standard libraries: Apache HTTP client, JSON parser org.json and HTML parser Jsoup. The source code can be found [here on GitHub](https://gist.github.com/Glorfindel83/cf72970cdf36b3fec4aec66608fbd41f); you'll need to provide your own email address and password which you use for logging in to Stack Exchange at the bottom. To run a query, you'll need the site ID which you can obtain from [this list](https://data.stackexchange.com/sites); the query ID (visible in the URL) and the revision ID of the query (visible when you edit the query (left), or otherwise in the HTML of the 'Run Query' form (right)). [<img src="https://i.sstatic.net/ICz8O.png" width="300" />][1] [<img src="https://i.sstatic.net/Yrw8M.png" width="300" />][2] <sub>(originally posted [here](https://meta.stackexchange.com/a/341993/295232))</sub> [1]: https://i.sstatic.net/ICz8O.png [2]: https://i.sstatic.net/Yrw8M.png