Stack Exchange Questions Scraper - Any Site, No Login avatar

Stack Exchange Questions Scraper - Any Site, No Login

Pricing

$3.00 / 1,000 question scrapeds

Go to Apify Store
Stack Exchange Questions Scraper - Any Site, No Login

Stack Exchange Questions Scraper - Any Site, No Login

Scrape questions from any Stack Exchange site (Stack Overflow, Super User, Math, Server Fault and more) by tag, title search or sort. Returns score, views, answers, tags, owner and dates. No login needed. $0.003 per question, cheaper than the Store leaders.

Pricing

$3.00 / 1,000 question scrapeds

Rating

0.0

(0)

Developer

Gio

Gio

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

0

Monthly active users

2 days ago

Last modified

Categories

Features

Limited permissions

Share

Stack Exchange Questions Scraper

Why use this scraper

The Stack Exchange network is over 170 sites, Stack Overflow, Super User, Ask Ubuntu, Math.SE, Server Fault and many more, and every one of them has questions worth mining: for AI training data, for a tag-based knowledge base, for tracking what a community is stuck on right now. Most scrapers in this niche only cover Stack Overflow itself. Pulling data from the rest of the network usually means reading the Stack Exchange API documentation yourself and writing a small client.

This Actor is that client, already built, for any site in the network. Give it a site key, an optional tag or title filter, and a sort order, and you get back structured question data: score, views, answer count, owner, tags and both key dates, ready to filter or feed downstream.

Overview

The Actor queries one Stack Exchange site's public question listing at a time, filtered by tag and/or a substring in the title, sorted by votes, activity, newest, hot-right-now, top of the week or top of the month, and returns up to maxItems questions as clean JSON. Every question comes with its vote score, view count, answer count, whether it has an accepted answer, its tags, the asking user's handle and reputation, and both the creation and last-activity timestamps.

Supported inputs

  • site - any Stack Exchange site key: stackoverflow, serverfault, superuser, askubuntu, math, dba, security, ux, and so on for the full network.
  • tag - filter to questions carrying this tag (e.g. python, react, postgresql). Leave empty for no tag filter.
  • intitle - filter to questions whose title contains this substring.
  • sort - votes (all-time top), activity (most recently active), creation (newest), hot (trending now), week (top of the last 7 days), or month (top of the last 30 days).
  • maxItems - how many questions to return, 1 to 500.

tag and intitle can be combined; site is required (defaults to stackoverflow) and applies to the whole run.

Use cases

  • AI training and fine-tuning data: pull high-vote, accepted-answer questions on a topic as a clean question corpus.
  • Tag-based knowledge base: build a reference set of the top questions on a specific tag (e.g. docker, kubernetes) across one or more sites.
  • Community and demand research: sort by hot or week to see what a developer or professional community is actively asking about right now, useful for content planning or product research.
  • Support and documentation gap analysis: search intitle for a product or error message to see how often and how recently people are asking about it in public.
  • Cross-site research: run the same tag or title filter across multiple Stack Exchange sites (e.g. math and stats for the same statistics question) to compare how different communities frame it.

How it works

The Actor reads Stack Exchange's own public question-search API for the site you choose, passing your tag, title and sort parameters straight through, and paginates until it reaches maxItems. No login or API key is required for this kind of read-only public access, and no browser is involved, so a run of a few hundred questions finishes in seconds.

Input configuration

Top-voted Python questions on Stack Overflow:

{
"site": "stackoverflow",
"tag": "python",
"sort": "votes",
"maxItems": 50
}

Trending questions on Super User right now:

{
"site": "superuser",
"sort": "hot",
"maxItems": 30
}

Title search across a specific site:

{
"site": "serverfault",
"intitle": "nginx 502",
"sort": "activity",
"maxItems": 20
}

Output sample

Two real, top-voted Python questions returned by the Actor from Stack Overflow:

{
"question_id": 231767,
"title": "What does the \"yield\" keyword do in Python?",
"link": "https://stackoverflow.com/questions/231767/what-does-the-yield-keyword-do-in-python",
"score": 13138,
"answer_count": 51,
"view_count": 3505223,
"is_answered": true,
"accepted_answer_id": 231855,
"tags": ["python", "iterator", "generator", "yield"],
"creation_date": "2008-10-23T22:21:11.000Z",
"last_activity_date": "2026-04-30T18:43:47.000Z",
"owner": {
"display_name": "Alex. S.",
"user_id": 18300,
"reputation": 148504,
"link": "https://stackoverflow.com/users/18300/alex-s"
},
"site": "stackoverflow",
"scrapedAt": "2026-11-23T09:28:14.435Z"
}
{
"question_id": 419163,
"title": "What does if __name__ == \"__main__\": do?",
"link": "https://stackoverflow.com/questions/419163/what-does-if-name-main-do",
"score": 8449,
"answer_count": 40,
"view_count": 5053243,
"is_answered": true,
"accepted_answer_id": 419185,
"tags": ["python", "namespaces", "program-entry-point", "python-module", "idioms"],
"creation_date": "2009-01-07T04:11:00.000Z",
"last_activity_date": "2025-09-22T16:20:13.000Z",
"owner": {
"display_name": "Devoted",
"user_id": 51518,
"reputation": 185101,
"link": "https://stackoverflow.com/users/51518/devoted"
},
"site": "stackoverflow",
"scrapedAt": "2026-11-23T09:28:14.435Z"
}

