# Stack Overflow Search via Stack Exchange API

> Stack Overflow Search via Stack Exchange API is a paid API for AI agents from api.x402node.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Searches Stack Overflow (or other Stack Exchange sites) for questions matching a query, returning titles, scores, tags, answer counts, and links.

## Facts

- Endpoint: GET https://api.x402node.dev/forum/stackoverflow
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-x402node-dev-f8bb3ecd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xTCR_qEsZnBF6eMDr1wdg

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability api-x402node-dev-f8bb3ecd
```

Example prompt: Search Stack Overflow for questions about 'Python asyncio timeout handling', filter by the python tag, and give me the top 5 results including their scores and whether they have an accepted answer.

## When to prefer this

Use this endpoint when an AI coding agent needs to find proven, community-vetted solutions to programming questions directly from Stack Overflow or other Stack Exchange communities, especially when searching for specific error messages, language-specific issues, or technical how-to questions.

## Known failure modes

- Query returns zero results if search terms are too narrow or misspelled
- Rate limits or errors from the underlying Stack Exchange API may cause failures
- Invalid site parameter returns an error or empty results
- Limit parameter out of acceptable range may cause a validation error

## How this service works

Search Stack Overflow questions via Stack Exchange API. Returns title, score, answer_count, is_answered, accepted_answer_id, tags, view_count, link, created_at, owner. Use ?q=YOUR_QUERY plus optional and tag=python and site=stackoverflow|serverfault|superuser and limit=10. Built for AI coding agents finding proven solutions and Q and A. Accepts payment on Base or Solana — either network works.

## Output

Returns a list of Stack Overflow (or other Stack Exchange site) questions matching the query, each with title, score, answer_count, is_answered, accepted_answer_id, tags, view_count, a direct link to the question, created_at timestamp, and owner information.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "q"
     ],
     "properties": {
      "q": {
       "type": "string",
       "description": "Search query (required)"
      },
      "tag": {
       "type": "string",
       "description": "Tag (optional)"
      },
      "site": {
       "type": "string",
       "description": "Site (optional)"
      },
      "limit": {
       "type": "string",
       "description": "Max results (optional)"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-x402node-dev-f8bb3ecd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.x402node.dev](https://www.zero.xyz/host/api.x402node.dev/llms.txt)
