Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Library for interacting with the Stack Exchange API

Project description

This is a Python wrappers for the Stack Exchange API. This library supports Stack Exchange API v2.2.

Documentation Status

This library has support for:

  • The Stack Exchange backoff parameter. It will automatically force a delay to match the parameter.
  • Read and write functionality via the API.
  • Can retrieve multiple pages of results with a single call and merges all the results into a single response.
  • Throws exceptions returned by the API for easier troubleshooting.
  • Utilizes Requests.

Example usage:

Establish a connection to Stack Overflow and gather some comments

from stackapi import StackAPI
SITE = StackAPI('stackoverflow')
comments = SITE.fetch('comments')

The above, will issue a call to the comments. end point on Stack Overflow.

Much more detailed documentation is available on ReadTheDocs.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for StackAPI, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size StackAPI-0.2.0.tar.gz (5.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page