Stack Overflow / Stack Exchange Scraper
Search Stack Overflow and Stack Exchange by keyword or tags. Get structured questions with score, answers, views, tags, author, and link as JSON or CSV.
How it works
- 1Open it on Apify
Hit Run on Apify — it opens the tool in the cloud, no install.
- 2Set the inputs
Adjust
query,site,tags(sensible defaults are pre-filled). - 3Click Run
The tool runs on Apify’s cloud and collects the data for you.
- 4Export the results
Download as JSON, CSV or Excel, or pipe straight into your app, Google Sheets, or an AI agent.
Pricing
$0.002 per question = $2 per 1,000
| You are charged for | When | Price |
|---|---|---|
| Question returned | Charged per question returned. | $0.002 |
Pay-per-event pricing: you are billed per result, not per subscription — a run that returns nothing costs nothing beyond the start fee. Billing is handled by Apify on your own account. These are the live Apify store prices, in effect since 2026-06-13, and they are what you are actually charged.
Inputs
| Field | What it does | Type |
|---|---|---|
query | Keywords to search for in question titles and bodies (e.g. "async await", "git rebase conflict"). Can be left empty if you provide one or more Tags instead. | string |
site | Which Stack Exchange network site to search. | string |
tags | Comma-separated tags to filter by, e.g. "javascript,promise" or "python,pandas". Optional. A question must carry ALL listed tags. You can search by tags alone with an empty query. | string |
sortBy | Ordering of results. "votes" = highest score first, "relevance" = best keyword match, "creation" = newest, "activity" = most recently active. | string |
maxItems | Maximum number of questions to return. The actor paginates the API (100 per page) until this many are collected or there are no more results. | integer |
notionConnector | Optional. Write each question as a page into your Notion when the run finishes. Authorize a Notion connector once in Settings → API & Integrations → MCP connectors, then pick it here. Leave empty to skip (default) — results are always saved to the dataset regardless. | string |
notionParentId | Optional. The Notion data source ID of the database to write into (only used if a Notion connector is set). Leave empty to create the pages privately in your workspace instead. | string |
What you get
A structured dataset — each result includes fields like:
answerCountbodycreatedAtisAnsweredownerNameownerReputationquestionIdscoretagstitleurlviewCountExport every run as JSON, CSV or Excel, or send it to your app, a database, Google Sheets, or an AI agent.
2 ready-to-run use cases
Top Pandas Questions on Stack Overflow by Votes
The highest-voted Stack Overflow questions for the pandas tag, ranked by score, with title, votes, views, answers and links. Handy for Python docs and FAQs.
Stack Overflow Keyword Search: async/await Questions
Searching Stack Overflow for async/await? Get matching questions ranked by relevance, with score, view counts and answers, exported to JSON or CSV.
Related tools in Developer & Research Tools
Other ready-to-run tools in the same category — all pay-per-use on the Apify cloud.
Package Registry Scraper (npm + PyPI)
Get npm and PyPI package metadata - version, license, repo, keywords, and npm download counts. Search by keyword or look up exact names. No API key needed.
arXiv Scraper
Search arXiv and get clean JSON: titles, abstracts, authors, categories, DOI, dates and PDF links. No API key. Sort by relevance or date; push to Notion.
OpenAlex Scholarly Works Scraper
Search 250M+ OpenAlex papers by keyword. Get titles, authors, venue, year, citations, concepts, OA links and full abstracts as structured JSON. No API key.
Crossref Scholarly Works Scraper
Search 150M+ scholarly works on Crossref and export DOI, authors, journal, citation count, and abstracts as JSON or CSV. Filter by type and date.
Wikipedia Scraper
Search Wikipedia by keyword or fetch clean page data (plain text, thumbnail, categories, URL) by title. No API key, no anti-bot. Up to 50 titles per batch.
Internet Archive Scraper
Search archive.org by keyword and export clean items (title, creator, year, downloads, item URL). Filter by media type, sort by popularity or date.
Where this tool sits
- Categories
- Developer & Research Tools
- Platforms
- Stack Overflow
Stack Overflow / Stack Exchange Scraper
Search Stack Overflow — or any of the big Stack Exchange sites (Server Fault, Super User, Ask Ubuntu, MathOverflow, Software Engineering) — by keyword and/or tags, and get back clean, structured questions. No API key, no login, no anti-bot.
It talks to the public api.stackexchange.com API directly, so results are fast and reliable. It paginates for you, dedupes by question id, and returns the question body as plain text (HTML stripped).
$2.00 per 1,000 questions ($0.002 each), with no run-start fee. Flat rate — no volume tiers, no plan gates — and you are charged only for questions actually returned.
What you get per question
| Field | Notes |
|---|---|
questionId | Stack Exchange's stable numeric id. Used for de-duplication across pages and runs. |
title | The question title. |
url | Canonical link to the question on the site you searched. |
score | Net votes. |
answerCount | How many answers the question has. |
isAnswered | Whether an answer has been accepted. |
viewCount | Total views. |
tags | The question's tags, as an array. |
ownerName, ownerReputation | The asker's display name and reputation. |
createdAt | ISO 8601 timestamp. |
body | The full question text with HTML stripped to plain text. |
Input
| Field | Default | Notes |
|---|---|---|
query | — | Keywords matched against title and body. Optional if you give tags. |
site | stackoverflow | One of stackoverflow, serverfault, superuser, askubuntu, mathoverflow, softwareengineering. |
tags | — | Comma-separated, e.g. javascript,promise. A question must carry all of them. |
sortBy | votes | votes (highest score first), relevance (best keyword match), creation (newest), activity (most recently active). |
maxItems | 50 | 1–1000. The actor paginates 100 per page until it has this many or the results run out. |
notionConnector | — | Optional. Write each question as a page into your Notion workspace when the run finishes. Authorize a Notion MCP connector once in Settings → API & Integrations, then pick it here. |
notionParentId | — | Optional Notion data-source id to write into. Leave empty to create the pages privately in your workspace. |
proxyConfiguration | off | The Stack Exchange API is open, so a proxy is optional. Only turn it on if you are hitting the per-IP daily quota. |
You must provide a query or at least one tag. Results always land in the dataset regardless of whether Notion delivery is configured.
Example
{ "query": "async await", "site": "stackoverflow", "tags": "javascript", "sortBy": "votes", "maxItems": 50 }
Tags-only search, newest first:
{ "site": "askubuntu", "tags": "apt,upgrade", "sortBy": "creation", "maxItems": 200 }
Pricing
| Event | When | Price |
|---|---|---|
| Question returned | Each question row written to the dataset | $0.002 ($2.00 / 1,000) |
No run-start fee. A default 50-question run costs $0.10; the 1,000-question maximum costs $2.00. Empty searches and diagnostic rows are never charged, so a query that matches nothing costs $0.00.
Quota, backoff and diagnostics
The unauthenticated Stack Exchange API allows roughly 300 requests per day per IP. This actor is built to fail loudly rather than quietly:
- It reads
quota_remainingfrom every response and logs it, so you can see how much budget is left. - It honours the API's own
backoffdirective — when Stack Exchange asks it to wait, it sleeps rather than hammering. - Transient
429and5xxresponses are retried with exponential backoff and a rotated user agent before it gives up. - When it does give up, it writes a single diagnostic row with a code —
NO_RESULTS,RATE_LIMITED,NETWORKorEMPTY_RESPONSE— and finishes cleanly instead of hard-failing. Diagnostic rows are never charged.
For very large jobs, split the work by tag, keyword, or site so no single run leans on one IP's daily quota.