Skip to main content

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

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.

  • Stack Overflow for Teams API

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.

Release files for StackAPI 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for StackAPI 0.3.1
File Size Uploaded
stackapi-0.3.1.tar.gz 7.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for StackAPI 0.3.1
File Interpreter ABI Platform
StackAPI-0.3.1-py3-none-any.whl Python 3 none any Details

Total release size: 14.9 kB

Release files / stackapi-0.3.1.tar.gz

Download URL stackapi-0.3.1.tar.gz
Size 7.7 kB
Tags Source
SHA-256 checksum
How to use checksums
0bcb0a40275a69f737f1d824f9712ccec73bc8b46f06720ebb722f3c561ad6b0
BLAKE2b-256 checksum
How to use checksums
a6d8cc0ba62d4722f4c113c6e39205fa49f858f926999f634da47b4d1044dfcd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release files / StackAPI-0.3.1-py3-none-any.whl

Download URL StackAPI-0.3.1-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cd60fdd5cdaa1767967a27dbaeb6fa3bbb297d3d457ffed2e4087bddf792843b
BLAKE2b-256 checksum
How to use checksums
91088e850718fa5127a54eb049ae4e963164c126081bf5193ddeac4e589c7d5b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 release files

0.3.0

2 release files

0.2.0

1 release file

0.1.12

1 release file

0.1.9

5 release files

0.1.8

5 release files

0.1.7

6 release files

0.1.6

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page