Stack Overflow Scraper - Questions & Users avatar

Stack Overflow Scraper - Questions & Users

Pricing

from $2.00 / 1,000 question scrapeds

Go to Apify Store
Stack Overflow Scraper - Questions & Users

Stack Overflow Scraper - Questions & Users

Scrape Stack Overflow questions and users via the official Stack Exchange API. Get titles, scores, answers, views, tags, bodies, and user profiles. Works across all Stack Exchange sites.

Pricing

from $2.00 / 1,000 question scrapeds

Rating

0.0

(0)

Developer

Md Jakaria Mirza

Md Jakaria Mirza

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

13 days ago

Last modified

Share

Stack Overflow Scraper - Questions & Public User Metadata

Scrape Stack Overflow and Stack Exchange question records through the official Stack Exchange API. The Actor can search questions by keyword, filter by tags, fetch exact question IDs, and optionally fetch public user profile metadata by user ID.

Use it for developer research, technical trend tracking, support knowledge-base discovery, and public Q&A analysis. No login is required. A Stack Apps API key is optional for higher quota.

Quick Start

{
"searchQueries": ["async await"],
"tags": ["javascript"],
"questionIds": [],
"userIds": [],
"sort": "votes",
"includeBody": false,
"maxResults": 5,
"site": "stackoverflow",
"apiKey": "",
"proxyConfiguration": {
"useApifyProxy": false
}
}

This collects a small set of JavaScript async await questions without full bodies or proxy usage.

Input

FieldTypeDefaultNotes
searchQueriesstring array["async await"]Keyword searches for questions.
tagsstring array[]Stack Exchange tags such as javascript, python, or visual-studio-code.
questionIdsstring array[]Exact question IDs to fetch.
userIdsstring array[]Exact public user IDs to fetch into the Users view.
sortstringvotesOne of votes, activity, creation, or hot.
includeBodybooleanfalseInclude plain-text question body when enabled.
maxResultsinteger10Question cap across all question inputs.
sitestringstackoverflowAny Stack Exchange API site, for example superuser or askubuntu.
apiKeystringemptyOptional Stack Apps key for higher API quota.
proxyConfigurationobjectdisabledUsually not needed for small official API runs.

Output

The default dataset contains question rows and optional public user rows. Store views separate them into Questions and Users.

Question fields include:

FieldDescription
questionId, title, linkStack Exchange question identity and URL.
score, answerCount, viewCount, isAnsweredPublic engagement metrics.
tagsQuestion tags.
ownerName, ownerId, ownerReputationPublic owner metadata returned by the API.
createdAt, lastActivityAtQuestion timestamps.
bodyPlain-text question body when includeBody is enabled.
site, scrapedAtSource site and scrape timestamp.

User rows include public profile fields such as displayName, reputation, badge counts, optional location, optional websiteUrl, profile link, and scrapedAt.

Verified Sample

An existing successful run returned this Stack Overflow question:

{
"questionId": 70201407,
"title": "Making paragraphs for the outline in VS Code using comments",
"score": 3,
"answerCount": 4,
"viewCount": 2574,
"isAnswered": true,
"tags": ["python", "visual-studio-code", "code-organization"],
"ownerName": "Oily",
"ownerReputation": 729,
"createdAt": "2021-12-02T14:38:19.000Z",
"lastActivityAt": "2026-06-22T06:54:16.000Z",
"site": "stackoverflow"
}

Pricing

Active pay-per-event pricing:

EventPrice
question-scraped$0.002 per question
user-scraped$0.002 per public user row
apify-actor-start$0.00005 per GB at run start

Rows are saved and charged atomically. Duplicate questions are skipped, one global question cap is enforced, and later pages or batches stop when the user's spending limit is reached.

Common Workflows

  1. Track popular questions for a language, framework, or error pattern.
  2. Build a public Q&A research dataset by tag and keyword.
  3. Fetch exact question IDs for known Stack Overflow discussions.
  4. Use site to collect from other Stack Exchange communities.
  5. Export to CSV, Excel, JSON, HTML, or connect through the Apify API.

Notes and Limits

  • The Actor uses the official Stack Exchange API, so quotas and fields follow that API.
  • A Stack Apps API key can raise request quota; small tests usually do not need it.
  • includeBody increases response size. Keep it off unless body text is needed.
  • Public user fields are optional and should be used for analysis, not spam or unsolicited outreach.

Responsible Use

Use this Actor for lawful collection of public Stack Exchange data. Respect Stack Exchange terms, API rules, privacy laws, and any downstream restrictions for exported data.

License

Apache-2.0