Vai al contenuto
GET /v1/user

A user profile: rating, karma, followers

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/habr-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "url": "https://habr.com/ru/users/alizar/",
        "note": "A Habr user profile: rating (Habr's reputation metric) and rating_position, karma_score (signed — can be negative), votes, followers, registration date, speciality and last activity. Find aliases in any article's author field. Live, cached ~10m.",
        "alias": "alizar",
        "rating": 175.5,
        "source": "Habr public API (habr.com/kek/v2/users), keyless",
        "fullname": "Анатолий Ализар",
        "followers": 2583,
        "following": 118,
        "registered": "2006-06-11T16:02:32+00:00",
        "speciality": "автор, фрилансер",
        "karma_score": 1125,
        "karma_votes": 4441,
        "last_activity": "2026-06-12T12:06:44+00:00",
        "rating_position": 32
    },
    "meta": {
        "timestamp": "2026-06-13T13:47:27.023Z",
        "request_id": "7bc7b925-66aa-480e-930a-d6f70f2988bc"
    },
    "status": "ok",
    "message": "User retrieved successfully",
    "success": true
}