Naar de inhoud
GET /v1/article

One article in full 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/habr-api

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

Verkrijg een API-sleutel

Codefragmenten

curl "https://api.oanor.com/habr-api/v1/article" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/habr-api/v1/article", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/habr-api/v1/article");
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/habr-api/v1/article",
    headers={"x-oanor-key": "oanor_test_..."}
)

Voorbeeldrespons

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

{
    "data": {
        "id": 1046918,
        "url": "https://habr.com/ru/articles/1046918/",
        "hubs": [
            "Машинное обучение"
        ],
        "note": "One Habr article in full: its signed score (up-votes minus down-votes, can be negative), total votes, reads, bookmarks, comments, author, hubs, reading time and publish date. Live, cached ~10m.",
        "reads": 1281,
        "score": 6,
        "title": "Почему тебе нужно стать нейро-панком прямо сейчас",
        "votes": 9,
        "author": "Imperius14",
        "source": "Habr public API (habr.com/kek/v2/articles), keyless",
        "comments": 6,
        "bookmarks": 7,
        "published": "2026-06-12T20:30:04+00:00",
        "reading_time_min": 5
    },
    "meta": {
        "timestamp": "2026-06-13T04:42:01.581Z",
        "request_id": "9fabce02-d129-4800-bffc-ef8c246a410f"
    },
    "status": "ok",
    "message": "Article retrieved successfully",
    "success": true
}