Key output fields

FieldTypeDescription
question_idintegerStack Exchange's internal question ID
titlestringQuestion title
linkstringURL to the question on the site
scoreintegerNet vote score
answer_countintegerNumber of answers posted
view_countintegerTotal page views
is_answeredbooleanWhether the question has at least one answer meeting Stack Exchange's "answered" threshold
accepted_answer_idintegerID of the accepted answer, when one exists
tagsarray of stringsTags attached to the question
creation_datestringISO timestamp the question was posted
last_activity_datestringISO timestamp of the most recent edit, answer or comment
owner.display_namestringAsker's display name
owner.reputationintegerAsker's reputation score on that site
owner.linkstringLink to the asker's profile
sitestringWhich Stack Exchange site this question came from
scrapedAtstringISO timestamp of the request

Pricing

Pay per event, no subscription:

EventPrice
Question scraped$0.003

A run of 50 questions costs $0.15. Compare this to the two leading Stack Exchange scrapers in the Store: $0.006/question on stack-exchange-scraper's Free tier and $0.005/question on stack-exchange-questions-scraper's Free tier (both drop with paid Apify plan tiers). This Actor's flat $0.003 is cheaper on every tier for a plain question listing.

What makes this richer than the competition

  • stack-exchange-scraper by sian.agency (12 users/30d) covers full Q&A threads (questions plus every answer, fetched by ID) and keyword/URL search, at $0.0011 to $0.006 per question depending on plan tier and mode. It is the right pick when you need the answers themselves, not just the question metadata. This Actor is the simpler, cheaper pick when question-level data (score, views, tags, owner) is all you need.
  • stack-exchange-questions-scraper by logiover (3 users/30d) is Stack Overflow only, filtered by tag, at $0.0035 to $0.005 per question. This Actor covers the entire Stack Exchange network through the same site input, not just Stack Overflow, at a lower flat price.

Notes & limitations

  • This Actor returns question-level metadata only: title, score, views, tags, owner and dates. It does not fetch the question body text or any answers; use the competitors above if you need full Q&A thread content.
  • site must be a valid Stack Exchange site key (e.g. stackoverflow, not "Stack Overflow"). An invalid key returns zero results rather than an error.
  • tag is case-sensitive and must match the site's own tag spelling exactly (e.g. postgresql, not Postgres or postgres-9.6).
  • Like any public API, Stack Exchange enforces a shared daily request quota for unauthenticated access. Extremely high-volume runs across many sites in a short window can be throttled by Stack Exchange itself; this is not something the Actor controls.
  • accepted_answer_id is absent (not just null) on questions with no accepted answer, so check for the field's presence rather than assuming it is always there.

FAQ

Can I scrape a site other than Stack Overflow? Yes, set site to any Stack Exchange site key: superuser, askubuntu, math, dba, security, ux, serverfault, and so on.

Can I combine a tag filter and a title search? Yes, tag and intitle both apply when set; a question must match both to be returned.

Does this fetch the question body or the answers? No, only question-level metadata (title, score, views, tags, owner, dates). It does not return the question text or answer content.

What does sort: "hot" mean? It mirrors Stack Exchange's own "Hot" tab: questions getting unusually high activity relative to their age right now, not simply the newest or highest-voted.

Does this need an API key? No. Stack Exchange's question listing is public, read-only data; no login or key is required.

For AI Agents & LLM Apps

This Actor works with the Apify MCP server (mcp.apify.com), so an LLM agent can call it as a tool to pull Stack Exchange question data mid-conversation, and with direct API calls for scripted use.

Example via API (run-sync-get-dataset-items):

curl -X POST "https://api.apify.com/v2/acts/gio21~stackexchange-questions-scraper/run-sync-get-dataset-items?token=<YOUR_TOKEN>" \
-H "Content-Type: application/json" \
-d '{"site": "stackoverflow", "tag": "python", "sort": "votes", "maxItems": 50}'

Disclaimer

This Actor reads publicly available question data through the Stack Exchange API. It is not affiliated with, endorsed by, or sponsored by Stack Exchange Inc. or Stack Overflow.

SEO Keywords

Stack Exchange scraper, Stack Overflow questions scraper, Stack Exchange API data, Stack Overflow tag scraper, Q&A dataset scraper, developer Q&A data