stackexchange_scraper
Search Stack Overflow or any Stack Exchange site by keyword or tag and get one row per question with score, tags, author, views, answers, and accepted answer text.
Instructions
Search Stack Overflow or any Stack Exchange site's free public API by keyword or tag and get one row per question — score, tags, author, view/answer counts and the accepted answer's text. Billed to your own Apify account: ~$0.0005 per Question (Apify free-plan price, lower on paid plans).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | Site — Enter the Stack Exchange site's API parameter, e.g. stackoverflow, superuser, serverfault, askubuntu, math.stackexchange, or any other site slug from https://stackexchange.com/sites. | stackoverflow |
| sortBy | No | Sort by — Choose how results are ordered before Max results per query is applied. relevance ranks by text match to the query, votes by score, creation by newest first, and activity by most recently active. Options: relevance = Relevance; votes = Votes (score); creation = Creation date; activity = Last activity. | votes |
| tagged | No | Tags (optional) — Enter tags to narrow every query to, e.g. python, playwright. Leave empty to search all tags. Combined with each entry in Search queries. | |
| queries | Yes | Search queries — Enter one search phrase per row, e.g. web scraping, playwright timeout. Each query is run separately against the chosen site and returns its own set of question rows. Example: ["web scraping"]. | |
| minScore | No | Minimum score — Enter the minimum question score (upvotes minus downvotes) to keep, e.g. 0. Questions scoring lower are dropped after fetching. | |
| maxResults | No | Max results per query — Enter the maximum number of questions to return per query, e.g. 50. | |
| includeAnswers | No | Include accepted answer — Turn this on to add the accepted answer's full text as acceptedAnswerBody. Leave off for faster, smaller runs — most questions do not have one, and this field stays null when they don't. |