Stack Exchange is a network of Q&A communities including Stack Overflow, Server Fault, Super User, and more. This integration uses managed OAuth through ClawLink to search questions, retrieve answers, track reputation, browse tags, and analyze community activity across the entire Stack Exchange network.
Step 1: InstallStep 2: Pair AccountStep 3: Connect Stack Exchange
_App-specific connection GIF coming soon_Run the install command in OpenClawSign in and approve the deviceOpen the dashboard and connect Stack Exchange
text
┌─────────────────┐ ┌──────────────┐ ┌──────────────────┐
│ OpenClaw │────▶│ ClawLink │────▶│ Stack Exchange API│
│ (User Chat) │ │ (OAuth) │ │ │
└─────────────────┘ └──────────────┘ └──────────────────┘
bash
openclaw plugins install clawhub:clawlink-plugin
openclaw config set tools.alsoAllow '["clawlink-plugin"]' --strict-json
openclaw gateway restart
Search for questions on Stack Overflow:
text
clawlink_execute_tool --integration stack-exchange --tool stack_exchange_get_search_results --args '{"site": "stackoverflow", "tagged": "python", "intitle": "async await"}'
Get answers for a specific question:
text
clawlink_execute_tool --integration stack-exchange --tool stack_exchange_get_question_answers --args '{"ids": "12345678", "site": "stackoverflow"}'
Search with advanced filters:
text
clawlink_execute_tool --integration stack-exchange --tool stack_exchange_search_advanced --args '{"site": "stackoverflow", "q": "docker compose networking", "accepted": true, "sort": "votes"}'
Stack Exchange uses OAuth 2.0 managed by ClawLink. No API keys are needed. Some endpoints (user-specific data, inbox, achievements) require authentication. Authorize access through the ClawLink dashboard.
Connect at: https://claw-link.dev/dashboard?add=stack-exchange
List connections:
text
clawlink_list_integrations
Verify connection:
text
clawlink_execute_tool --integration stack-exchange --tool stack_exchange_get_me --args '{"site": "stackoverflow"}'
Reconnect: If a connection expires, visit the dashboard URL above and reconnect Stack Exchange.
quota_remaining in responses.ToolDescriptionModestack_exchange_get_search_resultsSearch questions by tags, title, or keywordsReadstack_exchange_search_advancedAdvanced search with filters (accepted, closed, body, title, user, views)Readstack_exchange_search_excerptsSearch with highlighted excerpt snippetsReadstack_exchange_find_similar_questionsFind questions similar to a hypothetical title and tagsRead
ToolDescriptionModestack_exchange_get_questionsList questions (newest, most voted, date-filtered)Readstack_exchange_get_questions_by_idsRetrieve specific questions by ID (up to 100)Readstack_exchange_get_question_answersRetrieve all answers for specific question IDsReadstack_exchange_get_question_commentsRetrieve comments on specific questionsReadstack_exchange_get_question_timelineRetrieve timeline events for questionsReadstack_exchange_get_question_flag_optionsFetch valid flag options for a questionReadstack_exchange_get_question_close_optionsFetch close reason options for a questionReadstack_exchange_get_linked_questionsFind questions linked to specific question IDsReadstack_exchange_get_questions_by_answer_idsFind parent questions for specific answer IDsReadstack_exchange_list_featured_questionsList all questions with active bountiesReadstack_exchange_list_no_answer_questionsList questions with zero answersReadstack_exchange_list_unanswered_questionsList questions lacking upvoted answersRead
ToolDescriptionModestack_exchange_list_answersList all undeleted answers from a siteReadstack_exchange_get_answers_by_idsRetrieve specific answers by ID (up to 100)Readstack_exchange_get_answer_commentsRetrieve comments on specific answersReadstack_exchange_get_answer_flag_optionsFetch valid flag options for an answerReadstack_exchange_render_answerRender a preview of an answer (markdown to HTML)Read
ToolDescriptionModestack_exchange_list_postsList all posts (questions and answers) from a siteReadstack_exchange_get_posts_by_idsRetrieve posts by ID (handles both questions and answers)Readstack_exchange_get_post_commentsRetrieve comments on posts regardless of typeReadstack_exchange_get_post_suggested_editsRetrieve suggested edits on specific postsReadstack_exchange_get_revisions_by_idsRetrieve edit history for postsRead
ToolDescriptionModestack_exchange_get_commentsRetrieve recent comments from a siteReadstack_exchange_get_comments_by_idsRetrieve specific comments by ID (up to 100)Readstack_exchange_get_comment_flag_optionsFetch valid flag options for a commentRead
ToolDescriptionModestack_exchange_list_tagsList all tags on a site (by popularity, activity, name)Readstack_exchange_get_tag_infoRetrieve detailed info about specific tagsReadstack_exchange_get_tag_faqRetrieve frequently asked questions for tagsReadstack_exchange_get_tag_synonymsRetrieve synonyms for specific tagsReadstack_exchange_get_tag_wikisRetrieve wiki content for tagsReadstack_exchange_get_tag_top_answerersTop 30 answerers for a tag (all-time or 30 days)Readstack_exchange_get_tag_top_askersTop askers for a tag (all-time or 30 days)Readstack_exchange_get_related_tagsFind tags most related to specified tagsReadstack_exchange_list_tag_synonymsList all tag synonyms on a siteReadstack_exchange_list_tag_badgesList badges awarded for tag participationReadstack_exchange_list_moderator_only_tagsList tags only moderators can useReadstack_exchange_list_required_tagsList required tags for questionsRead
ToolDescriptionModestack_exchange_list_badgesList all available badgesReadstack_exchange_list_named_badgesList explicitly named (general) badgesReadstack_exchange_list_badge_recipientsList recently awarded badgesReadstack_exchange_get_badges_by_idsRetrieve specific badges by IDReadstack_exchange_get_badge_recipients_by_idsList recent recipients of specific badgesRead
ToolDescriptionModestack_exchange_list_usersList all users on a siteReadstack_exchange_get_users_by_idsRetrieve user profiles by IDReadstack_exchange_get_user_answersList answers posted by specific usersReadstack_exchange_get_user_questionsList questions asked by specific usersReadstack_exchange_get_user_postsList all posts by specific usersReadstack_exchange_get_user_commentsList comments by specific usersReadstack_exchange_get_user_comments_to_userList comments between two specific usersReadstack_exchange_get_user_favoritesList questions favorited by usersReadstack_exchange_get_user_badgesList badges earned by usersReadstack_exchange_get_user_tagsList tags users are active inReadstack_exchange_get_user_timelineRetrieve timeline of user actionsReadstack_exchange_get_user_privilegesList privileges a user has earnedReadstack_exchange_get_user_mentionsList comments mentioning specific usersReadstack_exchange_get_user_merge_historyTrack account merge history for usersReadstack_exchange_get_user_associated_accountsList all SE accounts for usersReadstack_exchange_get_user_suggested_editsList suggested edits by usersRead
ToolDescriptionModestack_exchange_get_user_reputationRetrieve reputation changes for usersReadstack_exchange_get_user_reputation_historyRetrieve public reputation history for usersReadstack_exchange_get_user_full_reputation_historyRetrieve full (including private) reputation historyRead
ToolDescriptionModestack_exchange_get_user_top_tagsTop 30 tags by combined score for a userReadstack_exchange_get_user_top_answer_tagsTop 30 tags by answer score for a userReadstack_exchange_get_user_top_question_tagsTop 30 tags by question score for a userReadstack_exchange_get_user_top_answers_in_tagsTop 30 answers by a user in specific tagsReadstack_exchange_get_user_top_questions_in_tagsTop 30 questions by a user in specific tagsReadstack_exchange_get_user_unanswered_questionsUnanswered questions by specific usersReadstack_exchange_get_user_unaccepted_questionsQuestions with no accepted answer by usersReadstack_exchange_get_user_no_answer_questionsQuestions with zero answers by usersReadstack_exchange_get_user_featured_questionsQuestions with bounties by specific usersRead
ToolDescriptionModestack_exchange_get_user_notificationsRetrieve notifications for a userReadstack_exchange_get_user_unread_notificationsRetrieve unread notifications for a userReadstack_exchange_get_user_inboxRetrieve a user's inboxReadstack_exchange_get_user_unread_inboxRetrieve unread inbox items for a userRead
ToolDescriptionModestack_exchange_get_meRetrieve the authenticated user's profileReadstack_exchange_get_my_achievementsRetrieve recent network-wide achievementsReadstack_exchange_get_my_associated_accountsList all SE accounts for the authenticated userReadstack_exchange_get_my_postsList posts owned by the authenticated userReadstack_exchange_get_my_questionsList questions owned by the authenticated userReadstack_exchange_get_my_featured_questionsList user's questions with active bountiesReadstack_exchange_get_my_mentionsList comments mentioning the authenticated userReadstack_exchange_get_my_merge_historyRetrieve account merge historyReadstack_exchange_get_my_network_activityRetrieve network-wide activity summaryReadstack_exchange_get_my_no_answer_questionsList user's questions with zero answersReadstack_exchange_get_my_postsList all posts (Q&A) by the authenticated userReadstack_exchange_get_my_privilegesList privileges for the authenticated userReadstack_exchange_get_my_reputationRetrieve reputation changesReadstack_exchange_get_my_reputation_historyRetrieve chronological reputation historyReadstack_exchange_get_my_suggested_editsList suggested edits by the userReadstack_exchange_get_my_tag_preferencesRetrieve favorite and ignored tagsReadstack_exchange_get_my_tagsList tags the user is active inReadstack_exchange_get_my_timelineRetrieve timeline of user actionsReadstack_exchange_get_my_top_answer_tagsTop 30 tags by answer scoreReadstack_exchange_get_my_top_answers_in_tagsTop 30 answers in specific tagsReadstack_exchange_get_my_top_question_tagsTop 30 tags by question scoreReadstack_exchange_get_my_top_questions_in_tagsTop 30 questions in specific tagsReadstack_exchange_get_my_top_tagsTop 30 tags by combined scoreReadstack_exchange_get_my_unaccepted_questionsUser's questions with no accepted answerReadstack_exchange_get_my_unanswered_questionsUser's questions considered unansweredReadstack_exchange_list_unanswered_questions_my_tagsUnanswered questions in the user's tagsRead
ToolDescriptionModestack_exchange_get_collectivesList all collectives on a siteReadstack_exchange_get_collectives_by_slugsRetrieve collectives by slug identifiersReadstack_exchange_get_collective_questionsRetrieve questions for a collectiveReadstack_exchange_get_collective_answersRetrieve answers for a collectiveReadstack_exchange_get_collective_usersList members of a collectiveReadstack_exchange_get_collective_tagsRetrieve tags associated with collectivesRead
ToolDescriptionModestack_exchange_list_suggested_editsList all suggested edits on a siteReadstack_exchange_get_suggested_edits_by_idsRetrieve specific suggested edits by IDRead
ToolDescriptionModestack_exchange_get_sitesList all Stack Exchange network sites with API identifiersReadstack_exchange_get_site_infoRetrieve statistics and info about a siteReadstack_exchange_get_eventsRetrieve recent events stream (15-minute window)Readstack_exchange_list_errorsList all API error codesReadstack_exchange_list_privilegesList all earnable privileges on a siteReadstack_exchange_list_moderatorsList users with moderation powersReadstack_exchange_list_elected_moderatorsList elected moderators onlyRead
ToolDescriptionModestack_exchange_create_filterCreate a custom response filterWritestack_exchange_get_filters_by_idsRetrieve filter field definitionsReadstack_exchange_get_access_tokensVerify and inspect OAuth access tokensRead
Search Stack Overflow for Python async questions:
json
{
"tool": "stack_exchange_get_search_results",
"args": {
"site": "stackoverflow",
"intitle": "async await",
"tagged": "python",
"sort": "votes"
}
}
Get answers for a specific question:
json
{
"tool": "stack_exchange_get_question_answers",
"args": {
"ids": "12345678",
"site": "stackoverflow",
"sort": "votes",
"order": "desc"
}
}
Advanced search with multiple filters:
json
{
"tool": "stack_exchange_search_advanced",
"args": {
"site": "stackoverflow",
"q": "kubernetes pod crashloopbackoff",
"accepted": true,
"sort": "relevance"
}
}
Get user's top tags:
json
{
"tool": "stack_exchange_get_my_top_tags",
"args": {
"site": "stackoverflow"
}
}
List all Stack Exchange sites:
json
{
"tool": "stack_exchange_get_sites",
"args": {}
}
clawlink_list_integrations to confirm stack-exchange is connected.clawlink_list_tools --integration stack-exchange to see the live catalog.stack_exchange_get_sites to discover available Stack Exchange sites and their API identifiers.stack_exchange_get_search_results or stack_exchange_search_advanced to find relevant content.stack_exchange_get_question_answers to retrieve solutions.text
Read Flow:
get_sites → get_search_results → get_questions_by_ids → get_question_answers
User Flow:
get_me → get_my_questions / get_my_reputation / get_my_tags
Tag Flow:
list_tags → get_tag_info → get_tag_faq / get_tag_top_answerers
site parameter is required for most operations. Use values like stackoverflow, serverfault, superuser, askubuntu, etc. Obtain the full list from stack_exchange_get_sites.quota_remaining in responses to avoid hitting the limit.get_events are only accessible for 15 minutes after they occurred.get_site_info is heavily cached; query sparingly (no more than once per hour).read_inbox OAuth scope.Status / ErrorMeaning400 Bad RequestInvalid parameter or missing required field401 UnauthorizedOAuth token expired or missing for authenticated endpoints403 ForbiddenAccess denied; check OAuth scopes404 Not FoundInvalid question, answer, or user ID429 Too Many RequestsDaily API quota exhausted; wait until quota resets500 Internal Server ErrorStack Exchange API issue; retry later
Run clawlink_list_tools --integration stack-exchange to verify the integration is active. If empty, reconnect at https://claw-link.dev/dashboard?add=stack-exchange.
Ensure the site parameter is correct (e.g., stackoverflow not stack-overflow). Verify that tagged or intitle is provided for get_search_results (at least one is required).
The Stack Exchange API enforces a daily quota. Monitor quota_remaining in each response. Consider creating a custom filter with create_filter to reduce response sizes.
Authenticated endpoints require a valid OAuth connection. Ensure you have connected your Stack Exchange account and granted the read_inbox scope.
Powered by ClawLink -- an integration hub for OpenClaw
