Naar de inhoud
GET /v1/question

A question by id

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/stackexchange-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

curl "https://api.oanor.com/stackexchange-api/v1/question" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/stackexchange-api/v1/question", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/stackexchange-api/v1/question");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/stackexchange-api/v1/question",
    headers={"x-oanor-key": "oanor_test_..."}
)

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "id": 11227809,
        "link": "https://stackoverflow.com/questions/11227809/why-is-conditional-processing-of-a-sorted-array-faster-than-of-an-unsorted-array",
        "tags": [
            "java",
            "c++",
            "performance",
            "cpu-architecture",
            "branch-prediction"
        ],
        "owner": "GManNickG",
        "score": 27530,
        "title": "Why is conditional processing of a sorted array faster than of an unsorted array?",
        "created_at": "2012-06-27T13:51:36.000Z",
        "view_count": 1985304,
        "is_answered": true,
        "answer_count": 26,
        "last_activity_at": "2026-04-08T05:35:32.000Z",
        "accepted_answer_id": 11227902
    },
    "meta": {
        "timestamp": "2026-05-30T06:33:29.921Z",
        "request_id": "17f03b07-c69f-4aed-8065-159a7ff98e4d"
    },
    "status": "ok",
    "message": "Question retrieved",
    "success": true
}