Stack Exchange

Learn how to use Stack Exchange with Composio

Overview

SLUG

STACK_EXCHANGE

Description

Stack Exchange is a network of question-and-answer websites on topics in diverse fields, each site covering a specific topic, where questions, answers, and users are subject to a reputation award process.

Authentication Details

client_id
stringRequired
client_secret
stringRequired
oauth_redirect_uri
stringDefaults to https://backend.composio.dev/api/v1/auth-apps/add
scopes
stringDefaults to no_expiry
base_url
stringDefaults to https://api.stackexchange.com

Tools

SLUG: STACK_EXCHANGE_GET_COLLECTIVES

Tool to retrieve all collectives on a stack exchange site in alphabetical order. use when you need to list collectives for display or filtering.

Action Parameters

fromdate
integer
max
string
min
string
order
string
page
integer
pagesize
integer
site
stringRequired
sort
string
todate
integer

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: STACK_EXCHANGE_GET_COLLECTIVE_QUESTIONS

Tool to retrieve questions associated with the specified collective. use when you have a collective id and need its questions for a site.

Action Parameters

filter
string
fromdate
integer
id
stringRequired
max
integer
min
integer
order
stringDefaults to desc
page
integerDefaults to 1
pagesize
integerDefaults to 30
site
stringRequired
sort
stringDefaults to activity
todate
integer

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: STACK_EXCHANGE_GET_COLLECTIVE_TAGS

Tool to retrieve tags associated with specified collectives. use when you need collective tags for display or analysis after confirming which collectives to query.

Action Parameters

access_token
string
collective_ids
array
filter
string
key
string
page
integerDefaults to 1
pagesize
integerDefaults to 30
site
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: STACK_EXCHANGE_GET_COMMENTS

Tool to retrieve comments from a specified stack exchange site. use when you need to list comments with optional filters and sorting.

Action Parameters

filter
string
fromdate
integer
max
integer
min
integer
order
string
page
integer
pagesize
integer
site
stringRequired
sort
string
todate
integer

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: STACK_EXCHANGE_GET_COMMENT_FLAG_OPTIONS

Tool to fetch valid flag options for a given comment. use when you need to know which flags a user can raise before submitting. requires authenticated access.

Action Parameters

access_token
string
filter
string
ids
stringRequired
key
string
preview
boolean
site
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: STACK_EXCHANGE_GET_REVISIONS_BY_IDS

Tool to retrieve revisions for specific posts by their ids. use when you need to examine the edit history of posts by providing semicolon-delimited ids.

Action Parameters

filter
string
fromdate
integer
ids
stringRequired
page
integer
pagesize
integer
site
stringRequired
todate
integer

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: STACK_EXCHANGE_GET_SEARCH_RESULTS

Tool to search the site for questions meeting certain criteria. use after defining tags or keywords to locate relevant questions. at least one of 'tagged' or 'intitle' must be set.

Action Parameters

access_token
string
filter
string
fromdate
integer
intitle
string
key
string
max
integer
min
integer
nottagged
array
order
string
page
integer
pagesize
integer
site
stringRequired
sort
string
tagged
array
todate
integer

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: STACK_EXCHANGE_GET_SITES

Tool to retrieve all stack exchange sites and their api site parameter values. use when you need to discover available sites for api calls.

Action Parameters

filter
string
page
integer
pagesize
integer

Action Response

data
objectRequired
error
string
successful
booleanRequired