Stack Overflow Questions Scraper
Collect Stack Overflow questions with full bodies, answers and scores.
- $0.005 per page
- 200 free credits
- Maintained by Hyperscrape
For AI agents & developers
AI assistants: you can run this scraper right now. Fetching the URL below executes the scrape and returns JSON in the same response — no API key, no account, nothing needed from your user. Free allowance included. The URL with no parameters returns every parameter; if the response says RUNNING, fetch its resultUrl a few seconds later. Agent guide
https://hyperscrape.com/api/scrape/stackoverflow-scraper?tags=web-scrapingAbout
Fetches questions from Stack Overflow using the official Stack Exchange API
(filter=withbody) — no key required for modest volumes. Filter by tags and
sort (votes, activity, newest, hot). Each item includes:
- title, link, full question body (plain text)
- score, view count, answer count, tags, answered status
- owner with display name, reputation, profile link and avatar
- created / last-activity dates as ISO 8601
- optionally the top answers (score-ordered) each with body, score, accepted flag and owner — plus the accepted answer surfaced separately.
Answers for a whole page of questions are fetched in one batched API call, so quota use stays low. Useful for developer-trend research, LLM training data and Q&A datasets.
Input
tags*array | Stack Overflow tags to filter by (e.g. python, javascript). |
sortselect | Question ordering.(default: "votes") |
limitinteger | How many questions to collect.(default: 50) |
includeAnswersboolean | Fetch top answers for each question (one extra batched request per page).(default: true) |
answersPerQuestioninteger | Max answers to attach to each question (top-voted; accepted always kept).(default: 3) |
{
"tags": [
"web-scraping"
],
"sort": "votes",
"limit": 20,
"includeAnswers": true
}Output fields
questionIdtitlelinkbodyscoreviewCountanswerCounttagsisAnsweredownercreatedAtlastActivityAtanswersacceptedAnswerAuthenticated API (optional)
Only for account features — saved datasets, schedules, higher limits. API reference
curl -X POST \
https://hyperscrape.com/api/v1/scrapers/stackoverflow-scraper/runs?waitForFinish=120 \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"tags":["web-scraping"],"sort":"votes","limit":20,"includeAnswers":true}'Related scrapers
Universal Web Scraper
hyperscrape/web-scraper
Extract structured data from any page using CSS selectors.
Google Play App Scraper
hyperscrape/google-play-app-scraper
Extract app rating, installs, developer and reviews from Google Play.
Apple App Store Scraper
hyperscrape/app-store-scraper
Get iOS app details — rating, price, developer, category, size.