Vai al contenuto
GET /v1/top

Top topics by period

Provalo dal vivo

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

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

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

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

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

{
    "data": {
        "feed": "top",
        "count": 30,
        "period": "weekly",
        "topics": [
            {
                "id": 404427,
                "url": "https://meta.discourse.org/t/is-anyone-experiencing-an-odd-spam-user-attack-any-way-to-block/404427",
                "slug": "is-anyone-experiencing-an-odd-spam-user-attack-any-way-to-block",
                "tags": [],
                "likes": 38,
                "posts": 15,
                "title": "Is anyone experiencing an odd spam user attack? Any way to block?",
                "views": 287,
                "closed": false,
                "pinned": false,
                "replies": 14,
                "created_at": "2026-06-03T13:59:07.092Z",
                "category_id": 6,
                "last_posted_at": "2026-06-07T16:36:28.163Z"
            },
            {
                "id": 403635,
                "url": "https://meta.discourse.org/t/introducing-a-new-post-type-composer-actions-dropdown/403635",
                "slug": "introducing-a-new-post-type-composer-actions-dropdown",
                "tags": [],
                "likes": 21,
                "posts": 3,
                "title": "Introducing a new \"Post Type\" Composer actions dropdown",
                "views": 209,
                "closed": false,
                "pinned": false,
                "replies": 2,
                "created_at": "2026-06-01T20:07:07.770Z",
                "category_id": 67,
                "last_posted_at": "2026-06-02T21:37:00.609Z"
            },
            {
                "id": 404204,
                "url": "https://meta.discourse.org/t/new-topic-still-available-when-users-dont-have-permission/404204",
                "slug": "new-topic-still-available-when-users-dont-have-permission",
                "tags": [],
                "likes": 14,
                "posts": 10,
                "title": "New Topic still available when users don't have permission",
                "views": 179,
                "closed": false,
                "pinned": false,
                "replies": 9,
                "created_at": "2026-06-01T13:17:19.585Z",
                "category_id": 9,
                "last_posted_at": "2026-06-06T10:23:10.355Z"
            },
            {
                "id": 404620,
                "url": "https://meta.discourse.org/t/accent-theme/404620",
                "slug": "accent-theme",
                "tags": [],
                "likes": 13,
                "posts": 1,
                "title": "Accent Theme",
                "views": 106,
                "closed": false,
                "pinned": false,
                "replies": 0,
                "created_at": "2026-06-05T17:45:16.685Z",
                "category_id": 61,
                "last_posted_at": "2026-06-05T17:45:16.920Z"
            },
            {
                "id": 404458,
                "url": "https://meta.discourse.org/t/discourse-health-check-one-shot-cli-overview-of-your-dis
…