ChimeraMiND Data
Home / Tools / Stack Overflow & Stack Exchange Q&A Scraper
Developer tools

Stack Overflow & Stack Exchange Q&A Scraper

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.

Run Stack Overflow & Stack Exchange Q&A Scraper on Apify →

Pricing

Apify planPer QuestionPer 1,000
Free plan$0.0005$0.50
Starter$0.0004$0.40
Scale$0.00035$0.35
Business$0.0003$0.30
Enterprise$0.0003$0.30
Enterprise+$0.0003$0.30

Primary event rates from a catalog snapshot; this is not the total price of a run. Additional charge events and Actor Start fees may apply; start fees can scale with memory. Check the Actor's Pricing tab on Apify for all events, conditions and current plan-specific rates, and set a maximum run budget before starting.

Sample output

No recorded sample is available yet.

Call from code

Use the existing catalog input below as a starting point. Review the tool's input form on Apify before running it.

import json
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("webdatatools/stackexchange-scraper").call(run_input=json.loads("{\n    \"queries\": [\n        \"web scraping\",\n        \"playwright timeout\"\n    ],\n    \"site\": \"stackoverflow\",\n    \"tagged\": [\n        \"python\"\n    ]\n}"))

for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('webdatatools/stackexchange-scraper').call({
    "queries": [
        "web scraping",
        "playwright timeout"
    ],
    "site": "stackoverflow",
    "tagged": [
        "python"
    ]
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
curl -X POST "https://api.apify.com/v2/acts/webdatatools~stackexchange-scraper/run-sync-get-dataset-items" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"queries":["web scraping","playwright timeout"],"site":"stackoverflow","tagged":["python"]}'

Related tools

Workflows