Skip to main content
All providers

Stack Exchange

DeveloperUS

api.stackexchange.com

Questions, answers and tags across Stack Overflow and every Stack Exchange site.

Capabilities (17)

GET /v1/data/stackexchange/answer1 credit

Returns a single answer with its score, is_accepted flag, parent question id, owner and timestamps.

idfilter?order?sort?
GET /v1/data/stackexchange/answers1 credit

Returns every answer on the question with score, is_accepted, owner and timestamps.

idfilter?order?sort?pagesize?page?
GET /v1/data/stackexchange/comments1 credit

Returns the comments posted directly on the question, with body, score, owner and creation date.

idfilter?order?sort?pagesize?page?
GET /v1/data/stackexchange/linked1 credit

Returns questions whose body contains a link to the given question.

idfilter?order?sort?pagesize?page?
GET /v1/data/stackexchange/question1 credit

Returns the question's title, tags, score, view count, answer count, accepted answer id, owner and timestamps.

idfilter?order?sort?
GET /v1/data/stackexchange/related1 credit

Returns questions the site's own similarity engine considers related to the given question.

idfilter?order?sort?pagesize?page?
GET /v1/data/stackexchange/search1 credit

Returns questions matching a free-text query, optionally narrowed by tag, answered state and score.

qtagged?sort?order?pagesize?page?filter?accepted?answers?nottagged?title?body?closed?
GET /v1/data/stackexchange/similar1 credit

Returns questions whose titles are similar to the supplied text, the same duplicate-detection search the ask page runs.

titletagged?nottagged?filter?order?sort?pagesize?page?
GET /v1/data/stackexchange/sites1 credit

Returns every site in the Stack Exchange network with its api_site_parameter, name, URL, launch date and icons.

page?filter?
GET /v1/data/stackexchange/tag-info1 credit

Returns the tag's total question count and its moderator-only, required and has_synonyms flags.

tagsfilter?pagesize?page?
GET /v1/data/stackexchange/tags1 credit

Returns Stack Overflow tags with their question counts, ordered by popularity, name or activity.

inname?pagesize?page?filter?fromdate?todate?min?max?
GET /v1/data/stackexchange/tag-top-answerers1 credit

Returns the users with the highest answer score in the tag over the chosen period, with their score and post counts.

tagperiodfilter?pagesize?page?
GET /v1/data/stackexchange/top-questions1 credit

Returns a page of Stack Overflow questions ordered by votes, activity or creation date, optionally restricted to a tag.

tagged?pagesize?page?filter?fromdate?todate?min?max?
GET /v1/data/stackexchange/user1 credit

Returns the user's reputation, badge counts, display name, location, account age, profile image and link.

idfilter?order?sort?
GET /v1/data/stackexchange/user-answers1 credit

Returns the answers a user has posted, with score, accepted state and parent question id.

idfilter?order?sort?pagesize?page?fromdate?todate?min?max?
GET /v1/data/stackexchange/user-questions1 credit

Returns the questions a user has asked, with tags, score, answer count and timestamps.

idfilter?order?sort?pagesize?page?fromdate?todate?min?max?tagged?
GET /v1/data/stackexchange/user-top-tags1 credit

Returns the tags the user answers in, each with their answer count, answer score, question count and question score in that tag.

idpagesize?page?filter?

Licence

Content is CC BY-SA (4.0 for posts after 2018-05-02); the Stack Exchange API terms require attribution and a visible link back.

https://stackoverflow.com/help/licensing

Attribution

Display this wherever you show the data. It arrives on every response as provenance.attribution_text.

Source: Stack Exchange, CC BY-SA

Cache: up to 3600s