Stack Exchange API
Stack Exchange API for searching questions, retrieving questions and answers, inspecting users, and discovering tag FAQs across Stack Overflow and the Stack Exchange network.
Connect this API to an AI agent Browse all specs
What you can do with Stack Exchange API via MCP
Every endpoint below becomes a governed tool your AI agent (Claude, ChatGPT, or a customer-facing VX agent) can call — with scoped permissions, sandbox testing, and audit logs.
| Method | Path | Operation | Description |
|---|---|---|---|
| GET | /search/advanced |
get_search_advanced | Search questions with advanced filters Method: GET Path: /search/advanced IMPORTANT: This function has 1 REQUIRED parameter(s) and 5 OPTIONAL parameter(s) REQUIRED parameters MUST be provided OPTIONAL parameters can be omitted if not needed Parameters: Query Parameters: REQUIRED: - site: Stack Exchange site, for example `stackoverflow` OPTIONAL: - q: Search text - page: Page number - pagesize: Page size - order: Sort order - sort: Sort field |
| GET | /questions/{ids} |
get_questions_ids | Get questions by IDs Method: GET Path: /questions/{ids} IMPORTANT: This function has 2 REQUIRED parameter(s) and 1 OPTIONAL parameter(s) REQUIRED parameters MUST be provided OPTIONAL parameters can be omitted if not needed Parameters: Path Parameters: REQUIRED: - ids: Semicolon-separated question IDs Query Parameters: REQUIRED: - site: Stack Exchange site OPTIONAL: - filter: API filter |
| GET | /answers/{ids} |
get_answers_ids | Get answers by IDs Method: GET Path: /answers/{ids} IMPORTANT: This function has 2 REQUIRED parameter(s) and 1 OPTIONAL parameter(s) REQUIRED parameters MUST be provided OPTIONAL parameters can be omitted if not needed Parameters: Path Parameters: REQUIRED: - ids: Semicolon-separated answer IDs Query Parameters: REQUIRED: - site: Stack Exchange site OPTIONAL: - filter: API filter |
| GET | /users/{ids} |
get_users_ids | Get users by IDs Method: GET Path: /users/{ids} IMPORTANT: This function has 2 REQUIRED parameter(s) and 0 OPTIONAL parameter(s) REQUIRED parameters MUST be provided OPTIONAL parameters can be omitted if not needed Parameters: Path Parameters: REQUIRED: - ids: Semicolon-separated user IDs Query Parameters: REQUIRED: - site: Stack Exchange site |
| GET | /tags/{tags}/faq |
get_tags_tags_faq | Get frequently asked questions for tags Method: GET Path: /tags/{tags}/faq IMPORTANT: This function has 2 REQUIRED parameter(s) and 0 OPTIONAL parameter(s) REQUIRED parameters MUST be provided OPTIONAL parameters can be omitted if not needed Parameters: Path Parameters: REQUIRED: - tags: Semicolon-separated tags Query Parameters: REQUIRED: - site: Stack Exchange site |
Usage guide
Read access to the documented public endpoints does not require a bearer token. Register an application in the Stack Apps API dashboard if you need an API key or access token for higher quotas; pass the key using the documented `key` query parameter and always include the required `site` parameter. Official documentation: https://api.stackexchange.com/docs
How to use this spec
- Create a free VX Agents account (sandbox tools included).
- Open the marketplace and connect “Stack Exchange API” to an agent.
- Expose it as an MCP server for Claude/ChatGPT, or chat with it directly.