The Stack Exchange connector lets your AI agent act in each user's Stack Exchange account. Each user signs in to Stack Exchange once, and Scalekit stores and refreshes their tokens, so your agent never handles credentials. It comes with 113 tools.
- Tools
- 113
- What they doRead · write · destructive
- 90 · 20 · 390 read20 write3 destructive
- Users sign in with
- OAuth
- OAuth app
- Your own Stack Exchange app
Setup
Install the SDK
Terminal window npm install @scalekit-sdk/node dotenvTerminal window pip install scalekit-sdk-python python-dotenvSet your credentials
Add your Scalekit credentials to your
.envfile. Find values in app.scalekit.com > Developers > API Credentials..env SCALEKIT_ENVIRONMENT_URL=<your-environment-url>SCALEKIT_CLIENT_ID=<your-client-id>SCALEKIT_CLIENT_SECRET=<your-client-secret>Create the Stack Exchange connection
In AgentKit > Connections, create a Stack Exchange connection and copy its redirect URI. The name you give it is the
connection_nameyour code passes. See Configure connections.Register an OAuth app
Stack Exchange connections use your own OAuth app. Register one with Stack Exchange and add the redirect URI you copied.
Then enter the app's Client ID and Client Secret on the Stack Exchange connection.
Authorize a user and make your first call
quickstart.mts import { ScalekitClient } from '@scalekit-sdk/node'import 'dotenv/config'import { createInterface } from 'node:readline/promises'const scalekit = new ScalekitClient(process.env.SCALEKIT_ENVIRONMENT_URL,process.env.SCALEKIT_CLIENT_ID,process.env.SCALEKIT_CLIENT_SECRET,)const actions = scalekit.actionsconst connector = 'stackexchange'const identifier = 'user_123'// Generate an authorization link for the userconst { link } = await actions.getAuthorizationLink({ connectionName: connector, identifier })console.log('Authorize Stack Exchange:', link)const rl = createInterface({ input: process.stdin, output: process.stdout })await rl.question('Press Enter after authorizing...')rl.close()// Make your first callconst result = await actions.executeTool({connector,identifier,toolName: 'stackexchange_filter_create',toolInput: {},})console.log(result)Terminal window npx tsx quickstart.mtsquickstart.py import osfrom scalekit import ScalekitClientfrom dotenv import load_dotenvload_dotenv()scalekit_client = ScalekitClient(env_url=os.getenv("SCALEKIT_ENVIRONMENT_URL"),client_id=os.getenv("SCALEKIT_CLIENT_ID"),client_secret=os.getenv("SCALEKIT_CLIENT_SECRET"),)actions = scalekit_client.actionsconnection_name = "stackexchange"identifier = "user_123"# Generate an authorization link for the userlink_response = actions.get_authorization_link(connection_name=connection_name,identifier=identifier,)print("Authorize Stack Exchange:", link_response.link)input("Press Enter after authorizing...")# Make your first callresult = actions.execute_tool(tool_input={},tool_name="stackexchange_filter_create",connection_name=connection_name,identifier=identifier,)print(result)Terminal window python quickstart.pyEach user signs in once. See Authorize a user for the full flow and statuses.
Tools
Pass the exact name toexecute_toolstackexchange_answer_comments_listList the comments posted on one or more answers.Read-onlyList Answer Comments
List the comments posted on one or more answers. Returns comment_id, post_id, score, owner and creation_date; pass filter=withbody to include the comment text. Use this for comments on answers. Use stackexchange_question_comments_list for comments on questions.
Inputs
answer_idsstringrequired- Semicolon-separated answer IDs, up to 100, e.g. 11227809;927358.
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
fromdateinteger- Only include items dated on or after this time, as Unix epoch seconds, e.g. 1704067200 for 2024-01-01.
maxstring- Upper bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
minstring- Lower bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
orderstring- Sort direction: desc (default) or asc.one of
descasc pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
sortstring- Field to sort by (default creation): creation (creation date; min/max are Unix epoch seconds), votes (score; min/max are a number).one of
creationvotes todateinteger- Only include items dated on or before this time, as Unix epoch seconds, e.g. 1735689599 for 2024-12-31.
stackexchange_answer_questions_listGet the questions that one or more answers belong to.Read-onlyList Questions For Answers
Get the questions that one or more answers belong to. Returns question_id, title, tags, score and link for each parent question. Use this to go from answer IDs to their questions.
Inputs
answer_idsstringrequired- Semicolon-separated answer IDs, up to 100, e.g. 11227809;927358.
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
fromdateinteger- Only include items dated on or after this time, as Unix epoch seconds, e.g. 1704067200 for 2024-01-01.
maxstring- Upper bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
minstring- Lower bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
orderstring- Sort direction: desc (default) or asc.one of
descasc pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
sortstring- Field to sort by (default activity): activity (last activity date; min/max are Unix epoch seconds), votes (score; min/max are a number), creation (creation date; min/max are Unix epoch seconds).one of
activityvotescreation todateinteger- Only include items dated on or before this time, as Unix epoch seconds, e.g. 1735689599 for 2024-12-31.
stackexchange_answers_getGet one or more answers by ID.Read-onlyGet Answers
Get one or more answers by ID. Returns answer_id, question_id, score, is_accepted and owner; pass filter=withbody to include the body. Use stackexchange_answers_get when you already have answer IDs. Use stackexchange_question_answers_list to read every answer on a question.
Inputs
answer_idsstringrequired- Semicolon-separated answer IDs, up to 100, e.g. 11227809;927358.
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
fromdateinteger- Only include items dated on or after this time, as Unix epoch seconds, e.g. 1704067200 for 2024-01-01.
maxstring- Upper bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
minstring- Lower bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
orderstring- Sort direction: desc (default) or asc.one of
descasc pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
sortstring- Field to sort by (default activity): activity (last activity date; min/max are Unix epoch seconds), creation (creation date; min/max are Unix epoch seconds), votes (score; min/max are a number).one of
activitycreationvotes todateinteger- Only include items dated on or before this time, as Unix epoch seconds, e.g. 1735689599 for 2024-12-31.
stackexchange_answers_listList answers posted on a site, newest activity first by default.Read-onlyList Answers
List answers posted on a site, newest activity first by default. Returns answer_id, question_id, score, is_accepted and owner. Use stackexchange_answers_list to browse recent or top answers across a site. Use stackexchange_question_answers_list for one question's answers.
Inputs
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
fromdateinteger- Only include items dated on or after this time, as Unix epoch seconds, e.g. 1704067200 for 2024-01-01.
maxstring- Upper bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
minstring- Lower bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
orderstring- Sort direction: desc (default) or asc.one of
descasc pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
sortstring- Field to sort by (default activity): activity (last activity date; min/max are Unix epoch seconds), creation (creation date; min/max are Unix epoch seconds), votes (score; min/max are a number).one of
activitycreationvotes todateinteger- Only include items dated on or before this time, as Unix epoch seconds, e.g. 1735689599 for 2024-12-31.
stackexchange_badge_recipients_listList recent recipients of one or more badges.Read-onlyList Badge Recipients
List recent recipients of one or more badges. Returns badge_id, name, rank and user for each award. Use this for specific badges. Use stackexchange_badges_recent_recipients_list for every recent award on a site.
Inputs
badge_idsstringrequired- Semicolon-separated badge IDs, up to 100, e.g. 11227809;927358.
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
fromdateinteger- Only include items dated on or after this time, as Unix epoch seconds, e.g. 1704067200 for 2024-01-01.
pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
todateinteger- Only include items dated on or before this time, as Unix epoch seconds, e.g. 1735689599 for 2024-12-31.
stackexchange_badges_getGet one or more badges by ID.Read-onlyGet Badges
Get one or more badges by ID. Returns badge_id, name, badge_type, rank and award_count; pass filter=withbody for descriptions. Use stackexchange_badges_get when you already have badge IDs.
Inputs
badge_idsstringrequired- Semicolon-separated badge IDs, up to 100, e.g. 11227809;927358.
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
fromdateinteger- Only include items dated on or after this time, as Unix epoch seconds, e.g. 1704067200 for 2024-01-01.
maxstring- Upper bound for the chosen sort field, inclusive. With sort=rank use gold, silver or bronze (e.g. max=gold for gold badges only); with sort=type use named or tag_based; with sort=name use text.
minstring- Lower bound for the chosen sort field, inclusive. With sort=rank use gold, silver or bronze (e.g. max=gold for gold badges only); with sort=type use named or tag_based; with sort=name use text.
orderstring- Sort direction: desc (default) or asc.one of
descasc pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
sortstring- Field to sort by (default rank): rank (badge rank; min/max are gold, silver or bronze (bronze sorts highest)), name (name; min/max are text), type (badge type; min/max are named or tag_based (tag_based sorts highest)).one of
ranknametype todateinteger- Only include items dated on or before this time, as Unix epoch seconds, e.g. 1735689599 for 2024-12-31.
stackexchange_badges_listList all badges on a site, optionally filtered to names containing a substring.Read-onlyList Badges
List all badges on a site, optionally filtered to names containing a substring. Returns badge_id, name, badge_type (named or tag_based), rank (gold, silver, bronze) and award_count. Use stackexchange_badges_list to browse or look up badges. Use stackexchange_badges_get when you have badge IDs.
Inputs
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
fromdateinteger- Only include items dated on or after this time, as Unix epoch seconds, e.g. 1704067200 for 2024-01-01.
innamestring- Only return items whose name contains this text.
maxstring- Upper bound for the chosen sort field, inclusive. With sort=rank use gold, silver or bronze (e.g. max=gold for gold badges only); with sort=type use named or tag_based; with sort=name use text.
minstring- Lower bound for the chosen sort field, inclusive. With sort=rank use gold, silver or bronze (e.g. max=gold for gold badges only); with sort=type use named or tag_based; with sort=name use text.
orderstring- Sort direction: desc (default) or asc.one of
descasc pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
sortstring- Field to sort by (default rank): rank (badge rank; min/max are gold, silver or bronze (bronze sorts highest)), name (name; min/max are text), type (badge type; min/max are named or tag_based (tag_based sorts highest)).one of
ranknametype todateinteger- Only include items dated on or before this time, as Unix epoch seconds, e.g. 1735689599 for 2024-12-31.
stackexchange_badges_recent_recipients_listList badges recently awarded on a site.Read-onlyList Recent Badge Awards
List badges recently awarded on a site. Returns badge_id, name, rank and the user who earned it. Use this for a site-wide award feed. Use stackexchange_badge_recipients_list for specific badges.
Inputs
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
fromdateinteger- Only include items dated on or after this time, as Unix epoch seconds, e.g. 1704067200 for 2024-01-01.
pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
todateinteger- Only include items dated on or before this time, as Unix epoch seconds, e.g. 1735689599 for 2024-12-31.
stackexchange_collective_questions_listList questions in one or more Collectives.Read-onlyList Collective Questions
List questions in one or more Collectives. Returns question_id, title, tags, score, answer_count and link. Use this to browse a Collective's questions.
Inputs
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
slugsstringrequired- Semicolon-separated Collective slugs, e.g. google-cloud;aws. Get them from stackexchange_collectives_list.
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
fromdateinteger- Only include items dated on or after this time, as Unix epoch seconds, e.g. 1704067200 for 2024-01-01.
maxstring- Upper bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
minstring- Lower bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
orderstring- Sort direction: desc (default) or asc.one of
descasc pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
sortstring- Field to sort by (default activity): activity (last activity date; min/max are Unix epoch seconds), votes (score; min/max are a number), creation (creation date; min/max are Unix epoch seconds).one of
activityvotescreation todateinteger- Only include items dated on or before this time, as Unix epoch seconds, e.g. 1735689599 for 2024-12-31.
stackexchange_collectives_getGet one or more Collectives by slug.Read-onlyGet Collectives
Get one or more Collectives by slug. Returns slug, name, description, tags and external_links. Use this when you already have Collective slugs.
Inputs
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
slugsstringrequired- Semicolon-separated Collective slugs, e.g. google-cloud;aws. Get them from stackexchange_collectives_list.
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
fromdateinteger- Only include items dated on or after this time, as Unix epoch seconds, e.g. 1704067200 for 2024-01-01.
maxstring- Upper bound for the chosen sort field, inclusive: text depending on the sort (see sort). Ignored by sorts without min/max.
minstring- Lower bound for the chosen sort field, inclusive: text depending on the sort (see sort). Ignored by sorts without min/max.
orderstring- Sort direction: desc (default) or asc.one of
descasc pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
sortstring- Field to sort by (default name): name (name; min/max are text).one of
name todateinteger- Only include items dated on or before this time, as Unix epoch seconds, e.g. 1735689599 for 2024-12-31.
stackexchange_collectives_listList the Collectives on a site, in alphabetical order.Read-onlyList Collectives
List the Collectives on a site, in alphabetical order. Returns slug, name, description, tags and external_links. Use stackexchange_collectives_list to discover Collectives. Use stackexchange_collectives_get when you have slugs.
Inputs
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
fromdateinteger- Only include items dated on or after this time, as Unix epoch seconds, e.g. 1704067200 for 2024-01-01.
maxstring- Upper bound for the chosen sort field, inclusive: text depending on the sort (see sort). Ignored by sorts without min/max.
minstring- Lower bound for the chosen sort field, inclusive: text depending on the sort (see sort). Ignored by sorts without min/max.
orderstring- Sort direction: desc (default) or asc.one of
descasc pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
sortstring- Field to sort by (default name): name (name; min/max are text).one of
name todateinteger- Only include items dated on or before this time, as Unix epoch seconds, e.g. 1735689599 for 2024-12-31.
stackexchange_comments_getGet one or more comments by ID.Read-onlyGet Comments
Get one or more comments by ID. Returns comment_id, post_id, score, owner and creation_date; pass filter=withbody to include the comment text. Use stackexchange_comments_get when you already have comment IDs. Use stackexchange_post_comments_list to read the comments on a post.
Inputs
comment_idsstringrequired- Semicolon-separated comment IDs, up to 100, e.g. 11227809;927358.
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
fromdateinteger- Only include items dated on or after this time, as Unix epoch seconds, e.g. 1704067200 for 2024-01-01.
maxstring- Upper bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
minstring- Lower bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
orderstring- Sort direction: desc (default) or asc.one of
descasc pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
sortstring- Field to sort by (default creation): creation (creation date; min/max are Unix epoch seconds), votes (score; min/max are a number).one of
creationvotes todateinteger- Only include items dated on or before this time, as Unix epoch seconds, e.g. 1735689599 for 2024-12-31.
stackexchange_comments_listList comments posted on a site.Read-onlyList Comments
List comments posted on a site. Returns comment_id, post_id, score, owner and creation_date; pass filter=withbody to include the comment text. Use stackexchange_comments_list to browse comments site-wide. Use stackexchange_post_comments_list for one post's comments.
Inputs
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
fromdateinteger- Only include items dated on or after this time, as Unix epoch seconds, e.g. 1704067200 for 2024-01-01.
maxstring- Upper bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
minstring- Lower bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
orderstring- Sort direction: desc (default) or asc.one of
descasc pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
sortstring- Field to sort by (default creation): creation (creation date; min/max are Unix epoch seconds), votes (score; min/max are a number).one of
creationvotes todateinteger- Only include items dated on or before this time, as Unix epoch seconds, e.g. 1735689599 for 2024-12-31.
stackexchange_events_listList events on a site from the last few minutes: new questions, answers, comments, edits and users.Read-onlyList Recent Events
List events on a site from the last few minutes: new questions, answers, comments, edits and users. Returns event_type, event_id, creation_date, link and excerpt. Use this to poll for new activity; events are kept for only 15 minutes and the default window is 5 minutes.
Inputs
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
sinceinteger- Only include items created at or after this time, as Unix epoch seconds, e.g. 1704067200.
stackexchange_filter_createCreate a reusable response filter that includes or excludes specific fields.Read-onlyCreate Filter
Create a reusable response filter that includes or excludes specific fields. Returns the filter id string to pass as `filter` on other tools, plus included_fields. Use this when the built-in filters (default, withbody, none, total) don't return the fields you need. Filters never expire, so create once and reuse.
Inputs
basestring- Built-in filter to start from: default, withbody, none or total (default: default).one of
defaultwithbodynonetotal excludestring- Semicolon-separated fields to remove from the base filter, as type.field, e.g. question.owner.
includestring- Semicolon-separated fields to add to the base filter, as type.field, e.g. question.body;answer.body;.total.
unsafestring- true to return unescaped strings (you then handle HTML sanitising yourself); false (default) for HTML-safe output.one of
falsetrue
stackexchange_filters_getDecode one or more filters to see which fields they include.Read-onlyGet Filters
Decode one or more filters to see which fields they include. Returns filter, filter_type and included_fields. Use this to check what a filter returns.
Inputs
filtersstringrequired- Semicolon-separated filter ids or built-in filter names, e.g. withbody;!9_bDDxJY5.
stackexchange_inbox_listList the signed-in user's inbox items across all Stack Exchange sites.Read-onlyList Inbox
List the signed-in user's inbox items across all Stack Exchange sites. Returns item_type, title, link, site, question_id/answer_id/comment_id, is_unread and creation_date. Use stackexchange_inbox_list for all items. Use stackexchange_inbox_unread_list for unread items only. Requires the read_inbox scope.
Inputs
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
stackexchange_inbox_unread_listList the signed-in user's unread inbox items across all Stack Exchange sites.Read-onlyList Unread Inbox
List the signed-in user's unread inbox items across all Stack Exchange sites. Returns item_type, title, link, site, is_unread and creation_date. Use stackexchange_inbox_unread_list for new items only. Use stackexchange_inbox_list for the full inbox. Requires the read_inbox scope.
Inputs
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
sinceinteger- Only include items created at or after this time, as Unix epoch seconds, e.g. 1704067200.
stackexchange_info_getGet statistics and metadata for a single site.Read-onlyGet Site Info
Get statistics and metadata for a single site. Returns total_questions, total_unanswered, total_answers, total_users, questions_per_minute, api_revision and more. Use this for site-level counts. Use stackexchange_sites_list to discover sites.
Inputs
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
stackexchange_me_answers_listList the answers the signed-in user has posted on a site.Read-onlyList My Answers
List the answers the signed-in user has posted on a site. Returns answer_id, question_id, score, is_accepted and creation_date. Use this for the signed-in user. Use stackexchange_user_answers_list for other users.
Inputs
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
fromdateinteger- Only include items dated on or after this time, as Unix epoch seconds, e.g. 1704067200 for 2024-01-01.
maxstring- Upper bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
minstring- Lower bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
orderstring- Sort direction: desc (default) or asc.one of
descasc pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
sortstring- Field to sort by (default activity): activity (last activity date; min/max are Unix epoch seconds), creation (creation date; min/max are Unix epoch seconds), votes (score; min/max are a number).one of
activitycreationvotes todateinteger- Only include items dated on or before this time, as Unix epoch seconds, e.g. 1735689599 for 2024-12-31.
stackexchange_me_associated_listList the signed-in user's accounts on every Stack Exchange site.Read-onlyList My Associated Accounts
List the signed-in user's accounts on every Stack Exchange site. Returns site_name, site_url, user_id, reputation, question_count and answer_count for each site. Use this to find which sites the user belongs to and their user_id on each.
Inputs
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
typesstring- Semicolon-separated site types to include: main_site, meta_site.
stackexchange_me_badges_listList the badges the signed-in user has earned on a site.Read-onlyList My Badges
List the badges the signed-in user has earned on a site. Returns badge_id, name, rank, badge_type and award_count. Use this for the signed-in user. Use stackexchange_user_badges_list for other users.
Inputs
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
fromdateinteger- Only include items dated on or after this time, as Unix epoch seconds, e.g. 1704067200 for 2024-01-01.
maxstring- Upper bound for the chosen sort field, inclusive. With sort=rank use gold, silver or bronze (e.g. max=gold for gold badges only); with sort=type use named or tag_based; with sort=name use text.
minstring- Lower bound for the chosen sort field, inclusive. With sort=rank use gold, silver or bronze (e.g. max=gold for gold badges only); with sort=type use named or tag_based; with sort=name use text.
orderstring- Sort direction: desc (default) or asc.one of
descasc pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
sortstring- Field to sort by (default rank): rank (badge rank; min/max are gold, silver or bronze (bronze sorts highest)), name (name; min/max are text), type (badge type; min/max are named or tag_based (tag_based sorts highest)).one of
ranknametype todateinteger- Only include items dated on or before this time, as Unix epoch seconds, e.g. 1735689599 for 2024-12-31.
stackexchange_me_comments_listList the comments the signed-in user has posted on a site.Read-onlyList My Comments
List the comments the signed-in user has posted on a site. Returns comment_id, post_id, score and creation_date; pass filter=withbody to include the text. Use this for the signed-in user. Use stackexchange_user_comments_list for other users.
Inputs
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
fromdateinteger- Only include items dated on or after this time, as Unix epoch seconds, e.g. 1704067200 for 2024-01-01.
maxstring- Upper bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
minstring- Lower bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
orderstring- Sort direction: desc (default) or asc.one of
descasc pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
sortstring- Field to sort by (default creation): creation (creation date; min/max are Unix epoch seconds), votes (score; min/max are a number).one of
creationvotes todateinteger- Only include items dated on or before this time, as Unix epoch seconds, e.g. 1735689599 for 2024-12-31.
stackexchange_me_favorites_listList the questions the signed-in user has bookmarked on a site.Read-onlyList My Bookmarks
List the questions the signed-in user has bookmarked on a site. Returns question_id, title, tags, score and link. Use this to read the user's bookmarks. Use stackexchange_question_bookmark to add one.
Inputs
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
fromdateinteger- Only include items dated on or after this time, as Unix epoch seconds, e.g. 1704067200 for 2024-01-01.
maxstring- Upper bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
minstring- Lower bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
orderstring- Sort direction: desc (default) or asc.one of
descasc pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
sortstring- Field to sort by (default activity): activity (last activity date; min/max are Unix epoch seconds), votes (score; min/max are a number), creation (creation date; min/max are Unix epoch seconds), added (date added; min/max are Unix epoch seconds).one of
activityvotescreationadded todateinteger- Only include items dated on or before this time, as Unix epoch seconds, e.g. 1735689599 for 2024-12-31.
stackexchange_me_getGet the signed-in user's profile on a site.Read-onlyGet Current User
Get the signed-in user's profile on a site. Returns user_id, account_id, display_name, reputation, badge_counts and link; items is empty if the user has no account on that site. Use stackexchange_me_get to learn who is connected and their user_id on a site. Use stackexchange_users_get for other users.
Inputs
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
fromdateinteger- Only include items dated on or after this time, as Unix epoch seconds, e.g. 1704067200 for 2024-01-01.
maxstring- Upper bound for the chosen sort field, inclusive: Unix epoch seconds or a number or text depending on the sort (see sort). Ignored by sorts without min/max.
minstring- Lower bound for the chosen sort field, inclusive: Unix epoch seconds or a number or text depending on the sort (see sort). Ignored by sorts without min/max.
orderstring- Sort direction: desc (default) or asc.one of
descasc pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
sortstring- Field to sort by (default reputation): reputation (reputation; min/max are a number), creation (creation date; min/max are Unix epoch seconds), name (name; min/max are text), modified (last modified date; min/max are Unix epoch seconds).one of
reputationcreationnamemodified todateinteger- Only include items dated on or before this time, as Unix epoch seconds, e.g. 1735689599 for 2024-12-31.
stackexchange_me_network_activity_listList the signed-in user's activity across every Stack Exchange site.Read-onlyList My Network Activity
List the signed-in user's activity across every Stack Exchange site. Returns activity_type, api_site_parameter, title, link, score and creation_date. Use this for cross-site activity. Use stackexchange_me_questions_list or stackexchange_me_answers_list for one site.
Inputs
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
typesstring- Semicolon-separated activity types to include: posts, badges, comments.
stackexchange_me_privileges_listList the privileges the signed-in user has earned on a site.Read-onlyList My Privileges
List the privileges the signed-in user has earned on a site. Returns short_description, description and the reputation each privilege needs. Use this before voting, commenting or editing to check the user is allowed to.
Inputs
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
stackexchange_me_questions_listList the questions the signed-in user has asked on a site.Read-onlyList My Questions
List the questions the signed-in user has asked on a site. Returns question_id, title, tags, score, answer_count, is_answered and link. Use this for the signed-in user. Use stackexchange_user_questions_list for other users.
Inputs
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
fromdateinteger- Only include items dated on or after this time, as Unix epoch seconds, e.g. 1704067200 for 2024-01-01.
maxstring- Upper bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
minstring- Lower bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
orderstring- Sort direction: desc (default) or asc.one of
descasc pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
sortstring- Field to sort by (default activity): activity (last activity date; min/max are Unix epoch seconds), votes (score; min/max are a number), creation (creation date; min/max are Unix epoch seconds).one of
activityvotescreation todateinteger- Only include items dated on or before this time, as Unix epoch seconds, e.g. 1735689599 for 2024-12-31.
stackexchange_me_reputation_history_full_listList the signed-in user's complete reputation history on a site, including private events such as votes they cast.Read-onlyList My Full Reputation History
List the signed-in user's complete reputation history on a site, including private events such as votes they cast. Returns reputation_history_type, reputation_change, post_id and creation_date. Use this for the signed-in user's full history. Use stackexchange_user_reputation_history_list for public history of other users. Requires the private_info scope.
Inputs
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
stackexchange_notifications_listList the signed-in user's notifications across all Stack Exchange sites (badges, reputation events, moderator messages and similar).Read-onlyList Notifications
List the signed-in user's notifications across all Stack Exchange sites (badges, reputation events, moderator messages and similar). Returns notification_type, body, site, post_id, is_unread and creation_date. Use stackexchange_notifications_list for all notifications. Use stackexchange_notifications_unread_list for unread ones. Requires the read_inbox scope.
Inputs
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
stackexchange_notifications_unread_listList the signed-in user's unread notifications across all Stack Exchange sites.Read-onlyList Unread Notifications
List the signed-in user's unread notifications across all Stack Exchange sites. Returns notification_type, body, site, post_id and creation_date. Use stackexchange_notifications_unread_list for new notifications only. Use stackexchange_notifications_list for all. Requires the read_inbox scope.
Inputs
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
stackexchange_post_comments_listList the comments on one or more posts, whether questions or answers.Read-onlyList Post Comments
List the comments on one or more posts, whether questions or answers. Returns comment_id, post_id, score, owner and creation_date; pass filter=withbody to include the comment text. Use this when the post type is unknown or mixed. Use stackexchange_question_comments_list or stackexchange_answer_comments_list when it is known.
Inputs
post_idsstringrequired- Semicolon-separated post IDs, up to 100, e.g. 11227809;927358.
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
fromdateinteger- Only include items dated on or after this time, as Unix epoch seconds, e.g. 1704067200 for 2024-01-01.
maxstring- Upper bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
minstring- Lower bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
orderstring- Sort direction: desc (default) or asc.one of
descasc pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
sortstring- Field to sort by (default creation): creation (creation date; min/max are Unix epoch seconds), votes (score; min/max are a number).one of
creationvotes todateinteger- Only include items dated on or before this time, as Unix epoch seconds, e.g. 1735689599 for 2024-12-31.
stackexchange_post_revisions_listList the edit revisions of one or more posts.Read-onlyList Post Revisions
List the edit revisions of one or more posts. Returns revision_guid, revision_number, revision_type, title, tags, comment, user and creation_date. Use this for a post's edit history. Use stackexchange_revisions_get when you already have revision GUIDs.
Inputs
post_idsstringrequired- Semicolon-separated post IDs, up to 100, e.g. 11227809;927358.
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
fromdateinteger- Only include items dated on or after this time, as Unix epoch seconds, e.g. 1704067200 for 2024-01-01.
pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
todateinteger- Only include items dated on or before this time, as Unix epoch seconds, e.g. 1735689599 for 2024-12-31.
stackexchange_post_suggested_edits_listList the suggested edits on one or more posts.Read-onlyList Post Suggested Edits
List the suggested edits on one or more posts. Returns suggested_edit_id, post_id, comment, proposing_user, approval_date and rejection_date. Use this for one post's suggested edits. Use stackexchange_suggested_edits_list to browse site-wide.
Inputs
post_idsstringrequired- Semicolon-separated post IDs, up to 100, e.g. 11227809;927358.
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
fromdateinteger- Only include items dated on or after this time, as Unix epoch seconds, e.g. 1704067200 for 2024-01-01.
maxstring- Upper bound for the chosen sort field, inclusive: Unix epoch seconds depending on the sort (see sort). Ignored by sorts without min/max.
minstring- Lower bound for the chosen sort field, inclusive: Unix epoch seconds depending on the sort (see sort). Ignored by sorts without min/max.
orderstring- Sort direction: desc (default) or asc.one of
descasc pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
sortstring- Field to sort by (default creation): creation (creation date; min/max are Unix epoch seconds), approval (approval date; min/max are Unix epoch seconds), rejection (rejection date; min/max are Unix epoch seconds).one of
creationapprovalrejection todateinteger- Only include items dated on or before this time, as Unix epoch seconds, e.g. 1735689599 for 2024-12-31.
stackexchange_posts_getGet one or more posts by ID when you don't know whether each is a question or an answer.Read-onlyGet Posts
Get one or more posts by ID when you don't know whether each is a question or an answer. Returns post_id, post_type (question or answer), score, owner and link; pass filter=withbody to include the body. Use stackexchange_posts_get for mixed or unknown post types. Use stackexchange_questions_get or stackexchange_answers_get when you know the type.
Inputs
post_idsstringrequired- Semicolon-separated post IDs, up to 100, e.g. 11227809;927358.
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
fromdateinteger- Only include items dated on or after this time, as Unix epoch seconds, e.g. 1704067200 for 2024-01-01.
maxstring- Upper bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
minstring- Lower bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
orderstring- Sort direction: desc (default) or asc.one of
descasc pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
sortstring- Field to sort by (default activity): activity (last activity date; min/max are Unix epoch seconds), creation (creation date; min/max are Unix epoch seconds), votes (score; min/max are a number).one of
activitycreationvotes todateinteger- Only include items dated on or before this time, as Unix epoch seconds, e.g. 1735689599 for 2024-12-31.
stackexchange_posts_listList posts (questions and answers together) on a site.Read-onlyList Posts
List posts (questions and answers together) on a site. Returns post_id, post_type, score, owner, creation_date and link. Use stackexchange_posts_list to browse both post types at once. Use stackexchange_questions_list or stackexchange_answers_list for one type.
Inputs
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
fromdateinteger- Only include items dated on or after this time, as Unix epoch seconds, e.g. 1704067200 for 2024-01-01.
maxstring- Upper bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
minstring- Lower bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
orderstring- Sort direction: desc (default) or asc.one of
descasc pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
sortstring- Field to sort by (default activity): activity (last activity date; min/max are Unix epoch seconds), creation (creation date; min/max are Unix epoch seconds), votes (score; min/max are a number).one of
activitycreationvotes todateinteger- Only include items dated on or before this time, as Unix epoch seconds, e.g. 1735689599 for 2024-12-31.
stackexchange_privileges_listList every privilege on a site and the reputation it needs.Read-onlyList Privileges
List every privilege on a site and the reputation it needs. Returns short_description, description and reputation. Use this for the site's privilege ladder. Use stackexchange_me_privileges_list for what the signed-in user has.
Inputs
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
stackexchange_question_answers_listList the answers posted to one or more questions.Read-onlyList Question Answers
List the answers posted to one or more questions. Returns answer_id, question_id, score, is_accepted and owner; pass filter=withbody to include each answer's body. Use this to read the answers to a known question. Use stackexchange_answers_get when you already have answer IDs.
Inputs
question_idsstringrequired- Semicolon-separated question IDs, up to 100, e.g. 11227809;927358.
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
fromdateinteger- Only include items dated on or after this time, as Unix epoch seconds, e.g. 1704067200 for 2024-01-01.
maxstring- Upper bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
minstring- Lower bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
orderstring- Sort direction: desc (default) or asc.one of
descasc pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
sortstring- Field to sort by (default activity): activity (last activity date; min/max are Unix epoch seconds), creation (creation date; min/max are Unix epoch seconds), votes (score; min/max are a number).one of
activitycreationvotes todateinteger- Only include items dated on or before this time, as Unix epoch seconds, e.g. 1735689599 for 2024-12-31.
stackexchange_question_comments_listList the comments posted on one or more questions (not on their answers).Read-onlyList Question Comments
List the comments posted on one or more questions (not on their answers). Returns comment_id, post_id, score, owner and creation_date; pass filter=withbody to include the comment text. Use this for comments on questions. Use stackexchange_answer_comments_list for comments on answers, or stackexchange_post_comments_list when the post type is unknown.
Inputs
question_idsstringrequired- Semicolon-separated question IDs, up to 100, e.g. 11227809;927358.
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
fromdateinteger- Only include items dated on or after this time, as Unix epoch seconds, e.g. 1704067200 for 2024-01-01.
maxstring- Upper bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
minstring- Lower bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
orderstring- Sort direction: desc (default) or asc.one of
descasc pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
sortstring- Field to sort by (default creation): creation (creation date; min/max are Unix epoch seconds), votes (score; min/max are a number).one of
creationvotes todateinteger- Only include items dated on or before this time, as Unix epoch seconds, e.g. 1735689599 for 2024-12-31.
stackexchange_question_linked_listList questions that link to one or more questions (including duplicates pointing at them).Read-onlyList Linked Questions
List questions that link to one or more questions (including duplicates pointing at them). Returns question_id, title, tags, score and link for each linking question. Use stackexchange_question_linked_list for explicit links. Use stackexchange_question_related_list for similar questions with no link.
Inputs
question_idsstringrequired- Semicolon-separated question IDs, up to 100, e.g. 11227809;927358.
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
fromdateinteger- Only include items dated on or after this time, as Unix epoch seconds, e.g. 1704067200 for 2024-01-01.
maxstring- Upper bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
minstring- Lower bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
orderstring- Sort direction: desc (default) or asc.one of
descasc pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
sortstring- Field to sort by (default activity): activity (last activity date; min/max are Unix epoch seconds), votes (score; min/max are a number), creation (creation date; min/max are Unix epoch seconds), rank (badge rank; no min/max).one of
activityvotescreationrank todateinteger- Only include items dated on or before this time, as Unix epoch seconds, e.g. 1735689599 for 2024-12-31.
stackexchange_question_timeline_getGet the timeline of events for one or more questions: revisions, answers, comments, votes and accepts.Read-onlyGet Question Timeline
Get the timeline of events for one or more questions: revisions, answers, comments, votes and accepts. Returns timeline_type, post_id, user, owner and creation_date for each event. Use this to see the history of a question. Use stackexchange_post_revisions_list for the edit history only.
Inputs
question_idsstringrequired- Semicolon-separated question IDs, up to 100, e.g. 11227809;927358.
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
fromdateinteger- Only include items dated on or after this time, as Unix epoch seconds, e.g. 1704067200 for 2024-01-01.
pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
todateinteger- Only include items dated on or before this time, as Unix epoch seconds, e.g. 1735689599 for 2024-12-31.
stackexchange_questions_featured_listList questions on a site that have an active bounty.Read-onlyList Featured Questions
List questions on a site that have an active bounty. Returns question_id, title, tags, bounty_amount, bounty_closes_date and link. Use this to find questions with open bounties.
Inputs
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
fromdateinteger- Only include items dated on or after this time, as Unix epoch seconds, e.g. 1704067200 for 2024-01-01.
maxstring- Upper bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
minstring- Lower bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
orderstring- Sort direction: desc (default) or asc.one of
descasc pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
sortstring- Field to sort by (default activity): activity (last activity date; min/max are Unix epoch seconds), votes (score; min/max are a number), creation (creation date; min/max are Unix epoch seconds).one of
activityvotescreation taggedstring- Semicolon-separated tags; each result has all of them (passing more than 5 returns nothing), e.g. python;pandas.
todateinteger- Only include items dated on or before this time, as Unix epoch seconds, e.g. 1735689599 for 2024-12-31.
stackexchange_questions_getGet one or more questions by ID.Read-onlyGet Questions
Get one or more questions by ID. Returns each question's title, tags, score, answer_count, accepted_answer_id, owner and link; pass filter=withbody to include the body. Use stackexchange_questions_get when you already have question IDs. Use stackexchange_questions_list or stackexchange_questions_search_advanced to find them.
Inputs
question_idsstringrequired- Semicolon-separated question IDs, up to 100, e.g. 11227809;927358.
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
fromdateinteger- Only include items dated on or after this time, as Unix epoch seconds, e.g. 1704067200 for 2024-01-01.
maxstring- Upper bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
minstring- Lower bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
orderstring- Sort direction: desc (default) or asc.one of
descasc pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
sortstring- Field to sort by (default activity): activity (last activity date; min/max are Unix epoch seconds), votes (score; min/max are a number), creation (creation date; min/max are Unix epoch seconds).one of
activityvotescreation todateinteger- Only include items dated on or before this time, as Unix epoch seconds, e.g. 1735689599 for 2024-12-31.
stackexchange_questions_listList questions on a site, optionally narrowed to questions that carry all of the given tags.Read-onlyList Questions
List questions on a site, optionally narrowed to questions that carry all of the given tags. Returns question_id, title, tags, score, answer_count, is_answered, owner and link. Use stackexchange_questions_list to browse by activity, votes or date. Use stackexchange_questions_search_advanced for free-text search, and stackexchange_questions_get when you already have question IDs.
Inputs
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
fromdateinteger- Only include items dated on or after this time, as Unix epoch seconds, e.g. 1704067200 for 2024-01-01.
maxstring- Upper bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
minstring- Lower bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
orderstring- Sort direction: desc (default) or asc.one of
descasc pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
sortstring- Field to sort by (default activity): activity (last activity date; min/max are Unix epoch seconds), votes (score; min/max are a number), creation (creation date; min/max are Unix epoch seconds), hot (the site's hot tab formula; no min/max), week (the site's week tab formula; no min/max), month (the site's month tab formula; no min/max).one of
activityvotescreationhotweekmonth taggedstring- Semicolon-separated tags; each result has all of them (passing more than 5 returns nothing), e.g. python;pandas.
todateinteger- Only include items dated on or before this time, as Unix epoch seconds, e.g. 1735689599 for 2024-12-31.
stackexchange_questions_no_answers_listList questions that have no answers at all.Read-onlyList Questions With No Answers
List questions that have no answers at all. Returns question_id, title, tags, score and link. Use this for questions with zero answers. Use stackexchange_questions_unanswered_list to also include questions whose answers have no upvotes.
Inputs
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
fromdateinteger- Only include items dated on or after this time, as Unix epoch seconds, e.g. 1704067200 for 2024-01-01.
maxstring- Upper bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
minstring- Lower bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
orderstring- Sort direction: desc (default) or asc.one of
descasc pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
sortstring- Field to sort by (default activity): activity (last activity date; min/max are Unix epoch seconds), votes (score; min/max are a number), creation (creation date; min/max are Unix epoch seconds).one of
activityvotescreation taggedstring- Semicolon-separated tags; each result has all of them (passing more than 5 returns nothing), e.g. python;pandas.
todateinteger- Only include items dated on or before this time, as Unix epoch seconds, e.g. 1735689599 for 2024-12-31.
stackexchange_questions_searchSearch a site's questions by words in the title and/or by tags.Read-onlySearch Questions
Search a site's questions by words in the title and/or by tags. Returns question_id, title, tags, score, answer_count and link. Use stackexchange_questions_search for a quick title or tag lookup; at least one of intitle or tagged is required. Use stackexchange_questions_search_advanced for full-text search with more filters, or stackexchange_search_excerpts for result snippets.
Inputs
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
fromdateinteger- Only include items dated on or after this time, as Unix epoch seconds, e.g. 1704067200 for 2024-01-01.
intitlestring- Text that must appear in the question title. Required unless tagged is set.
maxstring- Upper bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
minstring- Lower bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
nottaggedstring- Semicolon-separated tags that no result may carry, e.g. java;php. Only used when tagged is also set.
orderstring- Sort direction: desc (default) or asc.one of
descasc pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
sortstring- Field to sort by (default activity): activity (last activity date; min/max are Unix epoch seconds), votes (score; min/max are a number), creation (creation date; min/max are Unix epoch seconds), relevance (search relevance; no min/max).one of
activityvotescreationrelevance taggedstring- Semicolon-separated tags; each result has at least one of them, e.g. python;pandas.
todateinteger- Only include items dated on or before this time, as Unix epoch seconds, e.g. 1735689599 for 2024-12-31.
stackexchange_questions_search_advancedSearch a site's questions with free text plus filters such as tags, accepted, closed, minimum answers or views, owner and URL.Read-onlyAdvanced Search
Search a site's questions with free text plus filters such as tags, accepted, closed, minimum answers or views, owner and URL. Returns question_id, title, tags, score, answer_count, is_answered and link. Use stackexchange_questions_search_advanced as the main full-text search. Use stackexchange_questions_search for a simple title/tag lookup, or stackexchange_search_excerpts when you want highlighted snippets that also match answers.
Inputs
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
acceptedstring- True to return only questions that have an accepted answer, False for only those that don't. Leave empty for no constraint.one of
TrueFalse answersinteger- Minimum number of answers returned questions must have.
bodystring- Text that must appear in the question body.
closedstring- True to return only questions that are closed, False for only those that don't. Leave empty for no constraint.one of
TrueFalse filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
fromdateinteger- Only include items dated on or after this time, as Unix epoch seconds, e.g. 1704067200 for 2024-01-01.
maxstring- Upper bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
migratedstring- True to return only questions that were migrated away from the site, False for only those that don't. Leave empty for no constraint.one of
TrueFalse minstring- Lower bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
noticestring- True to return only questions that have a post notice, False for only those that don't. Leave empty for no constraint.one of
TrueFalse nottaggedstring- Semicolon-separated tags that no result may carry, e.g. java;php.
orderstring- Sort direction: desc (default) or asc.one of
descasc pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
qstring- Free-text query matched against all question properties (title, body, tags and more).
sortstring- Field to sort by (default activity): activity (last activity date; min/max are Unix epoch seconds), votes (score; min/max are a number), creation (creation date; min/max are Unix epoch seconds), relevance (search relevance; no min/max).one of
activityvotescreationrelevance taggedstring- Semicolon-separated tags; each result has at least one of them, e.g. python;pandas.
titlestring- Text that must appear in the question title.
todateinteger- Only include items dated on or before this time, as Unix epoch seconds, e.g. 1735689599 for 2024-12-31.
urlstring- A URL that must appear in the post; may include a * wildcard, e.g. *github.com*.
userinteger- Only return questions owned by this user ID.
viewsinteger- Minimum number of views returned questions must have.
wikistring- True to return only questions that are community wiki, False for only those that don't. Leave empty for no constraint.one of
TrueFalse
stackexchange_questions_similarFind questions similar to a hypothetical question, based on a title and optional tags.Read-onlyFind Similar Questions
Find questions similar to a hypothetical question, based on a title and optional tags. Returns question_id, title, tags, score and link, most similar first when sort=relevance. Use this before posting a question to check for duplicates. Use stackexchange_questions_search_advanced for general text search.
Inputs
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
titlestringrequired- Title of the hypothetical question to find similar questions for.
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
fromdateinteger- Only include items dated on or after this time, as Unix epoch seconds, e.g. 1704067200 for 2024-01-01.
maxstring- Upper bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
minstring- Lower bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
nottaggedstring- Semicolon-separated tags that no result may carry, e.g. java;php.
orderstring- Sort direction: desc (default) or asc.one of
descasc pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
sortstring- Field to sort by (default activity): activity (last activity date; min/max are Unix epoch seconds), votes (score; min/max are a number), creation (creation date; min/max are Unix epoch seconds), relevance (search relevance; no min/max).one of
activityvotescreationrelevance taggedstring- Semicolon-separated tags treated as a preference (results may not carry them), e.g. python;pandas.
todateinteger- Only include items dated on or before this time, as Unix epoch seconds, e.g. 1735689599 for 2024-12-31.
stackexchange_questions_unanswered_listList questions the site considers unanswered: no answer with a positive score.Read-onlyList Unanswered Questions
List questions the site considers unanswered: no answer with a positive score. Returns question_id, title, tags, score, answer_count and link. Use this to find questions that still need a good answer. Use stackexchange_questions_no_answers_list for questions with zero answers.
Inputs
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
fromdateinteger- Only include items dated on or after this time, as Unix epoch seconds, e.g. 1704067200 for 2024-01-01.
maxstring- Upper bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
minstring- Lower bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
orderstring- Sort direction: desc (default) or asc.one of
descasc pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
sortstring- Field to sort by (default activity): activity (last activity date; min/max are Unix epoch seconds), votes (score; min/max are a number), creation (creation date; min/max are Unix epoch seconds).one of
activityvotescreation taggedstring- Semicolon-separated tags; each result has all of them (passing more than 5 returns nothing), e.g. python;pandas.
todateinteger- Only include items dated on or before this time, as Unix epoch seconds, e.g. 1735689599 for 2024-12-31.
stackexchange_revisions_getGet one or more post revisions by revision GUID.Read-onlyGet Revisions
Get one or more post revisions by revision GUID. Returns revision_guid, post_id, revision_number, revision_type, title, tags, comment and user. Use stackexchange_revisions_get when you already have revision GUIDs (from stackexchange_post_revisions_list or stackexchange_question_timeline_get).
Inputs
revision_guidsstringrequired- Semicolon-separated revision GUIDs, up to 100, e.g. 3a1f6b2c-0f4e-4b1e-9c51-2d0d6d1f7a10;8c2e4d55-1b7a-4f0e-a0a8-6c3b9e2f1d44. Get them from stackexchange_post_revisions_list or stackexchange_question_timeline_get.
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
fromdateinteger- Only include items dated on or after this time, as Unix epoch seconds, e.g. 1704067200 for 2024-01-01.
pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
todateinteger- Only include items dated on or before this time, as Unix epoch seconds, e.g. 1735689599 for 2024-12-31.
stackexchange_search_excerptsSearch a site with the same filters as stackexchange_questions_search_advanced and return highlighted snippets of matching questions and answers.Read-onlySearch Excerpts
Search a site with the same filters as stackexchange_questions_search_advanced and return highlighted snippets of matching questions and answers. Returns item_type, question_id, answer_id, title, excerpt (matches wrapped in <span class="highlight">), score and tags. Use stackexchange_search_excerpts when you need to see why a post matched. Use stackexchange_questions_search_advanced when you only need the matching questions.
Inputs
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
acceptedstring- True to return only questions that have an accepted answer, False for only those that don't. Leave empty for no constraint.one of
TrueFalse answersinteger- Minimum number of answers returned questions must have.
bodystring- Text that must appear in the question body.
closedstring- True to return only questions that are closed, False for only those that don't. Leave empty for no constraint.one of
TrueFalse filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
fromdateinteger- Only include items dated on or after this time, as Unix epoch seconds, e.g. 1704067200 for 2024-01-01.
maxstring- Upper bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
migratedstring- True to return only questions that were migrated away from the site, False for only those that don't. Leave empty for no constraint.one of
TrueFalse minstring- Lower bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
noticestring- True to return only questions that have a post notice, False for only those that don't. Leave empty for no constraint.one of
TrueFalse nottaggedstring- Semicolon-separated tags that no result may carry, e.g. java;php.
orderstring- Sort direction: desc (default) or asc.one of
descasc pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
qstring- Free-text query matched against all question properties (title, body, tags and more).
sortstring- Field to sort by (default activity): activity (last activity date; min/max are Unix epoch seconds), votes (score; min/max are a number), creation (creation date; min/max are Unix epoch seconds), relevance (search relevance; no min/max).one of
activityvotescreationrelevance taggedstring- Semicolon-separated tags; each result has at least one of them, e.g. python;pandas.
titlestring- Text that must appear in the question title.
todateinteger- Only include items dated on or before this time, as Unix epoch seconds, e.g. 1735689599 for 2024-12-31.
urlstring- A URL that must appear in the post; may include a * wildcard, e.g. *github.com*.
userinteger- Only return questions owned by this user ID.
viewsinteger- Minimum number of views returned questions must have.
wikistring- True to return only questions that are community wiki, False for only those that don't. Leave empty for no constraint.one of
TrueFalse
stackexchange_sites_listList every site in the Stack Exchange network (Stack Overflow, Super User, Server Fault, Ask Ubuntu and the rest).Read-onlyList Sites
List every site in the Stack Exchange network (Stack Overflow, Super User, Server Fault, Ask Ubuntu and the rest). Returns each site's name, site_url, api_site_parameter, audience and site_type. Use this to find the api_site_parameter value that every other per-site tool takes as `site`.
Inputs
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, any size (default 30).
stackexchange_suggested_edits_getGet one or more suggested edits by ID.Read-onlyGet Suggested Edits
Get one or more suggested edits by ID. Returns suggested_edit_id, post_id, comment, proposing_user, approval_date and rejection_date. Use this when you already have suggested edit IDs.
Inputs
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
suggested_edit_idsstringrequired- Semicolon-separated suggested edit IDs, up to 100, e.g. 11227809;927358.
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
fromdateinteger- Only include items dated on or after this time, as Unix epoch seconds, e.g. 1704067200 for 2024-01-01.
maxstring- Upper bound for the chosen sort field, inclusive: Unix epoch seconds depending on the sort (see sort). Ignored by sorts without min/max.
minstring- Lower bound for the chosen sort field, inclusive: Unix epoch seconds depending on the sort (see sort). Ignored by sorts without min/max.
orderstring- Sort direction: desc (default) or asc.one of
descasc pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
sortstring- Field to sort by (default creation): creation (creation date; min/max are Unix epoch seconds), approval (approval date; min/max are Unix epoch seconds), rejection (rejection date; min/max are Unix epoch seconds).one of
creationapprovalrejection todateinteger- Only include items dated on or before this time, as Unix epoch seconds, e.g. 1735689599 for 2024-12-31.
stackexchange_suggested_edits_listList suggested edits on a site.Read-onlyList Suggested Edits
List suggested edits on a site. Returns suggested_edit_id, post_id, post_type, comment, proposing_user, approval_date and rejection_date. Use stackexchange_suggested_edits_list to browse edits site-wide. Use stackexchange_post_suggested_edits_list for one post.
Inputs
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
fromdateinteger- Only include items dated on or after this time, as Unix epoch seconds, e.g. 1704067200 for 2024-01-01.
maxstring- Upper bound for the chosen sort field, inclusive: Unix epoch seconds depending on the sort (see sort). Ignored by sorts without min/max.
minstring- Lower bound for the chosen sort field, inclusive: Unix epoch seconds depending on the sort (see sort). Ignored by sorts without min/max.
orderstring- Sort direction: desc (default) or asc.one of
descasc pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
sortstring- Field to sort by (default creation): creation (creation date; min/max are Unix epoch seconds), approval (approval date; min/max are Unix epoch seconds), rejection (rejection date; min/max are Unix epoch seconds).one of
creationapprovalrejection todateinteger- Only include items dated on or before this time, as Unix epoch seconds, e.g. 1735689599 for 2024-12-31.
stackexchange_tag_faq_listList the frequently asked questions in one or more tags.Read-onlyList Tag FAQ Questions
List the frequently asked questions in one or more tags. Returns question_id, title, tags, score and link. Use this to find canonical questions for a tag.
Inputs
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
tagsstringrequired- Semicolon-separated tag names, e.g. python;django. URL-encode characters that are special in a URL path, e.g. c%23 for c#.
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
stackexchange_tag_synonyms_getGet the synonyms that map onto one or more tags.Read-onlyGet Tag Synonyms
Get the synonyms that map onto one or more tags. Returns from_tag, to_tag, applied_count and creation_date. Use this for specific tags. Use stackexchange_tag_synonyms_list for all synonyms on a site.
Inputs
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
tagsstringrequired- Semicolon-separated tag names, e.g. python;django. URL-encode characters that are special in a URL path, e.g. c%23 for c#.
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
fromdateinteger- Only include items dated on or after this time, as Unix epoch seconds, e.g. 1704067200 for 2024-01-01.
maxstring- Upper bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
minstring- Lower bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
orderstring- Sort direction: desc (default) or asc.one of
descasc pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
sortstring- Field to sort by (default creation): creation (creation date; min/max are Unix epoch seconds), applied (number of times applied; min/max are a number), activity (last activity date; min/max are Unix epoch seconds).one of
creationappliedactivity todateinteger- Only include items dated on or before this time, as Unix epoch seconds, e.g. 1735689599 for 2024-12-31.
stackexchange_tag_synonyms_listList every tag synonym on a site.Read-onlyList Tag Synonyms
List every tag synonym on a site. Returns from_tag, to_tag, applied_count, creation_date and last_applied_date. Use stackexchange_tag_synonyms_list to browse all synonyms. Use stackexchange_tag_synonyms_get for the synonyms of specific tags.
Inputs
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
fromdateinteger- Only include items dated on or after this time, as Unix epoch seconds, e.g. 1704067200 for 2024-01-01.
maxstring- Upper bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
minstring- Lower bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
orderstring- Sort direction: desc (default) or asc.one of
descasc pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
sortstring- Field to sort by (default creation): creation (creation date; min/max are Unix epoch seconds), applied (number of times applied; min/max are a number), activity (last activity date; min/max are Unix epoch seconds).one of
creationappliedactivity todateinteger- Only include items dated on or before this time, as Unix epoch seconds, e.g. 1735689599 for 2024-12-31.
stackexchange_tag_top_answerers_listList the top 20 answerers in a single tag, for the last month or all time.Read-onlyList Top Answerers In Tag
List the top 20 answerers in a single tag, for the last month or all time. Returns user, post_count and score for each answerer. Use this to find experts in a tag. Use stackexchange_tag_top_askers_list for the most active askers.
Inputs
periodstringrequired- Time window: all_time or month (the last 30 days).one of
all_timemonth sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
tagstringrequired- A single tag name, e.g. python. URL-encode characters that are special in a URL path, e.g. c%23 for c#.
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
stackexchange_tag_top_askers_listList the top 20 askers in a single tag, for the last month or all time.Read-onlyList Top Askers In Tag
List the top 20 askers in a single tag, for the last month or all time. Returns user, post_count and score for each asker. Use this to find the most active askers in a tag. Use stackexchange_tag_top_answerers_list for experts.
Inputs
periodstringrequired- Time window: all_time or month (the last 30 days).one of
all_timemonth sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
tagstringrequired- A single tag name, e.g. python. URL-encode characters that are special in a URL path, e.g. c%23 for c#.
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
stackexchange_tag_wikis_getGet the wiki excerpt (usage guidance) for one or more tags.Read-onlyGet Tag Wikis
Get the wiki excerpt (usage guidance) for one or more tags. Returns tag_name, excerpt and edit dates; pass filter=withbody to include the full wiki body. Use this to learn what a tag is for before tagging a question.
Inputs
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
tagsstringrequired- Semicolon-separated tag names, e.g. python;django. URL-encode characters that are special in a URL path, e.g. c%23 for c#.
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
stackexchange_user_answers_listList the answers posted by one or more users on a site.Read-onlyList User Answers
List the answers posted by one or more users on a site. Returns answer_id, question_id, score, is_accepted and creation_date. Use this for other users. Use stackexchange_me_answers_list for the signed-in user.
Inputs
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
user_idsstringrequired- Semicolon-separated user IDs, up to 100, e.g. 11227809;927358.
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
fromdateinteger- Only include items dated on or after this time, as Unix epoch seconds, e.g. 1704067200 for 2024-01-01.
maxstring- Upper bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
minstring- Lower bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
orderstring- Sort direction: desc (default) or asc.one of
descasc pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
sortstring- Field to sort by (default activity): activity (last activity date; min/max are Unix epoch seconds), creation (creation date; min/max are Unix epoch seconds), votes (score; min/max are a number).one of
activitycreationvotes todateinteger- Only include items dated on or before this time, as Unix epoch seconds, e.g. 1735689599 for 2024-12-31.
stackexchange_user_associated_listList a user's accounts on every Stack Exchange site, by account ID.Read-onlyList Associated Accounts
List a user's accounts on every Stack Exchange site, by account ID. Returns site_name, site_url, user_id, reputation, question_count and answer_count for each site. Use this to find a person's user_id on other sites; it takes account_id (from stackexchange_users_get or stackexchange_me_get), not a site user_id.
Inputs
account_idsstringrequired- Semicolon-separated network account IDs (account_id, not a site user_id), up to 100, e.g. 1;4243. Get account_id from stackexchange_users_get or stackexchange_me_get.
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
typesstring- Semicolon-separated site types to include: main_site, meta_site.
stackexchange_user_badges_listList the badges earned by one or more users on a site.Read-onlyList User Badges
List the badges earned by one or more users on a site. Returns badge_id, name, rank, badge_type and award_count. Use this for other users. Use stackexchange_me_badges_list for the signed-in user.
Inputs
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
user_idsstringrequired- Semicolon-separated user IDs, up to 100, e.g. 11227809;927358.
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
fromdateinteger- Only include items dated on or after this time, as Unix epoch seconds, e.g. 1704067200 for 2024-01-01.
maxstring- Upper bound for the chosen sort field, inclusive: Unix epoch seconds or text depending on the sort (see sort). Ignored by sorts without min/max.
minstring- Lower bound for the chosen sort field, inclusive: Unix epoch seconds or text depending on the sort (see sort). Ignored by sorts without min/max.
orderstring- Sort direction: desc (default) or asc.one of
descasc pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
sortstring- Field to sort by (default rank): rank (badge rank; min/max are gold, silver or bronze (bronze sorts highest)), name (name; min/max are text), type (badge type; min/max are named or tag_based (tag_based sorts highest)), awarded (award date; min/max are Unix epoch seconds).one of
ranknametypeawarded todateinteger- Only include items dated on or before this time, as Unix epoch seconds, e.g. 1735689599 for 2024-12-31.
stackexchange_user_comments_listList the comments posted by one or more users on a site.Read-onlyList User Comments
List the comments posted by one or more users on a site. Returns comment_id, post_id, score and creation_date; pass filter=withbody to include the text. Use this for other users. Use stackexchange_me_comments_list for the signed-in user.
Inputs
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
user_idsstringrequired- Semicolon-separated user IDs, up to 100, e.g. 11227809;927358.
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
fromdateinteger- Only include items dated on or after this time, as Unix epoch seconds, e.g. 1704067200 for 2024-01-01.
maxstring- Upper bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
minstring- Lower bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
orderstring- Sort direction: desc (default) or asc.one of
descasc pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
sortstring- Field to sort by (default creation): creation (creation date; min/max are Unix epoch seconds), votes (score; min/max are a number).one of
creationvotes todateinteger- Only include items dated on or before this time, as Unix epoch seconds, e.g. 1735689599 for 2024-12-31.
stackexchange_user_favorites_listList the questions bookmarked by one or more users.Read-onlyList User Bookmarks
List the questions bookmarked by one or more users. Returns question_id, title, tags, score and link. Use this for other users. Use stackexchange_me_favorites_list for the signed-in user.
Inputs
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
user_idsstringrequired- Semicolon-separated user IDs, up to 100, e.g. 11227809;927358.
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
fromdateinteger- Only include items dated on or after this time, as Unix epoch seconds, e.g. 1704067200 for 2024-01-01.
maxstring- Upper bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
minstring- Lower bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
orderstring- Sort direction: desc (default) or asc.one of
descasc pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
sortstring- Field to sort by (default activity): activity (last activity date; min/max are Unix epoch seconds), votes (score; min/max are a number), creation (creation date; min/max are Unix epoch seconds), added (date added; min/max are Unix epoch seconds).one of
activityvotescreationadded todateinteger- Only include items dated on or before this time, as Unix epoch seconds, e.g. 1735689599 for 2024-12-31.
stackexchange_user_mentions_listList comments that mention one or more users.Read-onlyList User Mentions
List comments that mention one or more users. Returns comment_id, post_id, owner and creation_date; pass filter=withbody to include the text. Use this to find where users were @-mentioned.
Inputs
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
user_idsstringrequired- Semicolon-separated user IDs, up to 100, e.g. 11227809;927358.
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
fromdateinteger- Only include items dated on or after this time, as Unix epoch seconds, e.g. 1704067200 for 2024-01-01.
maxstring- Upper bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
minstring- Lower bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
orderstring- Sort direction: desc (default) or asc.one of
descasc pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
sortstring- Field to sort by (default creation): creation (creation date; min/max are Unix epoch seconds), votes (score; min/max are a number).one of
creationvotes todateinteger- Only include items dated on or before this time, as Unix epoch seconds, e.g. 1735689599 for 2024-12-31.
stackexchange_user_network_activity_listList a user's activity across every Stack Exchange site, by account ID.Read-onlyList User Network Activity
List a user's activity across every Stack Exchange site, by account ID. Returns activity_type, api_site_parameter, title, link, score and creation_date. Use this for cross-site activity; it takes account_id, not a site user_id. Use stackexchange_user_timeline_list for one site.
Inputs
account_idintegerrequired- Network account ID (account_id, not a site user_id). Get it from stackexchange_users_get or stackexchange_me_get.
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
fromdateinteger- Only include items dated on or after this time, as Unix epoch seconds, e.g. 1704067200 for 2024-01-01.
pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
todateinteger- Only include items dated on or before this time, as Unix epoch seconds, e.g. 1735689599 for 2024-12-31.
typesstring- Semicolon-separated activity types to include: posts, badges, comments.
stackexchange_user_posts_listList all posts (questions and answers) owned by one or more users.Read-onlyList User Posts
List all posts (questions and answers) owned by one or more users. Returns post_id, post_type, score, creation_date and link. Use this for both post types at once. Use stackexchange_user_questions_list or stackexchange_user_answers_list for one type.
Inputs
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
user_idsstringrequired- Semicolon-separated user IDs, up to 100, e.g. 11227809;927358.
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
fromdateinteger- Only include items dated on or after this time, as Unix epoch seconds, e.g. 1704067200 for 2024-01-01.
maxstring- Upper bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
minstring- Lower bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
orderstring- Sort direction: desc (default) or asc.one of
descasc pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
sortstring- Field to sort by (default activity): activity (last activity date; min/max are Unix epoch seconds), creation (creation date; min/max are Unix epoch seconds), votes (score; min/max are a number).one of
activitycreationvotes todateinteger- Only include items dated on or before this time, as Unix epoch seconds, e.g. 1735689599 for 2024-12-31.
stackexchange_user_privileges_listList the privileges a single user has earned on a site.Read-onlyList User Privileges
List the privileges a single user has earned on a site. Returns short_description, description and the reputation each privilege needs. Use this to check whether a user can vote, comment or edit. Use stackexchange_privileges_list for every privilege on the site.
Inputs
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
user_idintegerrequired- ID of the user.
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
stackexchange_user_questions_listList the questions asked by one or more users on a site.Read-onlyList User Questions
List the questions asked by one or more users on a site. Returns question_id, title, tags, score, answer_count and link. Use this for other users. Use stackexchange_me_questions_list for the signed-in user.
Inputs
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
user_idsstringrequired- Semicolon-separated user IDs, up to 100, e.g. 11227809;927358.
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
fromdateinteger- Only include items dated on or after this time, as Unix epoch seconds, e.g. 1704067200 for 2024-01-01.
maxstring- Upper bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
minstring- Lower bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
orderstring- Sort direction: desc (default) or asc.one of
descasc pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
sortstring- Field to sort by (default activity): activity (last activity date; min/max are Unix epoch seconds), votes (score; min/max are a number), creation (creation date; min/max are Unix epoch seconds).one of
activityvotescreation todateinteger- Only include items dated on or before this time, as Unix epoch seconds, e.g. 1735689599 for 2024-12-31.
stackexchange_user_questions_unaccepted_listList questions asked by one or more users that have answers but no accepted answer.Read-onlyList User Unaccepted Questions
List questions asked by one or more users that have answers but no accepted answer. Returns question_id, title, tags, answer_count and link. Use this to find questions where the asker could still accept an answer.
Inputs
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
user_idsstringrequired- Semicolon-separated user IDs, up to 100, e.g. 11227809;927358.
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
fromdateinteger- Only include items dated on or after this time, as Unix epoch seconds, e.g. 1704067200 for 2024-01-01.
maxstring- Upper bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
minstring- Lower bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
orderstring- Sort direction: desc (default) or asc.one of
descasc pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
sortstring- Field to sort by (default activity): activity (last activity date; min/max are Unix epoch seconds), votes (score; min/max are a number), creation (creation date; min/max are Unix epoch seconds).one of
activityvotescreation todateinteger- Only include items dated on or before this time, as Unix epoch seconds, e.g. 1735689599 for 2024-12-31.
stackexchange_user_questions_unanswered_listList questions asked by one or more users that the site considers unanswered.Read-onlyList User Unanswered Questions
List questions asked by one or more users that the site considers unanswered. Returns question_id, title, tags, score, answer_count and link. Use this to find a user's questions that still need answers.
Inputs
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
user_idsstringrequired- Semicolon-separated user IDs, up to 100, e.g. 11227809;927358.
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
fromdateinteger- Only include items dated on or after this time, as Unix epoch seconds, e.g. 1704067200 for 2024-01-01.
maxstring- Upper bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
minstring- Lower bound for the chosen sort field, inclusive: Unix epoch seconds or a number depending on the sort (see sort). Ignored by sorts without min/max.
orderstring- Sort direction: desc (default) or asc.one of
descasc pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
sortstring- Field to sort by (default activity): activity (last activity date; min/max are Unix epoch seconds), votes (score; min/max are a number), creation (creation date; min/max are Unix epoch seconds).one of
activityvotescreation todateinteger- Only include items dated on or before this time, as Unix epoch seconds, e.g. 1735689599 for 2024-12-31.
stackexchange_user_reputation_history_listList the public reputation history of one or more users.Read-onlyList User Reputation History
List the public reputation history of one or more users. Returns user_id, reputation_history_type, reputation_change, post_id and creation_date. Use this for other users. Use stackexchange_me_reputation_history_full_list for the signed-in user's full, private history.
Inputs
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
user_idsstringrequired- Semicolon-separated user IDs, up to 100, e.g. 11227809;927358.
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
stackexchange_user_reputation_listList recent reputation changes for one or more users, tied to the posts that caused them.Read-onlyList User Reputation Changes
List recent reputation changes for one or more users, tied to the posts that caused them. Returns user_id, post_id, post_type, vote_type, reputation_change and on_date. Use this to explain reputation changes by post. Use stackexchange_user_reputation_history_list for a plain history.
Inputs
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
user_idsstringrequired- Semicolon-separated user IDs, up to 100, e.g. 11227809;927358.
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
fromdateinteger- Only include items dated on or after this time, as Unix epoch seconds, e.g. 1704067200 for 2024-01-01.
pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
todateinteger- Only include items dated on or before this time, as Unix epoch seconds, e.g. 1735689599 for 2024-12-31.
stackexchange_user_timeline_listList the public actions taken by one or more users: posts, comments, badges, edits and accepts.Read-onlyList User Timeline
List the public actions taken by one or more users: posts, comments, badges, edits and accepts. Returns timeline_type, post_id, title, detail and creation_date. Use this for a user's recent activity on one site. Use stackexchange_user_network_activity_list for activity across the network.
Inputs
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
user_idsstringrequired- Semicolon-separated user IDs, up to 100, e.g. 11227809;927358.
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
fromdateinteger- Only include items dated on or after this time, as Unix epoch seconds, e.g. 1704067200 for 2024-01-01.
pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
todateinteger- Only include items dated on or before this time, as Unix epoch seconds, e.g. 1735689599 for 2024-12-31.
stackexchange_users_elected_moderators_listList the active moderators on a site who won a moderator election.Read-onlyList Elected Moderators
List the active moderators on a site who won a moderator election. Returns user_id, display_name, reputation and link. Use this for elected moderators. Use stackexchange_users_moderators_list to include staff and appointed moderators.
Inputs
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
fromdateinteger- Only include items dated on or after this time, as Unix epoch seconds, e.g. 1704067200 for 2024-01-01.
maxstring- Upper bound for the chosen sort field, inclusive: Unix epoch seconds or a number or text depending on the sort (see sort). Ignored by sorts without min/max.
minstring- Lower bound for the chosen sort field, inclusive: Unix epoch seconds or a number or text depending on the sort (see sort). Ignored by sorts without min/max.
orderstring- Sort direction: desc (default) or asc.one of
descasc pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
sortstring- Field to sort by (default reputation): reputation (reputation; min/max are a number), creation (creation date; min/max are Unix epoch seconds), name (name; min/max are text), modified (last modified date; min/max are Unix epoch seconds).one of
reputationcreationnamemodified todateinteger- Only include items dated on or before this time, as Unix epoch seconds, e.g. 1735689599 for 2024-12-31.
stackexchange_users_getGet one or more users on a site by user ID.Read-onlyGet Users
Get one or more users on a site by user ID. Returns user_id, account_id, display_name, reputation, badge_counts, creation_date and link. Use stackexchange_users_get when you already have user IDs. Use stackexchange_me_get for the signed-in user.
Inputs
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
user_idsstringrequired- Semicolon-separated user IDs, up to 100, e.g. 11227809;927358.
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
fromdateinteger- Only include items dated on or after this time, as Unix epoch seconds, e.g. 1704067200 for 2024-01-01.
maxstring- Upper bound for the chosen sort field, inclusive: Unix epoch seconds or a number or text depending on the sort (see sort). Ignored by sorts without min/max.
minstring- Lower bound for the chosen sort field, inclusive: Unix epoch seconds or a number or text depending on the sort (see sort). Ignored by sorts without min/max.
orderstring- Sort direction: desc (default) or asc.one of
descasc pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
sortstring- Field to sort by (default reputation): reputation (reputation; min/max are a number), creation (creation date; min/max are Unix epoch seconds), name (name; min/max are text), modified (last modified date; min/max are Unix epoch seconds).one of
reputationcreationnamemodified todateinteger- Only include items dated on or before this time, as Unix epoch seconds, e.g. 1735689599 for 2024-12-31.
stackexchange_users_listList users on a site, optionally filtered to display names containing a substring.Read-onlyList Users
List users on a site, optionally filtered to display names containing a substring. Returns user_id, account_id, display_name, reputation, badge_counts, location and link. Use stackexchange_users_list to find users by name or rank by reputation. Use stackexchange_users_get when you already have user IDs.
Inputs
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
fromdateinteger- Only include items dated on or after this time, as Unix epoch seconds, e.g. 1704067200 for 2024-01-01.
innamestring- Only return items whose name contains this text.
maxstring- Upper bound for the chosen sort field, inclusive: Unix epoch seconds or a number or text depending on the sort (see sort). Ignored by sorts without min/max.
minstring- Lower bound for the chosen sort field, inclusive: Unix epoch seconds or a number or text depending on the sort (see sort). Ignored by sorts without min/max.
orderstring- Sort direction: desc (default) or asc.one of
descasc pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
sortstring- Field to sort by (default reputation): reputation (reputation; min/max are a number), creation (creation date; min/max are Unix epoch seconds), name (name; min/max are text), modified (last modified date; min/max are Unix epoch seconds).one of
reputationcreationnamemodified todateinteger- Only include items dated on or before this time, as Unix epoch seconds, e.g. 1735689599 for 2024-12-31.
stackexchange_users_moderators_listList users with moderator powers on a site.Read-onlyList Moderators
List users with moderator powers on a site. Returns user_id, display_name, reputation, user_type and link. Use stackexchange_users_moderators_list for everyone with moderator powers. Use stackexchange_users_elected_moderators_list for elected moderators only.
Inputs
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
filterstring- Response filter: a built-in name (default, withbody to add body fields, none, total for just the count) or a custom filter id from stackexchange_filter_create. Leave empty for the default filter.
fromdateinteger- Only include items dated on or after this time, as Unix epoch seconds, e.g. 1704067200 for 2024-01-01.
maxstring- Upper bound for the chosen sort field, inclusive: Unix epoch seconds or a number or text depending on the sort (see sort). Ignored by sorts without min/max.
minstring- Lower bound for the chosen sort field, inclusive: Unix epoch seconds or a number or text depending on the sort (see sort). Ignored by sorts without min/max.
orderstring- Sort direction: desc (default) or asc.one of
descasc pageinteger- Page of results to return, starting at 1 (default 1). The response's has_more tells you whether another page exists.
pagesizeinteger- Number of items per page, 0 to 100 (default 30).
sortstring- Field to sort by (default reputation): reputation (reputation; min/max are a number), creation (creation date; min/max are Unix epoch seconds), name (name; min/max are text), modified (last modified date; min/max are Unix epoch seconds).one of
reputationcreationnamemodified todateinteger- Only include items dated on or before this time, as Unix epoch seconds, e.g. 1735689599 for 2024-12-31.
stackexchange_answer_acceptMark an answer as accepted on a question the signed-in user asked.WriteAccept Answer
Mark an answer as accepted on a question the signed-in user asked. Returns the accepted answer. Use this only on answers to the user's own questions, when no other answer is accepted. Use stackexchange_answer_accept_undo to remove the accept. Requires the write_access scope.
Inputs
answer_idintegerrequired- ID of the answer.
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
previewboolean- true to validate the request and return the would-be result without saving anything (default false).
stackexchange_answer_accept_undoRemove the accept mark the signed-in user placed on an answer.WriteUndo Accept Answer
Remove the accept mark the signed-in user placed on an answer. Returns the answer, no longer accepted. Use this to reverse stackexchange_answer_accept. Requires the write_access scope.
Inputs
answer_idintegerrequired- ID of the answer.
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
previewboolean- true to validate the request and return the would-be result without saving anything (default false).
stackexchange_answer_createPost a new answer to a question as the signed-in user.WriteCreate Answer
Post a new answer to a question as the signed-in user. Returns the created answer, including answer_id. Use this to answer a question. Set preview=true to validate without posting. Requires the write_access scope.
Inputs
bodystringrequired- Full answer body in Markdown.
question_idintegerrequired- ID of the question.
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
previewboolean- true to validate the request and return the would-be result without saving anything (default false).
stackexchange_answer_downvoteCast a downvote on a answer as the signed-in user.WriteDownvote Answer
Cast a downvote on a answer as the signed-in user. Returns the answer. Use stackexchange_answer_downvote to vote down. Use stackexchange_answer_downvote_undo to retract it. Requires the write_access scope and the site's vote-down privilege.
Inputs
answer_idintegerrequired- ID of the answer.
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
previewboolean- true to validate the request and return the would-be result without saving anything (default false).
stackexchange_answer_downvote_undoRetract the signed-in user's downvote on a answer.WriteUndo Answer Downvote
Retract the signed-in user's downvote on a answer. Returns the answer. Use this to reverse stackexchange_answer_downvote. Requires the write_access scope.
Inputs
answer_idintegerrequired- ID of the answer.
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
previewboolean- true to validate the request and return the would-be result without saving anything (default false).
stackexchange_answer_editEdit the body of an existing answer as the signed-in user.WriteEdit Answer
Edit the body of an existing answer as the signed-in user. Returns the edited answer. Use this to change an answer's body. Requires the write_access scope and permission to edit the post.
Inputs
answer_idintegerrequired- ID of the answer.
bodystringrequired- Full answer body in Markdown.
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
commentstring- Edit summary shown in the post's revision history.
previewboolean- true to validate the request and return the would-be result without saving anything (default false).
stackexchange_answer_upvoteCast an upvote on a answer as the signed-in user.WriteUpvote Answer
Cast an upvote on a answer as the signed-in user. Returns the answer. Use stackexchange_answer_upvote to vote up. Use stackexchange_answer_upvote_undo to retract it. Requires the write_access scope and the site's vote-up privilege.
Inputs
answer_idintegerrequired- ID of the answer.
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
previewboolean- true to validate the request and return the would-be result without saving anything (default false).
stackexchange_answer_upvote_undoRetract the signed-in user's upvote on a answer.WriteUndo Answer Upvote
Retract the signed-in user's upvote on a answer. Returns the answer. Use this to reverse stackexchange_answer_upvote. Requires the write_access scope.
Inputs
answer_idintegerrequired- ID of the answer.
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
previewboolean- true to validate the request and return the would-be result without saving anything (default false).
stackexchange_comment_createAdd a comment to a question or answer as the signed-in user.WriteCreate Comment
Add a comment to a question or answer as the signed-in user. Returns the created comment, including comment_id. Use this to comment on any post. Set preview=true to validate without posting. Requires the write_access scope and enough reputation to comment.
Inputs
bodystringrequired- Comment text in Markdown (the comment subset: links, bold, italic and inline code).
post_idintegerrequired- ID of the post.
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
previewboolean- true to validate the request and return the would-be result without saving anything (default false).
stackexchange_comment_editEdit the text of a comment the signed-in user wrote.WriteEdit Comment
Edit the text of a comment the signed-in user wrote. Returns the edited comment. Use this to change a comment's text. Requires the write_access scope; comments can usually only be edited for a short time after posting.
Inputs
bodystringrequired- Comment text in Markdown (the comment subset: links, bold, italic and inline code).
comment_idintegerrequired- ID of the comment.
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
previewboolean- true to validate the request and return the would-be result without saving anything (default false).
stackexchange_comment_upvoteCast an upvote on a comment as the signed-in user.WriteUpvote Comment
Cast an upvote on a comment as the signed-in user. Returns the comment. Use stackexchange_comment_upvote to vote up a comment. Use stackexchange_comment_upvote_undo to retract it. Requires the write_access scope.
Inputs
comment_idintegerrequired- ID of the comment.
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
previewboolean- true to validate the request and return the would-be result without saving anything (default false).
stackexchange_comment_upvote_undoRetract the signed-in user's upvote on a comment.WriteUndo Comment Upvote
Retract the signed-in user's upvote on a comment. Returns the comment. Use this to reverse stackexchange_comment_upvote. Requires the write_access scope.
Inputs
comment_idintegerrequired- ID of the comment.
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
previewboolean- true to validate the request and return the would-be result without saving anything (default false).
stackexchange_question_bookmarkBookmark (previously "favorite") a question for the signed-in user.WriteBookmark Question
Bookmark (previously "favorite") a question for the signed-in user. Returns the bookmarked question. Use stackexchange_question_bookmark to save a question. Use stackexchange_question_bookmark_undo to remove it, and stackexchange_me_favorites_list to list bookmarks. Requires the write_access scope.
Inputs
question_idintegerrequired- ID of the question.
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
previewboolean- true to validate the request and return the would-be result without saving anything (default false).
stackexchange_question_bookmark_undoRemove a question from the signed-in user's bookmarks.WriteRemove Question Bookmark
Remove a question from the signed-in user's bookmarks. Returns the question. Use this to reverse stackexchange_question_bookmark. Requires the write_access scope.
Inputs
question_idintegerrequired- ID of the question.
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
previewboolean- true to validate the request and return the would-be result without saving anything (default false).
stackexchange_question_createPost a new question on a site as the signed-in user.WriteCreate Question
Post a new question on a site as the signed-in user. Returns the created question, including question_id and link. Use stackexchange_questions_similar first to avoid duplicates. Set preview=true to validate without posting. Requires the write_access scope; low-quality checks that would show a CAPTCHA on the site make the call fail.
Inputs
bodystringrequired- Full question body in Markdown.
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
tagsstringrequired- Semicolon-separated tag names for the question (1 to 5), e.g. python;pandas;dataframe.
titlestringrequired- Question title. Make it a specific, clear question.
previewboolean- true to validate the request and return the would-be result without saving anything (default false).
stackexchange_question_downvoteCast a downvote on a question as the signed-in user.WriteDownvote Question
Cast a downvote on a question as the signed-in user. Returns the question. Use stackexchange_question_downvote to vote down. Use stackexchange_question_downvote_undo to retract it. Requires the write_access scope and the site's vote-down privilege.
Inputs
question_idintegerrequired- ID of the question.
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
previewboolean- true to validate the request and return the would-be result without saving anything (default false).
stackexchange_question_downvote_undoRetract the signed-in user's downvote on a question.WriteUndo Question Downvote
Retract the signed-in user's downvote on a question. Returns the question. Use this to reverse stackexchange_question_downvote. Requires the write_access scope.
Inputs
question_idintegerrequired- ID of the question.
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
previewboolean- true to validate the request and return the would-be result without saving anything (default false).
stackexchange_question_editEdit the title, body and tags of an existing question as the signed-in user.WriteEdit Question
Edit the title, body and tags of an existing question as the signed-in user. Returns the edited question. Use this to change a question. Title, body and tags replace the current values, so send all three. Requires the write_access scope and permission to edit the post.
Inputs
bodystringrequired- Full question body in Markdown.
question_idintegerrequired- ID of the question.
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
tagsstringrequired- Semicolon-separated tag names for the question (1 to 5), e.g. python;pandas;dataframe.
titlestringrequired- Question title. Make it a specific, clear question.
commentstring- Edit summary shown in the post's revision history.
previewboolean- true to validate the request and return the would-be result without saving anything (default false).
stackexchange_question_upvoteCast an upvote on a question as the signed-in user.WriteUpvote Question
Cast an upvote on a question as the signed-in user. Returns the question. Use stackexchange_question_upvote to vote up. Use stackexchange_question_upvote_undo to retract it. Requires the write_access scope and the site's vote-up privilege.
Inputs
question_idintegerrequired- ID of the question.
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
previewboolean- true to validate the request and return the would-be result without saving anything (default false).
stackexchange_question_upvote_undoRetract the signed-in user's upvote on a question.WriteUndo Question Upvote
Retract the signed-in user's upvote on a question. Returns the question. Use this to reverse stackexchange_question_upvote. Requires the write_access scope.
Inputs
question_idintegerrequired- ID of the question.
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
previewboolean- true to validate the request and return the would-be result without saving anything (default false).
stackexchange_answer_deleteDelete an answer the signed-in user owns.DestructiveDelete Answer
Delete an answer the signed-in user owns. Returns no items on success; deleted answers cannot be restored through the API. Use this only on the user's own answers. Requires the write_access scope.
- Idempotent
Inputs
answer_idintegerrequired- ID of the answer.
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
previewboolean- true to validate the request and return the would-be result without saving anything (default false).
stackexchange_comment_deleteDelete a comment the signed-in user wrote.DestructiveDelete Comment
Delete a comment the signed-in user wrote. Returns no items on success. Use this to remove the user's own comment. Requires the write_access scope.
- Idempotent
Inputs
comment_idintegerrequired- ID of the comment.
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
previewboolean- true to validate the request and return the would-be result without saving anything (default false).
stackexchange_question_deleteDelete a question the signed-in user owns.DestructiveDelete Question
Delete a question the signed-in user owns. Returns no items on success; deleted questions cannot be restored through the API. Use this only on the user's own questions; the site's own deletion limits still apply. Requires the write_access scope.
- Idempotent
Inputs
question_idintegerrequired- ID of the question.
sitestringrequired- Stack Exchange site to use, as its api_site_parameter (for example stackoverflow, superuser, serverfault, askubuntu, math) or full domain (stackoverflow.com). Get the values from stackexchange_sites_list.
previewboolean- true to validate the request and return the would-be result without saving anything (default false).
No tools match.