2

I'm interested in writing an application on top of Stack Overflow. For example: Get the answers to the questions identified by a set of ids, get the questions that are related to the questions identified by a set of ids etc.

Does Stack Overflow provide some sort of Python API for the public?

  • SE has an API... see api.stackexchange.com. I'd be surprised if someone hadn't written a Python library wrapper around it so maybe have a look around github/bitbucket/pypi and you might find something. – Jon Clements May 25 at 6:21
  • @JonClements in what programming language HTTP APIs mentioned in api.stackexchange.com are written? – Lokesh Agrawal May 25 at 6:23
  • IIRC all of the code for the sites is .NET based. Fairly sure there's more detailed explanations of what tech is used and what servers are used etc etc... somewhere on here... might be worth having a search for :) – Jon Clements May 25 at 6:29
  • Cool, thanks a lot. I found a python wrapper github.com/lucjon/Py-StackExchange. I guess this will work for me. – Lokesh Agrawal May 25 at 6:33
2

Stack Overflow doesn't provide language-specific implementations, it only offers the API as it is: a collection of endpoints for HTTP calls. Luckily, we have volunteers who write libraries and post them on Stack Apps, the dedicated Stack Exchange for API support. Here is a list of the most popular Python libraries; it includes Py-StackExchange which you've already found.

Support for those libraries is usually available by posting an answer to the 'question' announcing the library; in that respect, Stack Apps works a little counter-intuitively when compared to most Stack Exchange sites (though Meta and its announcements follow the same pattern). In this particular case, you can also drop an email to the maintainer.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .