Zum Inhalt springen
GET /v1/question

A question by id

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/stackexchange-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten 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
}