Home · APIs · Developer data · Stack Overflow question

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

FieldTypeValue in the sample
urlstringhttps://stackoverflow.com/questions/11227809/why-is-processing-a-sorted-array-faster-than-processing-an-uns...
platformstringstackoverflow
extracted_atstring2026-11-20T10:21:59.891321+00:00
textstringIn this C++ code, sorting the data (before the timed region) makes the primary loop ~6x faster: #include <a...
titlestringWhy is conditional processing of a sorted array faster than of an unsorted array?
author_namestringGManNickG
author_urlstringhttps://stackoverflow.com/users/87234/gmannickg
published_atstring2012-06-27T13:51:36+00:00
published_at_unixnumber1340805096
modified_atstring2026-09-04T02:36:50+00:00
date_sourcestringstackexchange_api
likesnumber27549
comments_countnumber25
viewsnumber2037789
content_typestringquestion
extrasobject{"answer_count":25,"accepted_answer_id":11227902,"tags":["java","c++","performance"],"bounty_amount":null,"...
credits_usednumber2
latency_msnumber170

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"}'
import requests

r = requests.post(
    "https://api.foxapis.com/v1/developer/stackoverflow/question",
    headers={"Authorization": "Bearer YOUR_KEY"},
    json={"url":"https://stackoverflow.com/questions/11227809/why-is-processing-a-sorted-array-faster-than-processing-an-unsorted-array"},
)
print(r.json())
const r = await fetch("https://api.foxapis.com/v1/developer/stackoverflow/question", {
  method: "POST",
  headers: { "Authorization": "Bearer YOUR_KEY", "Content-Type": "application/json" },
  body: JSON.stringify({"url":"https://stackoverflow.com/questions/11227809/why-is-processing-a-sorted-array-faster-than-processing-an-unsorted-array"}),
});
console.log(await r.json());

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

Free to start: 100 credits, no card. Then from $10. Credits you buy never expire.

Get my free key

More from Stack Overflow: user

Same category: Developer data · all APIs

How we calculate

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.