Hyperscrape Store

Stack Exchange Answers Scraper

Every answer for given Stack Exchange questions — markdown bodies, scores, owners.

  • $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/stackexchange-answers-scraper?questions=https%3A%2F%2Fstackoverflow.com%2Fquestions%2F11227809

About

Deep-fetches specific questions and all of their answers from any Stack Exchange site (Stack Overflow, Super User, Server Fault, Ask Ubuntu, math.stackexchange, …) via the official API (api.stackexchange.com/2.3, filter=withbody) — no key required for modest volumes.

Give it question URLs (site is inferred from the URL) or bare numeric IDs plus a site name. For each question it emits one question item (title, markdown-converted body, score, views, tags, owner, accepted-answer id) followed by one answer item per answer with score, accepted flag, owner (name, reputation, profile link), created/last-activity dates and the full body converted to readable markdown-ish text with code blocks preserved. Answers are paginated so long threads are captured completely.

Looking to discover questions by tag instead? Use the Stack Overflow Questions Scraper — this one drills into questions you already have.

Input

questions*
array
Question URLs (any Stack Exchange site) or bare numeric question IDs, one per line.
site
string
Stack Exchange site API name used for bare numeric IDs (e.g. stackoverflow, superuser, askubuntu, math).(default: "stackoverflow")
{
  "questions": [
    "https://stackoverflow.com/questions/11227809/why-is-processing-a-sorted-array-faster-than-processing-an-unsorted-array",
    "927358"
  ],
  "site": "stackoverflow"
}

Output fields

typesitequestionIdquestionTitleanswerIdtitlebodyscoreisAcceptedownertagsviewCountlinkcreatedAt

Authenticated API (optional)

Only for account features — saved datasets, schedules, higher limits. API reference

curl -X POST \
  https://hyperscrape.com/api/v1/scrapers/stackexchange-answers-scraper/runs?waitForFinish=120 \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"questions":["https://stackoverflow.com/questions/11227809/why-is-processing-a-sorted-array-faster-than-processing-an-unsorted-array","927358"],"site":"stackoverflow"}'