# x402 Stack Overflow Search API

> x402 Stack Overflow Search API is a paid API for AI agents from workspace-x402-paywall.onrender.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-11).

Searches Stack Overflow questions and answers via a pay-per-call endpoint accepting USDC micropayments on Base or Solana mainnet

## Facts

- Endpoint: GET https://workspace-x402-paywall.onrender.com/dev/stackoverflow?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-stack-overflow-search-api-82d7db23
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Y8w9D4D8hRjANnphkUSyM

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 x402-stack-overflow-search-api-82d7db23
```

Example prompt: Search Stack Overflow for 'how to handle async/await errors in Node.js' and return the top results with their question titles and answer summaries.

## When to prefer this

Choose this endpoint when an AI agent needs to programmatically search Stack Overflow content on a pay-per-use basis without managing a Stack Exchange API key, and when the agent operates in a crypto-payment-enabled environment using x402 on Base or Solana mainnet.

## Known failure modes

- Missing required 'q' parameter returns an error
- Payment not provided or insufficient USDC results in 402 Payment Required
- Query returns no results for obscure or misspelled terms
- Rate limiting or server unavailability on the hosted Render instance
- Invalid fields parameter may return incomplete or default field sets

## How this service works

66 pay-per-call APIs: AI text/image generation ($0.01), Polymarket odds, crypto prices, DeFi yields, FX rates, weather, IP/geo, FBI wanted, SEC tickers, clinical trials, 250M academic papers, Stack Overflow, meme-coin launchpads (pump.fun, Clanker, Four.meme, SunPump), tokenized stocks, Solana top 100, and 40+ more. $0.005/call standard. USDC on Base and Solana via x402.

## Output

Returns a JSON object containing Stack Overflow search results matching the query, potentially filtered to specific fields such as question title, answer content, votes, or other post metadata as specified by the fields parameter.

## 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": "Requires a text search query string"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-stack-overflow-search-api-82d7db23/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from workspace-x402-paywall.onrender.com](https://www.zero.xyz/host/workspace-x402-paywall.onrender.com/llms.txt)
