Stack Exchange
Stack Exchange is a network of question-and-answer websites on topics in diverse fields, each site covering a specific topic, where questions, answers, and users are subject to a reputation award process. The network includes over 170 communities including Stack Overflow (programming), Server Fault (system administration), Super User (computing), and many others. The Stack Exchange API v2.3 provides programmatic access to questions, answers, comments, users, tags, badges, and search across all sites in the network.
1 APIs
0 Features
AnswersCodeCommunityDeveloper ToolsKnowledge BaseQ&AQuestionsStack Exchange
APIs
Stack Exchange API
The Stack Exchange API v2.3 provides programmatic access to the Stack Exchange network of Q&A sites. It supports reading and writing questions, answers, comments, tags, users, a...
Collections
Stack Exchange API
OPENPricing Plans
Rate Limits
FinOps
Stack Exchange Finops
FINOPSSemantic Vocabularies
API Governance Rules
JSON Structure
Example Payloads
Resources
🔗
LinkedIn
LinkedIn
🔑
Authentication
Authentication
📰
Blog
Blog
📜
TermsOfService
TermsOfService
🔗
RateLimits
RateLimits
📝
Signup
Signup
🔗
Applications
Applications
👥
GitHub Topics
GitHub Topics
🔗
JSONLD
JSONLD
🔗
JSONSchema
JSONSchema
🔗
Vocabulary
Vocabulary
🔗
SpectralRules
SpectralRules
Sources
opencollection: 1.0.0
info:
name: Stack Exchange API
version: '2.3'
request:
auth:
type: oauth2
flow: authorization_code
authorizationUrl: https://stackoverflow.com/oauth
accessTokenUrl: https://stackoverflow.com/oauth/access_token/json
credentials:
clientId: '{{clientId}}'
clientSecret: '{{clientSecret}}'
items:
- info:
name: Questions
type: folder
items:
- info:
name: Get All Questions
type: http
http:
method: GET
url: https://api.stackexchange.com/2.3/questions
params:
- name: site
value: stackoverflow
type: query
description: The Stack Exchange site to query. Use the API name of the site, e.g., stackoverflow, serverfault, superuser.
- name: page
value: ''
type: query
description: The page number to return (1-indexed)
- name: pagesize
value: ''
type: query
description: Number of results to return per page (max 100)
- name: fromdate
value: ''
type: query
description: Unix timestamp for the minimum creation date
- name: todate
value: ''
type: query
description: Unix timestamp for the maximum creation date
- name: order
value: ''
type: query
description: Sort order for results
- name: sort
value: ''
type: query
description: The field to sort results by (varies by endpoint)
- name: filter
value: ''
type: query
description: A filter to control which fields are returned in the response. Use the /filter endpoint to create custom
filters.
docs: Returns the questions on a Stack Exchange site. Results are sorted by activity by default. Requires the site parameter
to specify which Stack Exchange site to query.
- info:
name: Get Questions by IDs
type: http
http:
method: GET
url: https://api.stackexchange.com/2.3/questions/:ids
params:
- name: ids
value: 1;2;3
type: path
description: Semicolon-delimited list of question IDs (max 100)
- name: site
value: stackoverflow
type: query
description: The Stack Exchange site to query. Use the API name of the site, e.g., stackoverflow, serverfault, superuser.
- name: filter
value: ''
type: query
description: A filter to control which fields are returned in the response. Use the /filter endpoint to create custom
filters.
docs: Returns the questions identified by a semicolon-delimited list of IDs. Maximum 100 IDs per request.
- info:
name: Get Answers for Questions
type: http
http:
method: GET
url: https://api.stackexchange.com/2.3/questions/:ids/answers
params:
- name: ids
value: '12345'
type: path
description: Semicolon-delimited list of question IDs
- name: site
value: stackoverflow
type: query
description: The Stack Exchange site to query. Use the API name of the site, e.g., stackoverflow, serverfault, superuser.
- name: page
value: ''
type: query
description: The page number to return (1-indexed)
- name: pagesize
value: ''
type: query
description: Number of results to return per page (max 100)
- name: order
value: ''
type: query
description: Sort order for results
- name: sort
value: ''
type: query
description: The field to sort results by (varies by endpoint)
- name: filter
value: ''
type: query
description: A filter to control which fields are returned in the response. Use the /filter endpoint to create custom
filters.
docs: Returns the answers for a set of questions identified by a semicolon-delimited list of IDs.
- info:
name: Get Comments on Questions
type: http
http:
method: GET
url: https://api.stackexchange.com/2.3/questions/:ids/comments
params:
- name: ids
value: ''
type: path
description: Semicolon-delimited list of question IDs
- name: site
value: stackoverflow
type: query
description: The Stack Exchange site to query. Use the API name of the site, e.g., stackoverflow, serverfault, superuser.
- name: page
value: ''
type: query
description: The page number to return (1-indexed)
- name: pagesize
value: ''
type: query
description: Number of results to return per page (max 100)
- name: order
value: ''
type: query
description: Sort order for results
- name: filter
value: ''
type: query
description: A filter to control which fields are returned in the response. Use the /filter endpoint to create custom
filters.
docs: Returns the comments on a set of questions identified by a semicolon-delimited list of IDs.
- info:
name: Get Unanswered Questions
type: http
http:
method: GET
url: https://api.stackexchange.com/2.3/questions/unanswered
params:
- name: site
value: stackoverflow
type: query
description: The Stack Exchange site to query. Use the API name of the site, e.g., stackoverflow, serverfault, superuser.
- name: page
value: ''
type: query
description: The page number to return (1-indexed)
- name: pagesize
value: ''
type: query
description: Number of results to return per page (max 100)
- name: order
value: ''
type: query
description: Sort order for results
- name: sort
value: ''
type: query
description: The field to sort results by (varies by endpoint)
- name: tagged
value: ''
type: query
description: Semicolon-delimited list of tags to filter by
- name: filter
value: ''
type: query
description: A filter to control which fields are returned in the response. Use the /filter endpoint to create custom
filters.
docs: Returns questions that have no answers. Questions returned by this method technically have at least one answer but
none of those answers have been accepted.
- info:
name: Get Featured Questions
type: http
http:
method: GET
url: https://api.stackexchange.com/2.3/questions/featured
params:
- name: site
value: stackoverflow
type: query
description: The Stack Exchange site to query. Use the API name of the site, e.g., stackoverflow, serverfault, superuser.
- name: page
value: ''
type: query
description: The page number to return (1-indexed)
- name: pagesize
value: ''
type: query
description: Number of results to return per page (max 100)
- name: order
value: ''
type: query
description: Sort order for results
- name: sort
value: ''
type: query
description: The field to sort results by (varies by endpoint)
- name: tagged
value: ''
type: query
description: Semicolon-delimited list of tags to filter by
- name: filter
value: ''
type: query
description: A filter to control which fields are returned in the response. Use the /filter endpoint to create custom
filters.
docs: Returns questions that have active bounties. Questions with bounties are featured to attract attention and answers.
- info:
name: Answers
type: folder
items:
- info:
name: Get All Answers
type: http
http:
method: GET
url: https://api.stackexchange.com/2.3/answers
params:
- name: site
value: stackoverflow
type: query
description: The Stack Exchange site to query. Use the API name of the site, e.g., stackoverflow, serverfault, superuser.
- name: page
value: ''
type: query
description: The page number to return (1-indexed)
- name: pagesize
value: ''
type: query
description: Number of results to return per page (max 100)
- name: fromdate
value: ''
type: query
description: Unix timestamp for the minimum creation date
- name: todate
value: ''
type: query
description: Unix timestamp for the maximum creation date
- name: order
value: ''
type: query
description: Sort order for results
- name: sort
value: ''
type: query
description: The field to sort results by (varies by endpoint)
- name: filter
value: ''
type: query
description: A filter to control which fields are returned in the response. Use the /filter endpoint to create custom
filters.
docs: Returns all answers on a Stack Exchange site. Results can be filtered and sorted by creation date, activity, and
vote score.
- info:
name: Get Answers by IDs
type: http
http:
method: GET
url: https://api.stackexchange.com/2.3/answers/:ids
params:
- name: ids
value: ''
type: path
description: Semicolon-delimited list of answer IDs
- name: site
value: stackoverflow
type: query
description: The Stack Exchange site to query. Use the API name of the site, e.g., stackoverflow, serverfault, superuser.
- name: filter
value: ''
type: query
description: A filter to control which fields are returned in the response. Use the /filter endpoint to create custom
filters.
docs: Returns the answers identified by a semicolon-delimited list of IDs.
- info:
name: Comments
type: folder
items:
- info:
name: Get All Comments
type: http
http:
method: GET
url: https://api.stackexchange.com/2.3/comments
params:
- name: site
value: stackoverflow
type: query
description: The Stack Exchange site to query. Use the API name of the site, e.g., stackoverflow, serverfault, superuser.
- name: page
value: ''
type: query
description: The page number to return (1-indexed)
- name: pagesize
value: ''
type: query
description: Number of results to return per page (max 100)
- name: fromdate
value: ''
type: query
description: Unix timestamp for the minimum creation date
- name: todate
value: ''
type: query
description: Unix timestamp for the maximum creation date
- name: order
value: ''
type: query
description: Sort order for results
- name: sort
value: ''
type: query
description: The field to sort results by (varies by endpoint)
- name: filter
value: ''
type: query
description: A filter to control which fields are returned in the response. Use the /filter endpoint to create custom
filters.
docs: Returns all comments on a Stack Exchange site.
- info:
name: Get Comments by IDs
type: http
http:
method: GET
url: https://api.stackexchange.com/2.3/comments/:ids
params:
- name: ids
value: ''
type: path
description: Semicolon-delimited list of comment IDs
- name: site
value: stackoverflow
type: query
description: The Stack Exchange site to query. Use the API name of the site, e.g., stackoverflow, serverfault, superuser.
- name: filter
value: ''
type: query
description: A filter to control which fields are returned in the response. Use the /filter endpoint to create custom
filters.
docs: Returns the comments identified by a semicolon-delimited list of IDs.
- info:
name: Users
type: folder
items:
- info:
name: Get All Users
type: http
http:
method: GET
url: https://api.stackexchange.com/2.3/users
params:
- name: site
value: stackoverflow
type: query
description: The Stack Exchange site to query. Use the API name of the site, e.g., stackoverflow, serverfault, superuser.
- name: page
value: ''
type: query
description: The page number to return (1-indexed)
- name: pagesize
value: ''
type: query
description: Number of results to return per page (max 100)
- name: fromdate
value: ''
type: query
description: Unix timestamp for the minimum creation date
- name: todate
value: ''
type: query
description: Unix timestamp for the maximum creation date
- name: order
value: ''
type: query
description: Sort order for results
- name: sort
value: ''
type: query
description: The field to sort results by (varies by endpoint)
- name: inname
value: ''
type: query
description: Filter users whose display name contains this string
- name: filter
value: ''
type: query
description: A filter to control which fields are returned in the response. Use the /filter endpoint to create custom
filters.
docs: Returns all users on a Stack Exchange site. Results can be filtered by inname to match users whose display name
contains the given string.
- info:
name: Get Users by IDs
type: http
http:
method: GET
url: https://api.stackexchange.com/2.3/users/:ids
params:
- name: ids
value: ''
type: path
description: Semicolon-delimited list of user IDs
- name: site
value: stackoverflow
type: query
description: The Stack Exchange site to query. Use the API name of the site, e.g., stackoverflow, serverfault, superuser.
- name: filter
value: ''
type: query
description: A filter to control which fields are returned in the response. Use the /filter endpoint to create custom
filters.
docs: Returns the users identified by a semicolon-delimited list of user IDs.
- info:
name: Get Questions by User
type: http
http:
method: GET
url: https://api.stackexchange.com/2.3/users/:ids/questions
params:
- name: ids
value: ''
type: path
description: Semicolon-delimited list of user IDs
- name: site
value: stackoverflow
type: query
description: The Stack Exchange site to query. Use the API name of the site, e.g., stackoverflow, serverfault, superuser.
- name: page
value: ''
type: query
description: The page number to return (1-indexed)
- name: pagesize
value: ''
type: query
description: Number of results to return per page (max 100)
- name: order
value: ''
type: query
description: Sort order for results
- name: sort
value: ''
type: query
description: The field to sort results by (varies by endpoint)
- name: filter
value: ''
type: query
description: A filter to control which fields are returned in the response. Use the /filter endpoint to create custom
filters.
docs: Returns the questions asked by the users identified in the IDs parameter.
- info:
name: Get Answers by User
type: http
http:
method: GET
url: https://api.stackexchange.com/2.3/users/:ids/answers
params:
- name: ids
value: ''
type: path
description: Semicolon-delimited list of user IDs
- name: site
value: stackoverflow
type: query
description: The Stack Exchange site to query. Use the API name of the site, e.g., stackoverflow, serverfault, superuser.
- name: page
value: ''
type: query
description: The page number to return (1-indexed)
- name: pagesize
value: ''
type: query
description: Number of results to return per page (max 100)
- name: order
value: ''
type: query
description: Sort order for results
- name: sort
value: ''
type: query
description: The field to sort results by (varies by endpoint)
- name: filter
value: ''
type: query
description: A filter to control which fields are returned in the response. Use the /filter endpoint to create custom
filters.
docs: Returns the answers posted by the users identified in the IDs parameter.
- info:
name: Get Authenticated User
type: http
http:
method: GET
url: https://api.stackexchange.com/2.3/users/me
params:
- name: site
value: stackoverflow
type: query
description: The Stack Exchange site to query. Use the API name of the site, e.g., stackoverflow, serverfault, superuser.
- name: filter
value: ''
type: query
description: A filter to control which fields are returned in the response. Use the /filter endpoint to create custom
filters.
auth:
type: oauth2
flow: authorization_code
authorizationUrl: https://stackoverflow.com/oauth
accessTokenUrl: https://stackoverflow.com/oauth/access_token/json
credentials:
clientId: '{{clientId}}'
clientSecret: '{{clientSecret}}'
docs: Returns the authenticated user associated with the provided access token. Requires authentication.
- info:
name: Tags
type: folder
items:
- info:
name: Get All Tags
type: http
http:
method: GET
url: https://api.stackexchange.com/2.3/tags
params:
- name: site
value: stackoverflow
type: query
description: The Stack Exchange site to query. Use the API name of the site, e.g., stackoverflow, serverfault, superuser.
- name: page
value: ''
type: query
description: The page number to return (1-indexed)
- name: pagesize
value: ''
type: query
description: Number of results to return per page (max 100)
- name: fromdate
value: ''
type: query
description: Unix timestamp for the minimum creation date
- name: todate
value: ''
type: query
description: Unix timestamp for the maximum creation date
- name: order
value: ''
type: query
description: Sort order for results
- name: sort
value: ''
type: query
description: The field to sort results by (varies by endpoint)
- name: inname
value: ''
type: query
description: Filter tags whose name contains this string
- name: filter
value: ''
type: query
description: A filter to control which fields are returned in the response. Use the /filter endpoint to create custom
filters.
docs: Returns the tags on a Stack Exchange site. Tags are used to categorize questions and help users find relevant content.
- info:
name: Get Tag Info
type: http
http:
method: GET
url: https://api.stackexchange.com/2.3/tags/:tags/info
params:
- name: tags
value: javascript;python
type: path
description: Semicolon-delimited list of tag names
- name: site
value: stackoverflow
type: query
description: The Stack Exchange site to query. Use the API name of the site, e.g., stackoverflow, serverfault, superuser.
- name: filter
value: ''
type: query
description: A filter to control which fields are returned in the response. Use the /filter endpoint to create custom
filters.
docs: Returns detailed information about the tags specified in the tags parameter. Tags are semicolon-delimited.
- info:
name: Get Related Tags
type: http
http:
method: GET
url: https://api.stackexchange.com/2.3/tags/:tags/related
params:
- name: tags
value: ''
type: path
description: Semicolon-delimited list of tag names
- name: site
value: stackoverflow
type: query
description: The Stack Exchange site to query. Use the API name of the site, e.g., stackoverflow, serverfault, superuser.
- name: filter
value: ''
type: query
description: A filter to control which fields are returned in the response. Use the /filter endpoint to create custom
filters.
docs: Returns the tags that are most related to the provided semicolon- delimited list of tags.
- info:
name: Badges
type: folder
items:
- info:
name: Get All Badges
type: http
http:
method: GET
url: https://api.stackexchange.com/2.3/badges
params:
- name: site
value: stackoverflow
type: query
description: The Stack Exchange site to query. Use the API name of the site, e.g., stackoverflow, serverfault, superuser.
- name: page
value: ''
type: query
description: The page number to return (1-indexed)
- name: pagesize
value: ''
type: query
description: Number of results to return per page (max 100)
- name: order
value: ''
type: query
description: Sort order for results
- name: sort
value: ''
type: query
description: The field to sort results by (varies by endpoint)
- name: inname
value: ''
type: query
description: Filter badges whose name contains this string
- name: filter
value: ''
type: query
description: A filter to control which fields are returned in the response. Use the /filter endpoint to create custom
filters.
docs: Returns all badges in the system. Badges are awarded to users for performing actions or achieving goals on a Stack
Exchange site.
- info:
name: Get Badges by IDs
type: http
http:
method: GET
url: https://api.stackexchange.com/2.3/badges/:ids
params:
- name: ids
value: ''
type: path
description: Semicolon-delimited list of badge IDs
- name: site
value: stackoverflow
type: query
description: The Stack Exchange site to query. Use the API name of the site, e.g., stackoverflow, serverfault, superuser.
- name: filter
value: ''
type: query
description: A filter to control which fields are returned in the response. Use the /filter endpoint to create custom
filters.
docs: Returns badges identified by the provided semicolon-delimited list of badge IDs.
- info:
name: Search
type: folder
items:
- info:
name: Search Questions
type: http
http:
method: GET
url: https://api.stackexchange.com/2.3/search
params:
- name: site
value: stackoverflow
type: query
description: The Stack Exchange site to query. Use the API name of the site, e.g., stackoverflow, serverfault, superuser.
- name: page
value: ''
type: query
description: The page number to return (1-indexed)
- name: pagesize
value: ''
type: query
description: Number of results to return per page (max 100)
- name: order
value: ''
type: query
description: Sort order for results
- name: sort
value: ''
type: query
description: The field to sort results by (varies by endpoint)
- name: intitle
value: ''
type: query
description: Search within question titles
- name: tagged
value: ''
type: query
description: Semicolon-delimited list of tags to filter by
- name: nottagged
value: ''
type: query
description: Exclude questions with these semicolon-delimited tags
- name: filter
value: ''
type: query
description: A filter to control which fields are returned in the response. Use the /filter endpoint to create custom
filters.
docs: Searches for questions based on a query string. Returns questions that match the search terms in the title, body,
or tags. At least one of tagged, nottagged, or intitle must be specified.
- info:
name: Advanced Question Search
type: http
http:
method: GET
url: https://api.stackexchange.com/2.3/search/advanced
params:
- name: site
value: stackoverflow
type: query
description: The Stack Exchange site to query. Use the API name of the site, e.g., stackoverflow, serverfault, superuser.
- name: page
value: ''
type: query
description: The page number to return (1-indexed)
- name: pagesize
value: ''
type: query
description: Number of results to return per page (max 100)
- name: order
value: ''
type: query
description: Sort order for results
- name: sort
value: ''
type: query
description: The field to sort results by (varies by endpoint)
- name: q
value: ''
type: query
description: Full-text search query
- name: accepted
value: ''
type: query
description: Filter for questions that have accepted answers
- name: answers
value: ''
type: query
description: Minimum number of answers
- name: body
value: ''
type: query
description: Text that must appear in the question body
- name: closed
value: ''
type: query
description: Filter for closed or open questions
- name: migrated
value: ''
type: query
description: Filter for migrated questions
- name: notice
value: ''
type: query
description: Filter for questions with a post notice
- name: nottagged
value: ''
type: query
description: Exclude questions with these tags (semicolon-delimited)
- name: tagged
value: ''
type: query
description: Semicolon-delimited list of tags to filter by
- name: title
value: ''
type: query
description: Text that must appear in the question title
- name: user
value: ''
type: query
description: Filter by user ID of the question owner
- name: views
value: ''
type: query
description: Minimum number of question views
- name: wiki
value: ''
type: query
description: Filter for community wiki questions
- name: filter
value: ''
type: query
description: A filter to control which fields are returned in the response. Use the /filter endpoint to create custom
filters.
docs: Searches for questions using advanced filtering options including accepted answers, minimum score, body text, and
view count filters.
- info:
name: Find Similar Questions
type: http
http:
method: GET
url: https://api.stackexchange.com/2.3/similar
params:
- name: site
value: stackoverflow
type: query
description: The Stack Exchange site to query. Use the API name of the site, e.g., stackoverflow, serverfault, superuser.
- name: title
value: ''
type: query
description: The title of the question to find similar questions for
- name: page
value: ''
type: query
description: The page number to return (1-indexed)
- name: pagesize
value: ''
type: query
description: Number of results to return per page (max 100)
- name: order
value: ''
type: query
description: Sort order for results
- name: sort
value: ''
type: query
description: The field to sort results by (varies by endpoint)
- name: tagged
value: ''
type: query
description: Semicolon-delimited list of tags to filter by
- name: filter
value: ''
type: query
description: A filter to control which fields are returned in the response. Use the /filter endpoint to create custom
filters.
docs: Returns questions that are similar to the question with the given title. Useful for finding existing related questions
before asking a new one.
- info:
name: Sites
type: folder
items:
- info:
name: Get All Sites
type: http
http:
method: GET
url: https://api.stackexchange.com/2.3/sites
params:
- name: page
value: ''
type: query
description: The page number to return (1-indexed)
- name: pagesize
value: ''
type: query
description: Number of results to return per page (max 100)
- name: filter
value: ''
type: query
description: A filter to control which fields are returned in the response. Use the /filter endpoint to create custom
filters.
docs: Returns all Stack Exchange network sites. This includes main sites, meta sites, and sites in various stages of development.
bundled: true