Dataset
Stack Overflow for Teams Q&A datasets for AI training
A Stack Overflow for Teams dataset is the content of one company's private Stack Overflow site, the product now named Stack Internal: the questions its engineers asked each other, every answer with its vote score, the answer the asker marked accepted, comments, tags, articles, collections and the Markdown revision history of each post. SourceX sources it to a buyer's spec from established businesses that run Stack Overflow for Teams. Each dataset is de-identified and licensed for an agreed permitted use.
Dataset manifest
Sourced to your spec- What it is
- Private questions with their voted answers and accepted marks, comments, tags, articles and collections, each post with its Markdown source and revisions
- Typical systems
- Stack Overflow for Teams, now Stack Internal, on its Free, Basic, Business or Enterprise tier; Articles and subject matter experts on Business and Enterprise, private teams on Enterprise
- Typical history
- Specified by the buyer; the site keeps each post's edits and hides deleted posts instead of erasing them, but whether either is exported depends on the route
- Modality
- Markdown text with embedded code blocks, plus structured scores, accepted marks, tags and dates
- Delivery formats
- Agreed per order; JSONL with one question thread per record, Markdown and HTML bodies, revisions nested per post; articles and collections as separate files
- Preparation
- User names, emails and profile links replaced with stable pseudonyms; code and every revision scanned for credentials and hostnames; passages copied from public Stack Overflow flagged
- Licensing
- Scoped per site, private team, tag set and date range; permitted use agreed per license
- Availability
- Sourced to your spec; scope depends on what the owner holds rights to, and supply is not guaranteed
What a delivery contains
Fields vary by source system and are fixed per order. A typical delivery includes:
| Field | Type | What it holds |
|---|---|---|
| question_id | integer | The Question's ID on the private site, the key its Answers, Comments and Revisions hang from. |
| title | string | The Question title as of its latest Revision. |
| body_markdown | string | The Question body as the author's Markdown source, with code blocks intact. |
| tags | array | The Tags on the Question; Answers carry none of their own and inherit these. |
| score | integer | Net of up and down Votes on the Question; the API gives this number, while the admin data download lists Votes separately. |
| dates | object | The Question's creation and last activity dates. |
| accepted_answer_id | integer | The Accepted answer, chosen by the asker or by an admin for a deactivated asker, or null when none was accepted. |
| asker | object | Pseudonym of the User who asked, with a reputation band. |
| answers | array | Each Answer with its ID, Markdown body, score, accepted flag, dates, author pseudonym and the Tags its author is a Subject matter expert for at export time. |
| comments | array | Each Comment on the Question or an Answer, with its score and date, as its latest text. |
| revisions | array | Each edit of a post, where the export route carries them: Revision number, editor pseudonym, edit comment and which parts changed. |
| collections | array | Names of the Collections that include this Question. |
| code_blocks | array | Code blocks pulled from every post in the thread, with language hint and secret-scan result; built in preparation. |
Field names from the table above; values are masked placeholders.
Example record
{
"question_id": 2841,
"title": "Why does ledger-sync deadlock when recon-export overlaps it?",
"body_markdown": "`ledger-sync` dies weekly:\n\n```\nERROR: deadlock detected\n at LedgerWriter.flush(LedgerWriter.java:212)\n```\n\nShould the retry wrapper cover this?",
"tags": [
"ledger-sync",
"batch-jobs"
],
"score": 7,
"dates": {
"created": "2023-03-10T15:02:41Z",
"last_activity": "2024-01-22T09:14:30Z"
},
"accepted_answer_id": 2843,
"asker": {
"user_ref": "user_5c1e",
"reputation_band": "100-499"
},
"answers": [
{
"answer_id": 2843,
"is_accepted": true,
"score": 4,
"author_ref": "user_a07d",
"author_sme_for_tags": [
"ledger-sync"
],
"created": "2023-03-10T16:31:12Z",
"last_edit": "2024-01-22T09:14:30Z",
"body_markdown": "The wrapper only retries connection errors. Lock rows in one order:\n\n```java\nwriter.setFlushOrder(FlushOrder.BY_ACCOUNT_ID);\n```\n\nEdit: now set in `batch-config/ledger.yaml`."
},
{
"answer_id": 2846,
"is_accepted": false,
"score": 9,
"author_ref": "user_33b9",
"author_sme_for_tags": [],
"created": "2023-03-13T08:47:55Z",
"body_markdown": "Point `recon-export` at the read replica:\n\n```yaml\nrecon-export:\n datasource: ledger-replica\n```"
}
],
"comments": [
{
"post_id": 2843,
"score": 3,
"author_ref": "user_33b9",
"created": "2023-11-02T11:05:19Z",
"text": "setFlushOrder is gone in the new scheduler, see the other answer."
}
],
"revisions": [
{
"post_id": 2843,
"revision_number": 2,
"editor_ref": "user_a07d",
"created": "2024-01-22T09:14:30Z",
"edit_summary": "updated for scheduler migration",
"changed": [
"body"
]
}
],
"collections": [
"Batch platform on-call"
],
"code_blocks": [
{
"post_id": 2846,
"language": "yaml",
"secret_scan": "clean"
}
]
}Synthetic record for illustration. Field names, structure and format are agreed per order.
What AI teams use it for
Train answer ranking on peer votes
Several answers per question, each scored and one accepted, give ranked candidates, including the plausible answer colleagues voted below another.
Build retrieval sets over private engineering knowledge
Questions as engineers really phrase them, paired with the resolving answer, make query and passage pairs.
Evaluate coding assistants on company-specific questions
Accepted answers that include code give held-out tasks about systems no public model has seen.
Teach answer maintenance
Revision histories show how a correct answer was rewritten after a migration, with the edit summary saying why.
Detect stale knowledge
Comments reporting that an answer no longer works, set against its score and last edit date, label decay that votes alone hide.
Use-case guides: Coding agents, Document AI, enterprise search and RAG, Enterprise and computer-use agents, Private evaluation sets
What makes this data valuable
Markdown source delivered
Bodies arrive as the author's Markdown, so code fences and language hints survive.
Score and acceptance both present
Each answer carries its own score and accepted flag.
Revisions where the route allows
Edited posts come with their earlier text and edit comments.
Multi-answer threads
Many questions have more than one answer, which is where ranking signal comes from.
Tags used with discipline
Tags name real systems and teams, not one catch-all tag.
Private provenance shown
The owner can show the content is from its private site, with pasted public posts flagged.
System export
Stack Overflow for Teams
Votes rank the answers, and the asker accepts one
A Stack Overflow for Teams site stores a question and each of its answers as separate posts. Members vote a post up or down, and the score is the net. Separately, the asker can mark one answer accepted and can move or remove the mark later, and an admin can accept for an asker whose account was deactivated. So each answer carries two labels from different people: what colleagues thought, and what solved the asker's problem. The rows worth most are those where the two disagree, such as an accepted answer outscored by a later one, which often means the fix changed.
Both labels are weaker than they look. Acceptance is optional, so a question with no accepted answer is often a solved one whose asker never came back. Votes attach to the post, not to a revision of it, so an answer rewritten after it earned its score shows the old score against new text. The API reports the score as a number. The admin data download lists votes among its files, so ask what each vote row carries before assuming a past score can be rebuilt.
Corrections tend to arrive as comments. A comment can be upvoted but not downvoted, does not move the question's last activity date, and can be edited by its author only briefly after posting. An upvoted comment saying an answer stopped working after a migration, under a high score, is the clearest stale-answer signal in the data. On the Business and Enterprise tiers a user can be a subject matter expert for a tag, named by an admin or assigned automatically from reputation in that tag, and the status can lapse with inactivity. It describes the author at export time, not on the day the answer was written.
What each export route returns, and what sits in the code blocks
Posts are written in Markdown, and the site keeps that source beside a rendered HTML body. API v3 returns the body as HTML, and its detail models can also expose a bodyMarkdown field. Ask for the Markdown, which keeps code as typed with any language hint, while an HTML-to-text pass over the rendered body loses angle brackets and indentation. Every edit stays on the post's timeline with its date, its editor and a comment describing the change. The vendor's guide to moving from API v2 to v3 lists revision history among the gaps in v3, and v2 has an announced end of life, so many exports hold current text only.
An API token reads what the user who created it can read, so on an Enterprise site with private teams, ask whose account that was. The Free tier has no API access, and daily call limits vary by contract. A site admin can download the team's data as a ZIP of JSON files covering posts, comments, tags, users, votes, badges and images. An Enterprise customer that leaves the service is given its content database as a BACPAC file with uploaded images as separate files. A deleted post is hidden, not erased: its owner, moderators and admins can still see and undelete it, so ask whether deleted posts are in or out.
Engineers paste the real thing into code blocks: a stack trace with internal hostnames, a configuration file with a connection string, a command with a bearer token. That is internal source and configuration that exists nowhere else in clean form. A credential edited out of the current body is still in the revision before it, so scanning has to cover every revision and comment. Answers pasted from public Stack Overflow carry that site's license and are not the company's to license. To test a sample, confirm ten edited answers have their earlier text, find a question whose accepted answer is not the top-scored one, and run a secret scanner over all code.
What to check before licensing
- Have the data owner and your counsel check Stack Overflow's terms for the Teams or Stack Internal subscription on exported data and API use.
- Confirm the content comes from the company's private site, and ask how passages pasted from public Stack Overflow posts, which carry their own license, were found and handled.
- Ask which route produced the export (API v3, the older v2 API, the admin data download or a database backup), and confirm each post has its Markdown source and any revisions you need.
- Check that code blocks, comments and every revision were scanned for credentials and hostnames, since an edit removes a secret only from the latest text.
- Ask whose account ran an API export and whether private teams, deleted posts, articles and collections are in scope or missing.
- Verify that user names, emails and mentions inside comments are replaced with stable pseudonyms that still link one person's posts.
- Ask the owner what share of questions have an accepted answer and more than one answer, and set your own minimums in the spec.
Delivery No files move before a signed license. A listing or a request grants no files by itself.
How licensing works through SourceX
- 1
Define
Send the domain, modality, volume, format, timeline and permitted use you need.
- 2
Source
SourceX identifies businesses that hold matching data and are open to licensing it.
- 3
Qualify
Fit, rights and quality are checked, and you review samples before committing.
- 4
License
Scope, permitted use, exclusivity, price and obligations are agreed in writing.
- 5
Deliver
Approved data is prepared, de-identified where required and transferred securely.
Questions Acquisition Partners ask
Is this the same as public Stack Overflow data?
No. A Stack Overflow for Teams site is a private instance that only people the company admits can read and post to, and its questions never appeared on the public site. Check for contamination the other way: engineers sometimes paste public answers into private ones, and public posts carry their own license terms.
Is the accepted answer always the correct one?
No, it is the answer the asker chose at the time, or one an admin accepted for an asker who had left. A later answer may outscore the accepted one because the fix changed. Treat the accepted flag and the score as two labels, and use revision dates and comments to judge whether either still holds.
Can the dataset include individual votes?
Possibly, depending on the export route. The API reports each post's score, not who voted or when. The admin data download lists votes among its JSON files, so ask the owner what each vote record carries and have voter identities removed or pseudonymized. Without dated votes, the score on an earlier date cannot be rebuilt.
Are Articles and Collections part of the data?
They can be, where the owner's tier has them. Articles, on the Business and Enterprise tiers, come in four types: knowledge article, how-to guide, policy and announcement. Readers can upvote and comment on them but not downvote, and there are no competing answers. Collections are curated, ordered groups of questions and articles. Ask for both as separate files.
How are code blocks and secrets handled?
Code blocks are kept, because they are the most valuable part, and scanned, because they are the riskiest. Internal Q&A quotes real configuration, stack traces and commands, sometimes with tokens or connection strings in them. Scanning has to cover every revision and comment, not only current bodies. Run your own detector over the sample.
Is SourceX affiliated with Stack Overflow?
Stack Overflow for Teams is named to identify the system the records come from. That does not imply a partnership with or endorsement by Stack Overflow or Stack Exchange, Inc. The records belong to the business that runs Stack Overflow for Teams, which licenses them under a signed agreement, and a request does not guarantee a matching dataset. Buyers should still confirm with counsel that the vendor's terms allow the intended use of exported data.
Related datasets
- Internal Q&A forums with accepted answers
Private Q&A threads with every answer, vote scores, the accepted answer, edits and tags
- Technical forum and Q&A archives
A forum operator's database export: threads, answers, comments, revisions, votes, accepted marks, duplicate links and moderation
- SOPs, playbooks and internal knowledge bases
Written procedures with page history, ownership and links to execution records
- GitHub repositories and pull request histories
Private repositories with commit history, issues, pull requests, reviews, review comments, timeline events and discussions
- Jira issue histories
Issues from a Jira site with their changelog, comments, links and sprints, plus the site's field and workflow definitions
Evaluating this data for procurement?
Diligence packets are prepared per dataset. Rights, privacy processing and quality differ between datasets.
Request dataset diligenceTell us what your models need
Send your spec — domain, volume, format, timeline and permitted use — and SourceX will match it against partner data and come back with what can be licensed.
Updated 26 November 2026.