Stack Overflow & Stack Exchange Scraper avatar

Stack Overflow & Stack Exchange Scraper

Pricing

from $2.00 / 1,000 results

Go to Apify Store
Stack Overflow & Stack Exchange Scraper

Stack Overflow & Stack Exchange Scraper

Search Stack Overflow & any Stack Exchange site for questions — and their answers — by keyword, tags, votes. Free API, optional key for higher quota. For research & datasets.

Pricing

from $2.00 / 1,000 results

Rating

0.0

(0)

Developer

Ponderable Hydrometer

Ponderable Hydrometer

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

5 days ago

Last modified

Share

Search questions — and optionally their full answers — across Stack Overflow and any Stack Exchange site, by keyword, tags, votes or recency. Includes question/answer bodies, scores and accepted flags. Free API (add a free key for 10,000 requests/day).

Ideal for LLM training datasets, technical research, dev-trend analysis and content pipelines — clean, structured Q&A with the signals you filter on.

What you get

Questions — one row per question:

  • questionId, title, link, score, viewCount
  • answerCount, isAnswered, acceptedAnswerId
  • tags, owner, body (HTML), createdAt, lastActivity

Answers (when includeAnswers: true) — nested answers[], each with answerId, score, isAccepted, owner, body, createdAt, link

Output sample

{
"questionId": 12345678,
"title": "How does async/await work with forEach?",
"link": "https://stackoverflow.com/questions/12345678/…",
"score": 842,
"answerCount": 12,
"isAnswered": true,
"acceptedAnswerId": 12345699,
"viewCount": 410233,
"tags": ["javascript", "async-await", "foreach"],
"owner": "jane_dev",
"body": "<p>I have this loop…</p>",
"createdAt": "2016-05-01T10:12:00.000Z",
"lastActivity": "2024-11-03T08:40:00.000Z",
"answers": [
{
"answerId": 12345699,
"score": 1503,
"isAccepted": true,
"owner": "senior_dev",
"body": "<p>forEach doesn't await…</p>",
"createdAt": "2016-05-01T10:30:00.000Z",
"link": "https://stackoverflow.com/a/12345699"
}
]
}

Input

FieldTypeDefaultDescription
querystringasync awaitKeywords in question title/body
tagsarrayRestrict to these tags
sitestringstackoverflowSite slug (serverfault, superuser, askubuntu, math, datascience, …)
sortstringvotesvotes, creation, activity, relevance
orderstringdescdesc or asc
includeAnswersbooleanfalseAlso fetch each question's answers
keystring (secret)Free Stack Apps key (300 → 10,000 req/day)
maxResultsinteger100Cap on questions returned

Provide a query and/or tags.

Example input

{
"tags": ["rust", "async"],
"site": "stackoverflow",
"sort": "votes",
"includeAnswers": true,
"maxResults": 100
}

Why this actor

  • Any Stack Exchange site — not just Stack Overflow.
  • Questions + answers — pull full answer bodies, scores and accepted flags for complete Q&A pairs.
  • The signals you filter on — votes, views, answer counts, tags and dates.
  • Quota-aware — honours the API's backoff and stops before exhausting quota.

Pricing

Pay per result — $2.00 per 1,000 results (one question = one result; answers add value). No subscription or platform fees.

  • Hacker News Scraper — HN stories, comments and dev sentiment.
  • GitHub Search Scraper — repos, users and issues.
  • Package Registry Scraper — npm/PyPI/crates package intelligence.

Notes & limits

  • Data is the Stack Exchange API 2.3. Keyless use is capped at 300 requests/day per IP — add a free Stack Apps key (kept secret) for 10,000/day.
  • Bodies are HTML (as stored by Stack Exchange).
  • Content is licensed CC BY-SA by Stack Exchange contributors — attribute and use accordingly. This actor is an independent tool, not affiliated with Stack Exchange.