Stack Overflow Questions Scraper avatar

Stack Overflow Questions Scraper

Pricing

from $10.00 / 1,000 results

Go to Apify Store
Stack Overflow Questions Scraper

Stack Overflow Questions Scraper

Scrape Stack Overflow questions via the SE API. Search by keyword or tag, fetch by ID. Get scores, answers, views, tags, owner info, and full question bodies.

Pricing

from $10.00 / 1,000 results

Rating

0.0

(0)

Developer

lulz bot

lulz bot

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

6 days ago

Last modified

Categories

Share

Scrape Stack Overflow questions and answers via the official Stack Exchange API v2.3. Search by keyword, filter by tag, or fetch specific question IDs. Extract scores, answer counts, view counts, tags, owner info, and full HTML question bodies.

Modes

ModeDescription
searchSearch questions by keyword and/or tag
questionsFetch specific questions by their numeric IDs

Output Fields

FieldDescription
questionIdNumeric question ID
titleQuestion title
bodyFull question body (HTML)
tagsArray of tag strings
scoreNet upvotes minus downvotes
answerCountNumber of answers
viewCountTotal views
isAnsweredWhether question has an accepted or upvoted answer
acceptedAnswerIdID of accepted answer (if any)
ownerObject with name, reputation, link
creationDateISO timestamp when question was created
lastActivityDateISO timestamp of last activity
linkDirect URL to the question
scrapedAtISO timestamp of scrape

Input Options

  • Mode: search or questions
  • Search Queries: Keywords to search (e.g. "python async", "react hooks")
  • Tags: Filter by SO tags (e.g. "javascript", "python")
  • Question IDs: Specific question IDs to fetch (e.g. "11227809")
  • Sort By: relevance, votes, creation, or activity
  • Max Results: Up to 500 per query
  • Proxy: Optional proxy configuration

Example Output

{
"questionId": 11227809,
"title": "Why is processing a sorted array faster than processing an unsorted array?",
"body": "<p>Here is a piece of C++ code...</p>",
"tags": ["java", "c++", "performance", "cpu-architecture", "branch-prediction"],
"score": 27145,
"answerCount": 26,
"viewCount": 1621534,
"isAnswered": true,
"acceptedAnswerId": 11227902,
"owner": {
"name": "GManNickG",
"reputation": 503000,
"link": "https://stackoverflow.com/users/87234"
},
"creationDate": "2012-06-27T13:51:36.000Z",
"lastActivityDate": "2026-04-20T10:00:00.000Z",
"link": "https://stackoverflow.com/questions/11227809",
"scrapedAt": "2026-04-26T12:00:00.000Z"
}

Use Cases

  • Research: Find top questions by technology or topic
  • Trend Analysis: Track which tags and topics are most active
  • Knowledge Base: Build datasets of Q&A content for training or reference
  • Competitor Analysis: Monitor questions about specific libraries or frameworks
  • Developer Insights: Analyze reputation, voting patterns, and answer rates

Notes

  • Uses the public Stack Exchange API v2.3 (no auth required)
  • API quota: 300 requests/day per IP (sufficient for most use cases)
  • Responses are automatically decompressed (gzip)
  • Results are deduplicated by question ID across multiple queries

Run on Apify

This scraper runs on the Apify platform — a full-stack web scraping and automation cloud. Sign up for a free account to get started with 30-day trial of all features.

Try Apify free ->