{"@context": "https://schema.org", "@type": "WebAPI", "name": "StackExchange API", "description": "Stack Exchange is a network of 130+ Q&A communities including Stack Overflow.", "provider": {"@type": "Organization", "name": "stackexchange.com"}, "documentation": "https://raw.githubusercontent.com/APIs-guru/unofficial_openapi_specs/master/stackexchange.com/2.0/openapi.yaml"}
Index / APIs / stackexchange.com

StackExchange API

Stack Exchange is a network of 130+ Q&A communities including Stack Overflow.

Every row below was read from the vendor's own OpenAPI document. The summary text is theirs. What this registry adds is that each operation is indexed with its method, path, base URL and auth scheme, so a search for a capability can answer with a call rather than a name, and that the endpoint is probed on a schedule.

Specifications as held by the APIs.guru corpus, whose newest record is 2023-04-21. Operations the vendor has added since are not listed here; the origin links above are the vendor's own current documents.

base URLs: https://api.stackexchange.com/2.0

auth: o a u t h 2

find it by capability: POST /search {"query":{"text":"..."}} returns these operations with their invocation detail. Connect any agent client.

StackExchange v2.0

Stack Exchange is a network of 130+ Q&A communities including Stack Overflow.

methodpathwhat the vendor says it does
GET/access-tokens/{accessTokens}Reads the properties for a set of access tokens. {accessTokens} can contain up to 20 access tokens. These ar
GET/access-tokens/{accessTokens}/invalidateImmediately expires the access tokens passed. This method is meant to allow an application to discard any acti
GET/answersReturns all the undeleted answers in the system. The sorts accepted by this method operate on the follow fie
GET/answers/{ids}Gets the set of answers identified by ids. This is meant for batch fetcing of questions. A useful trick to p
GET/answers/{ids}/commentsGets the comments on a set of answers. If you know that you have an answer id and need the comments, use thi
GET/apps/{accessTokens}/de-authenticatePassing valid access_tokens to this method causes the application that created them to be de-authorized by the
GET/badgesReturns all the badges in the system. Badge sorts are a tad complicated. For the purposes of sorting (and mi
GET/badges/nameGets all explicitly named badges in the system. A named badged stands in opposition to a tag-based badge. Th
GET/badges/recipientsReturns recently awarded badges in the system. As these badges have been awarded, they will have the badge.u
GET/badges/tagsReturns the badges that are awarded for participation in specific tags. For the rank sort, bronze is greater
GET/badges/{ids}Gets the badges identified in id. Note that badge ids are not constant across sites, and thus should be look
GET/badges/{ids}/recipientsReturns recently awarded badges in the system, constrained to a certain set of badges. As these badges have
GET/commentsGets all the comments on the site. If you're filtering for interesting comments (by score, creation date, et
GET/comments/{ids}Gets the comments identified in id. This method is most useful if you have a cache of comment ids obtained t
POST/comments/{id}/deleteDeletes a comment. Use an access_token with write_access to delete a comment. In practice, this method wil
POST/comments/{id}/editEdit an existing comment. Use an access_token with write_access to edit an existing comment. This method r
GET/errorsReturns the various error codes that can be produced by the API. This method is provided for discovery, docu
GET/errors/{id}This method allows you to generate an error. This method is only intended for use when testing an applicatio
GET/eventsReturns a stream of events that have occurred on the site. The API considers the following "events": - post
GET/filters/createCreates a new filter given a list of includes, excludes, a base filter, and whether or not this filter should
GET/filters/{filters}Returns the fields included by the given filters, and the "safeness" of those filters. It is not expected th
GET/inboxReturns a user's inbox. This method requires an access_token, with a scope containing "read_inbox". This m
GET/inbox/unreadReturns the unread items in a user's inbox. This method requires an access_token, with a scope containing "r
GET/infoReturns a collection of statistics about the site. Data to facilitate per-site customization, discover relat
GET/meReturns the user associated with the passed access_token. This method returns a user.
GET/me/answersReturns the answers owned by the user associated with the given access_token. This method returns a list of
GET/me/associatedReturns all of a user's associated accounts, given an access_token for them. This method returns a list of n
GET/me/badgesReturns the badges earned by the user associated with the given access_token. This method returns a list of
GET/me/commentsReturns the comments owned by the user associated with the given access_token. This method returns a list of
GET/me/comments/{toId}Returns the comments owned by the user associated with the given access_token that are in reply to the user id
GET/me/favoritesReturns the questions favorites by the user associated with the given access_token. This method returns a li
GET/me/inboxReturns the user identified by access_token's inbox. This method requires an access_token, with a scope cont
GET/me/inbox/unreadReturns the unread items in the user identified by access_token's inbox. This method requires an access_toke
GET/me/mentionedReturns the comments mentioning the user associated with the given access_token. This method returns a list
GET/me/mergesReturns a record of merges that have occurred involving a user identified by an access_token. This method al
GET/me/notificationsReturns a user's notifications, given an access_token. This method requires an access_token, with a scope co
GET/me/notifications/unreadReturns a user's unread notifications, given an access_token. This method requires an access_token, with a s
GET/me/privilegesReturns the privileges the user identified by access_token has. This method returns a list of privileges.
GET/me/questionsReturns the questions owned by the user associated with the given access_token. This method returns a list o
GET/me/questions/featuredReturns the questions that have active bounties offered by the user associated with the given access_token.

and 84 more operation(s) in this specification, all searchable.

specification origin: https://raw.githubusercontent.com/APIs-guru/unofficial_openapi_specs/master/stackexchange.

nothing on this page is a rating, an endorsement or a claim about quality. Reachability is what our probes observed from one network; answering is a floor under usefulness, not a measure of it.