AgeviroDocs

Referensi Berita

Endpoint daftar berita, detail, dan komentar.

Semua endpoint butuh key. Coba langsung dengan memasukkan key di panel Coba pada tiap endpoint.

GET/api/v1/news

Daftar berita. Berita Ageviro terbaru ke terlama. Untuk halaman berikutnya kirim next_cursor sebagai before.

ParameterTipeKeterangan
limitintegerJumlah item, 1-50 (default 20).
beforestringCursor dari next_cursor respons sebelumnya.
qstringCari di judul/isi (maks. 60 karakter).
json
{
  "data": [
    {
      "id": "-Nabc123",
      "title": "Judul berita",
      "body": "Isi berita…",
      "buttons": [
        {
          "label": "Buka",
          "url": "https://contoh.com"
        }
      ],
      "images": [
        "https://contoh.com/a.jpg"
      ],
      "videos": [],
      "author": "Ageviro",
      "created_at": "2026-10-01T03:00:00.000Z",
      "likes": 12,
      "comments": 3,
      "shares": 1
    }
  ],
  "count": 1,
  "next_cursor": null
}
Coba langsung

GET/api/v1/news/{id}

Satu berita. Detail satu berita berdasarkan id.

ParameterTipeKeterangan
id wajibstringID berita (path).
json
{
  "data": {
    "id": "-Nabc123",
    "title": "Judul berita",
    "body": "Isi berita…",
    "buttons": [],
    "images": [],
    "videos": [],
    "author": "Ageviro",
    "created_at": "2026-10-01T03:00:00.000Z",
    "likes": 12,
    "comments": 3,
    "shares": 1
  }
}
Coba langsung

GET/api/v1/news/{id}/comments

Komentar berita. Komentar sebuah berita, urut lama ke baru. Dengan tree=1 balasan dibuat bersarang di replies.

ParameterTipeKeterangan
id wajibstringID berita (path).
tree0 | 11 = balasan bersarang (field replies).
json
{
  "news_id": "-Nabc123",
  "count": 1,
  "data": [
    {
      "id": "-Nc1",
      "parent_id": null,
      "body": "Keren!",
      "mentions": [],
      "created_at": "2026-10-01T04:00:00.000Z",
      "user": {
        "username": "kevin",
        "name": "Kevin",
        "avatar_url": "https://domainmu.com/api/avatar/abc",
        "verified": true,
        "role": "owner"
      }
    }
  ]
}
Coba langsung