Stack Overflow Scraper - Questions & Users avatar

Stack Overflow Scraper - Questions & Users

Pricing

from $1.50 / 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 $1.50 / 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

3 hours 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": 1,
"site": "stackoverflow",
"apiKey": "",
"proxyConfiguration": {
"useApifyProxy": false
}
}

This collects one JavaScript async await question 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.
sortstringvotesvotes, activity, or creation; hot is tag-only and relevance is search-only.
includeBodybooleanfalseInclude plain-text question body when enabled.
maxResultsinteger1Question cap across all question inputs; exact user IDs are separate.
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.

Every row also contains entityType (question or user). The Output tab links to a RUN_STATUS record with saved counts, source progress, duplicate counts, API backoff, remaining quota, stop reason, and sanitized failure details.

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.0015 per question
user-scraped$0.0015 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.

That is $1.50 per 1,000 successfully saved questions or public user rows, plus the small run-start event.

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.
  • Without a key, the official API normally reports a 300-request daily quota per source IP. A Stack Apps key can raise it to 10,000 requests.
  • Official backoff instructions are honored before another request, and quota exhaustion is reported separately from an API failure.
  • hot is valid only for tag-only /questions runs. Use relevance only for keyword searches without exact question IDs.
  • includeBody increases response size. Keep it off unless body text is needed.
  • Valid searches with no matches finish successfully as empty; invalid input and upstream/API failures fail visibly.
  • 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.

Stack Exchange user-contributed content is licensed under Creative Commons Attribution-ShareAlike. If you display or redistribute exported post content, preserve the source link and provide the attribution required by the applicable license version. See Stack Overflow licensing.

License

Apache-2.0