Stack Exchange Questions & Answers Scraper
Pricing
from $1.50 / 1,000 results
Stack Exchange Questions & Answers Scraper
Searches questions by tag or keyword on any Stack Exchange site. It returns the question, the accepted answer and top answers, scores, tags and dates.
Search Stack Overflow and any other Stack Exchange site by tag or keyword and get clean question and answer pairs as JSON, built for AI/RAG builders, developer-relations teams and content researchers.
- Questions with full text: title, body in Markdown, tags, score, views, answer count and dates.
- Answers included: the accepted answer plus the top-voted answers, also in Markdown.
- Any Stack Exchange site: stackoverflow, serverfault, askubuntu, superuser and more, via the official public API.
Sample result
{"questionId": 71031816,"title": "how do you properly reuse an httpx.AsyncClient within a FastAPI application?","url": "https://stackoverflow.com/questions/71031816/...","tags": ["python", "fastapi", "httpx"],"score": 29,"viewCount": 22100,"answerCount": 2,"isAnswered": true,"creationDate": "2022-02-08T09:56:02+00:00","lastActivityDate": "2023-04-24T06:22:43+00:00","bodyMarkdown": "I have a FastAPI application which ...","acceptedAnswer": {"answerId": 123, "score": 40, "isAccepted": true, "bodyMarkdown": "..."},"topAnswers": [{"answerId": 123, "score": 40, "isAccepted": true, "bodyMarkdown": "..."}],"site": "stackoverflow"}
Input example
{"site": "stackoverflow","tags": ["httpx"],"query": "","sort": "votes","includeAnswers": true,"maxItems": 20}
Pricing: $1.50 per 1,000 results
FAQ
Which sites work? Any site in the Stack Exchange network. Use its slug, e.g. serverfault.
Can I combine tags and a search text? Yes. Questions must have all the tags and match the text.
What if a question has no accepted answer? acceptedAnswer is null; topAnswers still lists the best answers.
Why do I get fewer results than I asked for? Fewer questions matched, or the API's daily request limit for anonymous use was reached.
Legal
This Actor only collects publicly available data through the public Stack Exchange API. Content is user-contributed under Creative Commons licences (CC BY-SA); keep the attribution links (url) when you reuse it.