AgentAPIGate
Back to Catalog
GET /v1/dev/stackoverflow/question_answersPack: intel·MCP Tool: dev_stackoverflow_question_answers

Stack Overflow Question Accepted & Top Answers

Fetch top-voted and accepted Stack Overflow answers for a question ID or URL with clean body text and CC BY-SA author attribution.

API Key Price:$0.0010 / call
x402 Base USDC:$0.0020 / call
Partner Credit:eligible
1. Parameters & Controls
Stack Overflow numeric question ID (e.g. 11227809) or full question URL
Sort order
Max answers (1-20)
Get $0.25 Free Key →
curl -sG "https://api.agentapigate.ai/v1/dev/stackoverflow/question_answers" \
  --data-urlencode "question_id=11227809" \
  --data-urlencode "sort=votes" \
  --data-urlencode "limit=5" \
  --data-urlencode "format=md" \
  -H "Authorization: Bearer aag_live_YOUR_KEY" \
  -H "X-AAG-Max-Cost: 0.0100"
1-Click Agent IDE Install
Add to Cursor (1-Click OAuth)
-97% tokens
# Stack Overflow Question Accepted & Top Answers (`dev.stackoverflow.question_answers`)
**question_id**: 11227809 · **license**: CC BY-SA 4.0 · **count**: 5

## answers
- [1] answer_id: 11227902, is_accepted: true, score: 35295, owner_name: Mysticial, owner_link: https://stackoverflow.com/users/922184/mysticial
- [2] answer_id: 11227877, is_accepted: false, score: 4767, owner_name: Daniel Fischer, owner_link: https://stackoverflow.com/users/1011995/daniel-fischer
- [3] answer_id: 11237235, is_accepted: false, score: 3860, owner_name: WiSaGaN, owner_link: https://stackoverflow.com/users/866732/wisagan
- [4] answer_id: 11303693, is_accepted: false, score: 2672, owner_name: vulcan raven, owner_link: https://stackoverflow.com/users/863980/vulcan-raven
- [5] answer_id: 12853037, is_accepted: false, score: 2214, owner_name: caf, owner_link: https://stackoverflow.com/users/134633/caf

Endpoint Parameters, Cost & Token Economy Reference

Endpoint ID: dev.stackoverflow.question_answers · Method: GET
ParameterTypeReqSample / DefaultDescription
question_idstringrequired11227809Stack Overflow numeric question ID (e.g. 11227809) or full question URL
sortstringoptionalvotesSort order
limitnumberoptional5Max answers (1-20)
formatenumoptionaljson | compact | mdResponse format; compact or md cuts LLM tokens.
dry_run0 | 1optional1Returns exact pre-flight price quote & validation at $0.00 cost.
Access Rail / MetricValuePolicy & SLA
API Key (PAYG)$0.0010 / call$0/mo · Balance never expires
Remote MCP Tooldev_stackoverflow_question_answersOAuth 2.1 Hub & /mcp/intel
x402 Base USDC$0.0020 / callZero-signup USDC enabled
P50 Latency78 ms$0 billed on empty or 4xx/5xx
Token Economy7150t → 243t (-97%)Partner credit: eligible

More dev.stackoverflow Sibling Endpoints

Frequently Asked Questions

How do I call Stack Overflow Question Accepted & Top Answers (dev.stackoverflow.question_answers) over REST and Remote MCP?

Send GET requests to https://api.agentapigate.ai/v1/dev/stackoverflow/question_answers with an aag_live_* / aag_agent_* Bearer key, pay per call via x402 USDC, or call MCP tool dev_stackoverflow_question_answers on https://mcp.agentapigate.ai/mcp.

What does dev.stackoverflow.question_answers 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.question_answers?

Passing ?format=md transforms the response into normalized Markdown (~243 tokens vs ~7150 raw tokens, saving 97% 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.question_answers"], read_only: true, and a hard daily_cap_usd enforced atomically in Redis.