Request a tool
All toolsGuidesMCP serverRequest a toolPlatformsCategories
Stack Overflow / Stack Exchange Scraper icon

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.

5 from 1 review on Apify 15 runs on Apify $0.002 per question ($2 / 1,000)
Run this in the cloudRun on Apify →

Developer & Research Tools

How it works

  1. 1
    Open it on Apify

    Hit Run on Apify — it opens the tool in the cloud, no install.

  2. 2
    Set the inputs

    Adjust query, site, tags (sensible defaults are pre-filled).

  3. 3
    Click Run

    The tool runs on Apify’s cloud and collects the data for you.

  4. 4
    Export 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 forWhenPrice
Question returnedCharged 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

FieldWhat it doesType
queryKeywords 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
siteWhich Stack Exchange network site to search.string
tagsComma-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
sortByOrdering of results. "votes" = highest score first, "relevance" = best keyword match, "creation" = newest, "activity" = most recently active.string
maxItemsMaximum 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
notionConnectorOptional. 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
notionParentIdOptional. 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:

answerCountbodycreatedAtisAnsweredownerNameownerReputationquestionIdscoretagstitleurlviewCount

Export 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) iconDeveloper & Research Tools

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.

2 use cases

arXiv Scraper iconDeveloper & Research Tools

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.

2 use cases

OpenAlex Scholarly Works Scraper iconDeveloper & Research Tools

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.

2 use cases

Crossref Scholarly Works Scraper iconDeveloper & Research Tools

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.

2 use cases

Wikipedia Scraper iconDeveloper & Research Tools

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.

3 use cases

Internet Archive Scraper iconDeveloper & Research Tools

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.

2 use cases

See all Developer & Research Tools →

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

FieldNotes
questionIdStack Exchange's stable numeric id. Used for de-duplication across pages and runs.
titleThe question title.
urlCanonical link to the question on the site you searched.
scoreNet votes.
answerCountHow many answers the question has.
isAnsweredWhether an answer has been accepted.
viewCountTotal views.
tagsThe question's tags, as an array.
ownerName, ownerReputationThe asker's display name and reputation.
createdAtISO 8601 timestamp.
bodyThe full question text with HTML stripped to plain text.

Input

FieldDefaultNotes
queryKeywords matched against title and body. Optional if you give tags.
sitestackoverflowOne of stackoverflow, serverfault, superuser, askubuntu, mathoverflow, softwareengineering.
tagsComma-separated, e.g. javascript,promise. A question must carry all of them.
sortByvotesvotes (highest score first), relevance (best keyword match), creation (newest), activity (most recently active).
maxItems501–1000. The actor paginates 100 per page until it has this many or the results run out.
notionConnectorOptional. 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.
notionParentIdOptional Notion data-source id to write into. Leave empty to create the pages privately in your workspace.
proxyConfigurationoffThe 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

EventWhenPrice
Question returnedEach 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_remaining from every response and logs it, so you can see how much budget is left.
  • It honours the API's own backoff directive — when Stack Exchange asks it to wait, it sleeps rather than hammering.
  • Transient 429 and 5xx responses 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, NETWORK or EMPTY_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.