Stack Overflow Engineering Questions Search
Search Stack Overflow questions by keyword and tags with votes, answer counts, accepted status, author attribution, and thread URLs.
curl -sG "https://api.agentapigate.ai/v1/dev/stackoverflow/questions_search" \ --data-urlencode "query=typescript zod" \ --data-urlencode "sort=votes" \ --data-urlencode "limit=10" \ --data-urlencode "format=md" \ -H "Authorization: Bearer aag_live_YOUR_KEY" \ -H "X-AAG-Max-Cost: 0.0100"
# Stack Overflow Engineering Questions Search (`dev.stackoverflow.questions_search`) **query**: typescript zod · **license**: CC BY-SA 4.0 · **count**: 10 ## questions - [1] question_id: 75373940, title: How do I create a zod object with dynamic keys?, is_answered: true, score: 65, answer_count: 1 - [2] question_id: 73582246, title: Zod Schema: How to make a field optional OR have a minimum string contraint?, is_answered: true, score: 64, answer_count: 7 - [3] question_id: 75317224, title: How to validate a string literal type using zod, is_answered: true, score: 57, answer_count: 5 - [4] question_id: 73695535, title: How to check confirm password with zod, is_answered: true, score: 54, answer_count: 4 - [5] question_id: 71782572, title: How can I create a schema with Zod that validates that the value is using the type Schema?, is_answered: true, score: 44, answer_count: 7 - [6] question_id: 71477015, title: Specify a Zod schema with a non-optional but possibly undefined field, is_answered: true, score: 43, answer_count: 4 - [7] question_id: 71185664, title: Why does Zod make all my schema fields optional?, is_answered: true, score: 42, answer_count: 5 - [8] question_id: 75157299, title: How can zod date type accept ISO date strings?, is_answered: true, score: 36, answer_count: 6 - [9] question_id: 73825273, title: Creating a zod enum from an object, is_answered: true, score: 29, answer_count: 5 - [10] question_id: 70415330, title: Do not allow extra properties with zod parse, is_answered: true, score: 28, answer_count: 3
Endpoint Parameters, Cost & Token Economy Reference
Endpoint ID:dev.stackoverflow.questions_search · Method: GET| Parameter | Type | Req | Sample / Default | Description |
|---|---|---|---|---|
| query | string | required | typescript zod | Search query (e.g. "typescript zod", "postgres index") |
| tagged | string | optional | — | Optional semicolon-separated tags (e.g. "typescript;zod") |
| sort | string | optional | votes | Sort order |
| limit | number | optional | 10 | Max questions (1-25) |
| format | enum | optional | json | compact | md | Response format; compact or md cuts LLM tokens. |
| dry_run | 0 | 1 | optional | 1 | Returns exact pre-flight price quote & validation at $0.00 cost. |
| Access Rail / Metric | Value | Policy & SLA |
|---|---|---|
| API Key (PAYG) | $0.0010 / call | $0/mo · Balance never expires |
| Remote MCP Tool | dev_stackoverflow_questions_search | OAuth 2.1 Hub & /mcp/intel |
| x402 Base USDC | $0.0020 / call | Zero-signup USDC enabled |
| P50 Latency | 114 ms | $0 billed on empty or 4xx/5xx |
| Token Economy | 2662t → 411t (-85%) | Partner credit: eligible |
More dev.stackoverflow Sibling Endpoints
Frequently Asked Questions
How do I call Stack Overflow Engineering Questions Search (dev.stackoverflow.questions_search) over REST and Remote MCP?
Send GET requests to https://api.agentapigate.ai/v1/dev/stackoverflow/questions_search with an aag_live_* / aag_agent_* Bearer key, pay per call via x402 USDC, or call MCP tool dev_stackoverflow_questions_search on https://mcp.agentapigate.ai/mcp.
What does dev.stackoverflow.questions_search cost per call and are failed calls billed?
Each successful HTTP 200 response costs $0.001 USD from a non-expiring PAYG balance ($0/month minimum). Upstream errors, empty responses, and ?dry_run=1 pre-flight quotes always bill $0.00.
How does ?format=md or ?format=compact optimize AI agent token usage on dev.stackoverflow.questions_search?
Passing ?format=md transforms the response into normalized Markdown (~411 tokens vs ~2662 raw tokens, saving 85% of LLM context budget) while preserving structured JSON via ?format=json.
Can I restrict an AI agent key to only intel endpoints with a daily USD cap?
Yes. Create a scoped aag_agent_* sub-key via POST /v1/keys with allowed_packs: ["intel"], optional allowed_endpoints: ["dev.stackoverflow.questions_search"], read_only: true, and a hard daily_cap_usd enforced atomically in Redis.