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?

Response example

The shape of data from stackexchange/answer (Answer by ID). A sample, not live data.

owneris_acceptedscorelast_activity_datelast_edit_datecreation_dateanswer_idquestion_id
{"account_id":559988,"reputation":473503,"user_id":922184,"user_type":"registered","profile_image":"https://i.sstatic.net/h7WDB.jpg?s=256","display_name":"Mysticial","link":"https://stackoverflow.com/users/922184/mysticial"}true352961709573833170957383313408054021122790211227809

1 more column in JSON.

Ask with this source

A prompt for your agent that names this source and how to call it through the crw MCP.

  • Answer by ID

    Use Stack Exchange (stackexchange) from fastCRW Pergamon, capability "Answer by ID" (answer). You have an answer id, for example from a permalink ending in #<id>, and want that answer alone. Example options: id=11227902, filter=withbody. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "stackexchange" and capability "answer". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>

  • Answers to a question

    Use Stack Exchange (stackexchange) from fastCRW Pergamon, capability "Answers to a question" (answers). You have a question id and want the actual answers, for example to read the accepted solution. Example options: id=11227809, filter=withbody, sort=votes. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "stackexchange" and capability "answers". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>

  • Comments on a question

    Use Stack Exchange (stackexchange) from fastCRW Pergamon, capability "Comments on a question" (comments). The answers did not settle it and you need the clarifications and caveats people left in the comment thread. Example options: id=11227809, sort=votes. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "stackexchange" and capability "comments". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>

  • Questions linking to this one

    Use Stack Exchange (stackexchange) from fastCRW Pergamon, capability "Questions linking to this one" (linked). You want to see where a canonical question is cited from, to gauge its reach or find adjacent problems. Example options: id=11227809, sort=votes. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "stackexchange" and capability "linked". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>

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