Stack Overflow & Stack Exchange Questions and Answers avatar

Stack Overflow & Stack Exchange Questions and Answers

Pricing

$1.50 / 1,000 results

Go to Apify Store
Stack Overflow & Stack Exchange Questions and Answers

Stack Overflow & Stack Exchange Questions and Answers

Export Stack Overflow and Stack Exchange questions and top answers by keyword, tag, date or accepted answer from the official API. Scores, tags, authors and CC BY-SA attribution on every row. No login, no proxy.

Pricing

$1.50 / 1,000 results

Rating

0.0

(0)

Developer

Atesen Software

Atesen Software

Maintained by Community

Actor stats

0

Bookmarked

3

Total users

2

Monthly active users

3 days ago

Last modified

Categories

Features

Limited permissions

Share

Need the real questions developers ask on Stack Overflow / Stack Exchange, with scores, tags, accepted answers and the top answers, in a spreadsheet or JSON instead of copying them by hand? This Actor exports them from the official Stack Exchange API for $1.50 per 1,000 rows, with CC BY-SA attribution on every row.

What does Stack Overflow & Stack Exchange Questions and Answers do?

It searches any Stack Exchange site (Stack Overflow, Super User, Server Fault, Mathematics, Ask Ubuntu and the other 170+ sites) through the official Stack Exchange API v2.3 and saves one clean row per question, plus optional rows for each question's top-voted answers.

  • Filter by keyword, tags, creation date, accepted answer or zero answers.
  • Sort by activity, creation date, votes or relevance.
  • Every row carries the source link, author, author profile and license (CC BY-SA 2.5 / 3.0 / 4.0) so reused content stays correctly credited.
  • No login, no browser, no proxy. The Actor reads only the public API and follows its quota and backoff rules.

What can you use it for?

  • Developer pain research and content ideas: find the most-voted or newest questions for your library, API or framework tag and see what people struggle with.
  • Support and documentation planning: export tagged questions with their accepted and top answers to see which topics your own docs or FAQ should cover, with attribution fields ready to keep.
  • Developer relations and product monitoring: schedule a daily run for your tags and get the new questions in Google Sheets, Slack or a webhook through Apify integrations.
  • Community analytics: track scores, answer counts and accepted-answer ratios for a technology over time.

How to export Stack Overflow questions

  1. Open the Input tab. Keep stackoverflow as the site or enter another site identifier such as superuser, serverfault, math or askubuntu (the part of the site address, not a URL).
  2. Enter a search query (for example react hooks) and/or semicolon-separated tags (for example javascript;typescript).
  3. Set Maximum questions and, if you want answers, Top answers per question.
  4. Click Start. Download the dataset as JSON, CSV, Excel, XML or HTML, or read it through the Apify API. The SUMMARY record in the key-value store shows how the run ended and the remaining API quota.

Input

