"output": "json" to get just that data, or add a prompt or schema to shape it your own way (how results come back). Each link costs 1 credit, and a link that can’t be read costs nothing.
This works on every Stack Exchange site, not just Stack Overflow: Super User, Server Fault, Ask Ubuntu, MathOverflow, the Stack Overflow sites in other languages (such as ru.stackoverflow.com and pt.stackoverflow.com), every name.stackexchange.com site, each site’s meta, and old addresses that still redirect, such as programmers.stackexchange.com.
Example
result, shortened to one answer:
Links that work
Options
Add these to a link:count: lists read 100 rows by default. Ask for up to 2,500, orcount=all. Newest-first lists can go to 10,000. The first 100 rows cost the link’s 1 credit, and every further 100 is 1 more. A list that runs out sooner costs less.body=true: on question lists, search and a user’s answers or questions, each row’s text in Markdown.answer=accepted: on question lists and search, each question’s accepted answer in Markdown, with its score and author.html=true: on a question, each post’s HTML next to its Markdown.linked=true,related=true: on a question, the questions that link to it, or that the site relates to it.fromdate,todate: on question lists and search, only questions asked in that window (2025-01-01).type=answers: on search, answers instead of questions.
Licence and attribution
Posts on Stack Exchange are shared under Creative Commons BY-SA. Every question, answer and comment comes with itslicense (CC BY-SA 2.5, 3.0 or 4.0), a licenseUrl and an attribution line naming the site, the author with a link to their profile, and the post’s link. If you publish the text, show that attribution.
Fields
Question:id, title, url, shortUrl, tags, score, upVotes, downVotes, views, favorites, answersCount, commentsCount, isAnswered, acceptedAnswerId, author, lastEditor, createdAt, lastEditedAt, lastActivityAt, isClosed, closedAt, closedReason, closedDescription, closedBy, duplicateOf, closeVotes, reopenVotes, deleteVotes, lockedAt, protectedAt, communityWikiAt, notice, bounty, migratedFrom, migratedTo, collectives, markdown, comments, answers, license, licenseUrl and attribution.
Answer: id, questionId, position, isAccepted, score, upVotes, downVotes, author, lastEditor, createdAt, lastEditedAt, lastActivityAt, bountyAwarded, recommendedBy, markdown, commentsCount, comments, url and the licence fields.
Comment: id, postId, postType, score, author, replyTo, markdown, edited, createdAt, url and the licence fields.
Author: id, accountId, name, url, reputation, userType, acceptRate, badges (gold, silver, bronze) and imageUrl. A deleted account keeps its name, with userType: "does_not_exist".
Question in a list: the question’s counts, author, dates, close and bounty fields, licence and link, plus rank, and markdown or acceptedAnswer when you ask for them.
User: id, accountId, name, url, reputation, reputationChange (day, week, month, quarter, year), badges, answersCount, questionsCount, upVotesCast, downVotesCast, profileViews, location, websiteUrl, about, emails and aboutLinks (written in the about text), createdAt, lastAccessAt, collectives, topTags, networkAccounts, peopleReached, rank, socialLinks, lastSeen and memberFor.
Tag: name, questionsCount, synonyms, wiki (excerpt, markdown), relatedTags, frequentQuestions, topAnswerersAllTime, topAnswerersMonth, and on /topusers topAskersAllTime and topAskersMonth, each with rank, user, score and postsCount.
Limits
Only what visitors who aren’t signed in can see is available. Pages for signed-in users, such as asking a question or the review queues, fail straight away and cost nothing. So do deleted posts, unknown users and tags, and searches with no results. Who voted on a post, deleted posts and chat transcripts aren’t available. One list goes up to 2,500 rows (newest-first lists up to 10,000); for more, split it by date withfromdate and todate.
Templates
Ready-made templates for Stack Overflow and every Stack Exchange site: questions by tag, search, top experts in a tag, everything a user posted, and finding users by name.Check Stack Exchange’s terms before you collect data from it. Posts belong to their authors and are shared under CC BY-SA, which asks you to credit them. You’re responsible for how you use what you collect.

