Search Stack Exchange Questions
stackexchange_search_questionsSearch questions across a Stack Exchange site. Returns ranked questions with title, score, answer count, accepted status, tags, and excerpt — no bodies at this stage. Results supply question_id values for stackexchange_get_thread, which fetches the full question body and all answers. Use the site parameter to target a specific community (e.g. "stackoverflow", "superuser", "unix"); call stackexchange_list_sites to discover valid site values.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | Stack Exchange site to search — use the api_site_parameter value (e.g. "stackoverflow", "superuser", "serverfault"). Defaults to "stackoverflow". Call stackexchange_list_sites to discover valid values. | stackoverflow |
| sort | No | Result ordering: "relevance" (default, best match), "votes" (highest score first), "activity" (most recently active), "newest" (most recently created). | relevance |
| tags | No | Filter results to questions with all specified tags. | |
| query | Yes | Full-text search query (e.g. "python async generator send value"). | |
| minScore | No | Minimum question score — excludes questions with lower scores. Setting minScore orders results by score (votes), which may differ from the requested sort. | |
| pageSize | No | Number of results to return (1–30, default 10). | |
| acceptedOnly | No | When true, return only questions that have an accepted answer. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cap | No | The pageSize cap applied to this request. | |
| error | No | Present when the call failed. Absent on success. | |
| shown | No | Number of results returned. | |
| notice | No | Actionable guidance when results are empty or filtered. | |
| quotaMax | No | Maximum API quota calls per day (300 keyless, ~10,000 with API key). | |
| questions | No | Questions matching the search query, ordered by the specified sort. | |
| truncated | No | True when results were capped at pageSize. | |
| attribution | No | Content license notice. Stack Exchange content is licensed under CC BY-SA 4.0 and requires attribution. | |
| quotaRemaining | No | Remaining API quota calls for the current day. |