8

The awesome functionality of the Data Explorer allows humans using a browser to run T-SQL and retrieve data.

Is programmatic access allowed? (To send some T-SQL via a Python script and return the results to the session.)

Notes

7
  • 2
    There is no api, SEDE is its own sub-system. Get ahead by downloading the data. Dec 13, 2019 at 12:10
  • 1
    Relevant / related: meta.stackexchange.com/questions/301214/…
    – rene
    Dec 13, 2019 at 12:59
  • 1
    also related: meta.stackexchange.com/questions/250977/…
    – rene
    Dec 13, 2019 at 13:09
  • 2
    There is an unsupported, not checked if still working, a for one specific query written SEDE Client as part of SOCVR's chatbot. That has run and worked as long as we stayed under the IP ban limits imposed by SE.
    – rene
    Dec 13, 2019 at 13:15
  • 3
    It's "allowed" in the sense that you could probably make it work and, so long as you're not causing problems for anyone else, we're probably unlikely to even notice... But, I have to ask out of curiosity if nothing else: what are you trying to do that couldn't be done with the actual API and post-processing results in your Python code instead?
    – Adam Lear StaffMod
    Dec 14, 2019 at 7:18
  • 1
    @AdamLear I was hacking around and was going to build either an R or Python library to connect to it. My current thinking is that it might be easier to simply take the BigQuery route, a little more setting up easy after that
    – stevec
    Dec 14, 2019 at 7:20
  • @AdamLear the actual use case involves downloading data for around 1-2000 questions at a time (but it must scan all questions for a particular tag) and the questions are quite specifically chooses based on reasonably nuanced sql. I am aiming to have the available to python/R users in about 20 seconds (10 seconds query time, 10 seconds download), any longer could be too slow for users to enjoy
    – stevec
    Dec 14, 2019 at 7:26

0

You must log in to answer this question.

Browse other questions tagged .