/v1/user-summary
A member's activity stats
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
curl "https://api.oanor.com/discourse-api/v1/user-summary" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/discourse-api/v1/user-summary", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/discourse-api/v1/user-summary");
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/discourse-api/v1/user-summary",
headers={"x-oanor-key": "oanor_test_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"data": {
"posts": 19071,
"topics": 226,
"username": "codinghorror",
"posts_read": 292881,
"likes_given": 56014,
"profile_url": "https://meta.discourse.org/u/codinghorror",
"days_visited": 3357,
"solved_count": 401,
"likes_received": 72761,
"topics_entered": 85503,
"time_read_seconds": 16808964
},
"meta": {
"timestamp": "2026-06-13T14:11:30.110Z",
"request_id": "682d4488-0cf6-4e65-bfbe-5d2ecb6b4868"
},
"status": "ok",
"message": "User summary retrieved successfully",
"success": true
}