Q&A forum for developers
Last verified: November 12, 2026
100% uptime: the documentation responded in 5 of 5 checks over the last 30 days. Median response time: 102 ms.
From StackExchange's OpenAPI specification (version 2.0), spec updated June 21, 2021, via APIs.guru.
Stack Exchange is a network of 130+ Q&A communities including Stack Overflow.
https://api.stackexchange.com/2.0| Method | Path | What it does |
|---|---|---|
| GET | /access-tokens/{accessTokens} | Reads the properties for a set of access tokens. {accessTokens} can contain up to 20 access tokens. |
| GET | /access-tokens/{accessTokens}/invalidate | Immediately expires the access tokens passed. This method is meant to allow an application to discard any active access tokens it no longer… |
| GET | /answers | Returns all the undeleted answers in the system. The sorts accepted by this method operate on the follow fields of the answer object: - acti… |
| GET | /answers/{ids} | Gets the set of answers identified by ids. This is meant for batch fetcing of questions. |
| GET | /answers/{ids}/comments | Gets the comments on a set of answers. If you know that you have an answer id and need the comments, use this method. |
| GET | /apps/{accessTokens}/de-authenticate | Passing valid access tokens to this method causes the application that created them to be de-authorized by the user associated with each acc… |
| GET | /badges | Returns all the badges in the system. Badge sorts are a tad complicated. |
| GET | /badges/name | Gets all explicitly named badges in the system. A named badged stands in opposition to a tag-based badge. |
| GET | /badges/recipients | Returns recently awarded badges in the system. As these badges have been awarded, they will have the badge.user property set. |
| GET | /badges/tags | Returns the badges that are awarded for participation in specific tags. For the rank sort, bronze is greater than silver which is greater th… |
| GET | /badges/{ids} | Gets the badges identified in id. Note that badge ids are not constant across sites, and thus should be looked up via the /badges method. |
| GET | /badges/{ids}/recipients | Returns recently awarded badges in the system, constrained to a certain set of badges. |
| GET | /comments | Gets all the comments on the site. If you're filtering for interesting comments (by score, creation date, etc.) make use of the sort paramte… |
| GET | /comments/{ids} | Gets the comments identified in id. This method is most useful if you have a cache of comment ids obtained through other means (such as /que… |
| POST | /comments/{id}/delete | Deletes a comment. Use an access token with write access to delete a comment. In practice, this method will never return an object. |
| POST | /comments/{id}/edit | Edit an existing comment. Use an access token with write access to edit an existing comment. This method return the created comment. |
| GET | /errors | Returns the various error codes that can be produced by the API. This method is provided for discovery, documentation, and testing purposes,… |
| GET | /errors/{id} | This method allows you to generate an error. This method is only intended for use when testing an application or library. |
| GET | /events | Returns a stream of events that have occurred on the site. The API considers the following "events": - posting a question - posting an answe… |
| GET | /filters/create | Creates a new filter given a list of includes, excludes, a base filter, and whether or not this filter should be "unsafe". |
| GET | /filters/{filters} | Returns the fields included by the given filters, and the "safeness" of those filters. |
| GET | /inbox | Returns a user's inbox. This method requires an access token, with a scope containing "read inbox". |
| GET | /inbox/unread | Returns the unread items in a user's inbox. This method requires an access token, with a scope containing "read inbox". |
| GET | /info | Returns a collection of statistics about the site. Data to facilitate per-site customization, discover related sites, and aggregate statisti… |
| GET | /me | Returns the user associated with the passed access token. This method returns a user. |
Showing 25 of 124 endpoints. The full list is in the spec above.