FieldDefaultMeaning
sitestackoverflowStack Exchange site identifier, for example superuser or math.
queryemptyFree-text search. Empty returns the latest matching questions.
taggedemptySemicolon-separated tags; a question matches if it has at least one of them.
maxQuestions101 to 2,500 questions. The search reads at most 25 pages of 100.
answersPerQuestion00 to 100 top-voted answers per question (0 = no answers).
maxAnswers100Cap on answer rows across all questions.
acceptednot settrue = only questions with an accepted answer, false = only without.
unansweredfalseOnly questions with zero answers.
fromdate, todatenot setCreation-date bounds in UTC Unix seconds.
sort, orderactivity, descactivity, creation, votes or relevance; asc or desc.
includeBodyfalseAdds the post HTML in bodyHtml. Sanitize it before showing it in a web page.
maxApiRequests50Per-run cap on API calls.
maxRuntimeSeconds120The run stops cleanly before this time.
apiKeyemptyOptional free Stack Apps key. It raises the API quota from about 300 to 10,000 requests per day.
userAgentemptyOptional custom User-Agent. Empty sends AtesenSoftware-Actor/1.0 (+https://atesensoftware.com; stack-exchange-questions).

Example input:

{
"site": "stackoverflow",
"query": "javascript array",
"tagged": "javascript",
"maxQuestions": 5,
"accepted": true,
"sort": "votes",
"answersPerQuestion": 1,
"maxAnswers": 2
}

Output

One row per question (type: "question") and one per answer (type: "answer"). A real question row from the example input above:

{
"type": "question",
"site": "stackoverflow",
"questionId": 5767325,
"title": "How can I remove a specific item from an array in JavaScript?",
"questionUrl": "https://stackoverflow.com/questions/5767325/how-can-i-remove-a-specific-item-from-an-array-in-javascript",
"sourceUrl": "https://stackoverflow.com/questions/5767325/how-can-i-remove-a-specific-item-from-an-array-in-javascript",
"score": 12260,
"creationDate": 1303597038,
"lastActivityDate": 1772333292,
"tags": ["javascript", "arrays"],
"answerCount": 51,
"isAnswered": true,
"acceptedAnswerId": 5767357,
"owner": { "displayName": "Walker", "profileUrl": "https://stackoverflow.com/users/364969/walker", "userId": 364969 },
"contentLicense": "CC BY-SA 4.0",
"licenseUrl": "https://creativecommons.org/licenses/by-sa/4.0/",
"attribution": {
"source": "Stack Exchange",
"sourceUrl": "https://stackoverflow.com/questions/5767325/how-can-i-remove-a-specific-item-from-an-array-in-javascript",
"author": "Walker",
"authorUrl": "https://stackoverflow.com/users/364969/walker",
"license": "CC BY-SA 4.0",
"modified": false
},
"fetchedAt": "2026-11-15T21:50:59.963Z"
}

Answer rows have the same shape plus answerId and isAccepted; their sourceUrl points straight to the answer and questionUrl to the parent question. Dates are Unix seconds (UTC). Titles and display names are returned as plain text.

How much does it cost?

Pay per event: $1.50 per 1,000 results ($0.0015 per saved question or answer row). There is no start fee and no monthly fee. Status messages, the SUMMARY record, invalid input and runs that find nothing are free. You can cap the spend with the maximum cost per run setting; the Actor stops when it is reached.

Maximum items is a hard cap on charged rows. Set maxItems in the run options (or ?maxItems= in the API) and the run stops after that many rows (questions plus answers): it never writes or charges more rows than that number. Leave it empty for no cap. Free status rows are not counted.

Use via API

  • Without a key the Stack Exchange API allows about 300 requests per day per IP address, and that quota can be shared with other users on the same platform IP. One request returns up to 100 questions, so 10 questions cost 1 request and 1,000 questions cost 10. Fetching answers costs one more request per question.
  • For larger or scheduled exports, register a free application key at stackapps.com and put it in apiKey (10,000 requests per day).
  • The Actor sends requests one at a time, waits whenever the API returns a backoff value, stops at once on HTTP 429 or an exhausted quota, and never retries in a loop. A stopped run keeps the rows it already saved and explains why in the status message and in SUMMARY.
  • An unknown site or other invalid input ends the run as succeeded with a clear status message, zero rows and no charge.
curl -X POST "https://api.apify.com/v2/acts/atesen-software~stack-exchange-questions/run-sync-get-dataset-items?timeout=120" \
-H "Authorization: Bearer $APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"site":"stackoverflow","query":"javascript array","tagged":"javascript","maxQuestions":5,"accepted":true,"sort":"votes"}'

JavaScript (npm install apify-client):

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('atesen-software/stack-exchange-questions').call({ site: "stackoverflow", query: "javascript array", tagged: "javascript", maxQuestions: 5, accepted: true, sort: "votes" });
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);

Use with AI agents (MCP)

Claude Desktop, Cursor, VS Code and other MCP clients can call this Actor as a tool through the Apify MCP server. Load only this Actor with:

https://mcp.apify.com?tools=atesen-software/stack-exchange-questions

Client config (sign in with Apify OAuth when the browser opens, or add an Authorization: Bearer <APIFY_TOKEN> header instead):

{
"mcpServers": {
"apify": { "url": "https://mcp.apify.com?tools=atesen-software/stack-exchange-questions" }
}
}

Then ask in plain words, for example: "Find the 5 most voted Stack Overflow questions about javascript arrays that have an accepted answer." The agent fills the same input fields you see on the Input tab, and runs are billed to your Apify account at the prices on the Pricing tab.

Data source and attribution

Data comes from the official Stack Exchange API. The content is written by Stack Exchange users and licensed under CC BY-SA (version shown in each row's contentLicense). When you publish or reuse it, the Stack Exchange API terms and the license require you to show Stack Exchange as the source, link to the original post, name the author and keep the same license for adapted content. The attribution fields in every row contain what you need.

Users are responsible for complying with the Stack Exchange API Terms of Use and the Stack Exchange Acceptable Use Policy. That policy does not allow automated collection of network content to build a similar or competing site, or to train, test, index or improve generative AI, chatbot, LLM or machine-learning models, without Stack Exchange's prior written consent. Do not use this Actor for those purposes unless you have that consent.

This Actor is not affiliated with or endorsed by Stack Exchange Inc.; Stack Overflow and Stack Exchange are trademarks of Stack Exchange Inc.

FAQ

Can I scrape a site other than Stack Overflow? Yes. Use the site's API identifier in site, for example superuser, serverfault, math, askubuntu, unix, dba or datascience. The full list is at api.stackexchange.com/docs/sites.

Why did I get fewer rows than I asked for? The search may have fewer matches, local filters such as unanswered drop rows, or a limit (request cap, runtime, quota, maximum cost) was reached. SUMMARY.reason tells you which one.

Does it include personal data? Only what Stack Exchange publishes for every public post: the author's display name, public profile link and user ID. You need these for attribution; if you remove them downstream, check the CC BY-SA requirements first.

Can I schedule it? Yes. A daily run with sort: "creation" and your tags returns the newest questions; keep maxQuestions modest or add a Stack Apps key.

Support

Report problems or request features on the Issues tab of this Actor. Built and maintained by Atesen Software.