Stack Overflow question API
One request, one key: POST /v1/developer/stackoverflow/question. The sample below is a real response captured 20 November 2026, shortened for display (long text cut, lists cut to three items); it is not invented.
Price
2 credits a call. One call is about $0.0196 and 1,000 calls are about $19.60 at the smallest paid plan's rate.Formula A call that comes back empty is not charged.
Try it free
Runs one real call with the sample input below. No key and no sign-up; a few runs a day per visitor.
{
"url": "https://stackoverflow.com/questions/11227809/why-is-processing-a-sorted-array-faster-than-processing-an-unsorted-array"
}
What it returns
| Field | Type | Value in the sample |
|---|---|---|
url | string | https://stackoverflow.com/questions/11227809/why-is-processing-a-sorted-array-faster-than-processing-an-uns... |
platform | string | stackoverflow |
extracted_at | string | 2026-11-20T10:21:59.891321+00:00 |
text | string | In this C++ code, sorting the data (before the timed region) makes the primary loop ~6x faster: #include <a... |
title | string | Why is conditional processing of a sorted array faster than of an unsorted array? |
author_name | string | GManNickG |
author_url | string | https://stackoverflow.com/users/87234/gmannickg |
published_at | string | 2012-06-27T13:51:36+00:00 |
published_at_unix | number | 1340805096 |
modified_at | string | 2026-09-04T02:36:50+00:00 |
date_source | string | stackexchange_api |
likes | number | 27549 |
comments_count | number | 25 |
views | number | 2037789 |
content_type | string | question |
extras | object | {"answer_count":25,"accepted_answer_id":11227902,"tags":["java","c++","performance"],"bounty_amount":null,"... |
credits_used | number | 2 |
latency_ms | number | 170 |
Sample response (20 November 2026)
{
"url": "https://stackoverflow.com/questions/11227809/why-is-processing-a-sorted-array-faster-than-processing-an-unsorted-array",
"platform": "stackoverflow",
"extracted_at": "2026-11-20T10:21:59.891321+00:00",
"text": "In this C++ code, sorting the data (before the timed region) makes the primary loop ~6x faster:\n#include <algorithm>\n#include <ctime>\n#include <iostream>\n\nint main()\n{\n // Generate data\n const unsigned arraySize = 32768;\n int data[arraySize];\n\n for (unsigned c = 0; c < arraySize; ++c)\n ...",
"title": "Why is conditional processing of a sorted array faster than of an unsorted array?",
"description": null,
"author_name": "GManNickG",
"author_handle": null,
"author_url": "https://stackoverflow.com/users/87234/gmannickg",
"author_avatar": null,
"author_followers": null,
"author_verified": null,
"published_at": "2012-06-27T13:51:36+00:00",
"published_at_unix": 1340805096,
"modified_at": "2026-09-04T02:36:50+00:00",
"date_source": "stackexchange_api",
"likes": 27549,
"comments_count": 25,
"shares": null,
"views": 2037789,
"reposts": null,
"saves": null,
"thumbnail_url": null,
"video_url": null,
"images": [],
"content_type": "question",
"hashtags": [],
"mentions": [],
"language": null,
"extras": {
"answer_count": 25,
"accepted_answer_id": 11227902,
"tags": [
"java",
"c++",
"performance"
],
"bounty_amount": null,
"bounty_closes_date": null,
"closed_reason": null,
"is_answered": true,
"tools_mentioned": [],
"link": "https://stackoverflow.com/questions/11227809/why-is-conditional-processing-of-a-sorted-array-faster-than-of-an-unsorted-array"
},
"errors": [],
"credits_used": 2,
"latency_ms": 170
}
Measured on that call: 735 ms.
Code
curl -X POST https://api.foxapis.com/v1/developer/stackoverflow/question \
-H "Authorization: Bearer YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://stackoverflow.com/questions/11227809/why-is-processing-a-sorted-array-faster-than-processing-an-unsorted-array"}'n8n (HTTP Request node: paste it into a workflow)
{
"nodes": [
{
"name": "Stack Overflow question",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4,
"position": [
0,
0
],
"parameters": {
"method": "POST",
"url": "https://api.foxapis.com/v1/developer/stackoverflow/question",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "Authorization",
"value": "Bearer YOUR_KEY"
}
]
},
"sendBody": true,
"specifyBody": "json",
"jsonBody": "{\"url\":\"https://stackoverflow.com/questions/11227809/why-is-processing-a-sorted-array-faster-than-processing-an-unsorted-array\"}"
}
}
],
"connections": {}
}Assistants (Claude, ChatGPT, Cursor)
Connect the FoxAPIs server once; the tools it offers are listed on the MCP page.
claude mcp add --transport http foxapis https://foxapis.com/mcp \ --header "Authorization: Bearer YOUR_KEY"
Errors and limits
- 401: the key is missing or wrong.
- 402: out of credits; top up on the pricing page.
- 422: the input does not match; the answer names the field.
- 429: too many calls too fast; wait a moment and try again.
- 503: the source did not answer; nothing is charged. Live state: status.
Free to start: 100 credits, no card. Then from $10. Credits you buy never expire.
Get my free keyMore from Stack Overflow: user
Same category: Developer data · all APIs
How we calculate
- Price of one call and of 1,000 calls: The credits per call times the smallest paid plan's price per credit (its monthly price divided by its monthly credits), times 1,000 for the larger figure.
Data: scripts/data/endpoint-credits.json and plans.json, 2026-11-20. Every other figure on this page is copied from the record, not calculated by us.