Skip to content

Kompas.com API

6 endpointsNews & MediaIDsocial:read6 real examples

Returns latest, section, searched and individual articles of Kompas.com with text, byline and times, and its most-read list.

View as Markdown
GET/kompas/latestLatest articles of Kompas.com, newest first.
GET/kompas/categoryLatest articles of one section of Kompas.com, newest first.
GET/kompas/kompasSearchArticles of Kompas.com that match a keyword, one page at a time.
GET/kompas/tagArticles of Kompas.com under one tag such as banjir, one page at a time.
GET/kompas/kompasArticleOne article of Kompas.com with its text, byline and times.
GET/kompas/popularMost-read articles of Kompas.com today, in rank order.

latest

GET/v1/kompas/latest

Latest articles of Kompas.com, newest first.

scope social:read1 unitcached 10 minpaginated

Parameters

limit
integer
Items per page, 1 to 100.
default 20
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

14 fields
authorAuthor
avatarUrlstring
idstring
namestring
urlstring
usernamestring
categorystring
idstring
imageUrlstring
publishedAtstring
sourcestring
summarystring
titlestring
urlstring
curl "https://api.hoshime.com/v1/kompas/latest" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": [
    {
      "author": {
        "avatarUrl": "",
        "id": "",
        "name": "",
        "url": "",
        "username": ""
      },
      "category": "tren",
      "id": "",
      "imageUrl": "",
      "publishedAt": "2026-11-11T13:30:00Z",
      "source": "",
      "summary": "",
      "title": "Bisakah Putusan PTUN \"Menyelamatkan\" Gibran?",
      "url": "https://www.kompas.com/tren/read/2026/11/11/203000565/bisakah-putusan-ptun-menyelamatkan-gibran-"
    },
    {
      "author": {
        "avatarUrl": "",
        "id": "",
        "name": "",
        "url": "",
        "username": ""
      },
      "category": "bola",
      "id": "",
      "imageUrl": "",
      "publishedAt": "2026-11-11T13:26:55Z",
      "source": "",
      "summary": "",
      "title": "Alejandro Balde Masuk Radar AS Roma dan Juventus, Barcelona Pantau Bek Man City",
      "url": "https://bola.kompas.com/read/2026/11/11/20265508/alejandro-balde-masuk-radar-as-roma-dan-juventus-barcelona-pantau-bek-man-city"
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "latest",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "kompas",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

category

GET/v1/kompas/category

Latest articles of one section of Kompas.com, newest first.

scope social:read1 unitcached 10 minpaginated

Parameters

category
string
required
Section of the site, such as tren.
bolalifestylenusarayaotomotifpropertisportteknotraveltren
e.g. tren
limit
integer
Items per page, 1 to 100.
default 20
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

14 fields
authorAuthor
avatarUrlstring
idstring
namestring
urlstring
usernamestring
categorystring
idstring
imageUrlstring
publishedAtstring
sourcestring
summarystring
titlestring
urlstring
curl "https://api.hoshime.com/v1/kompas/category?category=tren" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": [
    {
      "author": {
        "avatarUrl": "",
        "id": "",
        "name": "",
        "url": "",
        "username": ""
      },
      "category": "tren",
      "id": "",
      "imageUrl": "",
      "publishedAt": "2026-11-11T13:30:00Z",
      "source": "",
      "summary": "",
      "title": "Bisakah Putusan PTUN \"Menyelamatkan\" Gibran?",
      "url": "https://www.kompas.com/tren/read/2026/11/11/203000565/bisakah-putusan-ptun-menyelamatkan-gibran-"
    },
    {
      "author": {
        "avatarUrl": "",
        "id": "",
        "name": "",
        "url": "",
        "username": ""
      },
      "category": "tren",
      "id": "",
      "imageUrl": "",
      "publishedAt": "2026-11-11T13:15:00Z",
      "source": "",
      "summary": "",
      "title": "Batas Akhir 14 November, Ini Cara Pengkinian Data Calon Penerima BSU 2026",
      "url": "https://www.kompas.com/tren/read/2026/11/11/201500365/batas-akhir-14-november-ini-cara-pengkinian-data-calon-penerima-bsu-2026"
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "category",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "kompas",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

kompasSearch

GET/v1/kompas/kompasSearch

Articles of Kompas.com that match a keyword, one page at a time.

scope social:read1 unitcached 3 minpaginated

Parameters

query
string
required
Keyword to search for.
e.g. ekonomi
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

14 fields
authorAuthor
avatarUrlstring
idstring
namestring
urlstring
usernamestring
categorystring
idstring
imageUrlstring
publishedAtstring
sourcestring
summarystring
titlestring
urlstring
curl "https://api.hoshime.com/v1/kompas/kompasSearch?query=ekonomi" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": [
    {
      "author": {
        "avatarUrl": "",
        "id": "",
        "name": "",
        "url": "",
        "username": ""
      },
      "category": "",
      "id": "",
      "imageUrl": "https://asset.kompas.com/crops/w_SCVc0BjCFd8T9oEU_GdCL0HjM=/299x2:2375x1387/750x500/data/photo/2026/10/12/6accbc889818f.jpg",
      "publishedAt": "",
      "source": "",
      "summary": "",
      "title": "Pelajaran Nobel Ekonomi 2026: Harapan Masyarakat Menentukan Arah Ekonomi",
      "url": "https://money.kompas.com/read/2026/10/18/090000626/pelajaran-nobel-ekonomi-2026--harapan-masyarakat-menentukan-arah-ekonomi"
    },
    {
      "author": {
        "avatarUrl": "",
        "id": "",
        "name": "",
        "url": "",
        "username": ""
      },
      "category": "",
      "id": "",
      "imageUrl": "https://asset.kompas.com/crops/hR3Zd7jxb6NAoshlXCV4MJSPh1E=/0x0:1280x853/750x500/data/photo/2026/10/12/6accc75f28ba4.jpeg",
      "publishedAt": "",
      "source": "",
      "summary": "",
      "title": "Peraih Nobel Ekonomi 2024 Sebut Kebijakan Politik Jadi Penentu Pembangunan Ekonomi",
      "url": "https://money.kompas.com/read/2026/10/12/191000926/peraih-nobel-ekonomi-2024-sebut-kebijakan-politik-jadi-penentu-pembangunan"
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "kompasSearch",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "kompas",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

tag

GET/v1/kompas/tag

Articles of Kompas.com under one tag such as banjir, one page at a time.

scope social:read1 unitcached 3 minpaginated

Parameters

query
string
required
Keyword to search for.
e.g. ekonomi
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

14 fields
authorAuthor
avatarUrlstring
idstring
namestring
urlstring
usernamestring
categorystring
idstring
imageUrlstring
publishedAtstring
sourcestring
summarystring
titlestring
urlstring
curl "https://api.hoshime.com/v1/kompas/tag?query=ekonomi" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": [
    {
      "author": {
        "avatarUrl": "",
        "id": "",
        "name": "",
        "url": "",
        "username": ""
      },
      "category": "",
      "id": "",
      "imageUrl": "https://asset.kompas.com/crops/9iONdcr19cwdpDeRAdcOB3btGNY=/0x107:1280x960/750x500/data/photo/2026/11/11/6af4674887c41.jpeg",
      "publishedAt": "",
      "source": "",
      "summary": "",
      "title": "Sukseskan Hilirisasi Pangan, Tim Patriot Unpad Beri Nilai Tambah Nyata bagi Pelaku Usaha Fakfak",
      "url": "https://nasional.kompas.com/read/2026/11/11/20140821/sukseskan-hilirisasi-pangan-tim-patriot-unpad-beri-nilai-tambah-nyata-bagi"
    },
    {
      "author": {
        "avatarUrl": "",
        "id": "",
        "name": "",
        "url": "",
        "username": ""
      },
      "category": "",
      "id": "",
      "imageUrl": "https://asset.kompas.com/crops/taTvfULKRsf-ZtpMokoNbqVDcZE=/0x0:0x0/750x500/data/photo/2026/11/09/6af169ad7de39.jpg",
      "publishedAt": "",
      "source": "",
      "summary": "",
      "title": "Kejar Pertumbuhan Ekonomi 6 Persen pada 2027, Airlangga Andalkan Sektor Ritel",
      "url": "https://money.kompas.com/read/2026/11/11/185141826/kejar-pertumbuhan-ekonomi-6-persen-pada-2027-airlangga-andalkan-sektor-ritel"
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "tag",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "kompas",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

kompasArticle

GET/v1/kompas/kompasArticle

One article of Kompas.com with its text, byline and times.

scope social:read1 unitcached 1 h

Parameters

url
string
required
Full address of an article of Kompas.com.
e.g. https://money.kompas.com/read/2026/11/05/124500026/ekonomi-kerakyatan-di-persimpangan
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

16 fields
authorAuthor
avatarUrlstring
idstring
namestring
urlstring
usernamestring
contentstring
idstring
imageUrlstring
publishedAtstring
sectionstring
sourcestring
summarystring
titlestring
updatedAtstring
urlstring
curl "https://api.hoshime.com/v1/kompas/kompasArticle?url=https%3A%2F%2Fmoney.kompas.com%2Fread%2F2026%2F11%2F05%2F124500026%2Fekonomi-kerakyatan-di-persimpangan" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": {
    "author": {
      "avatarUrl": "",
      "id": "",
      "name": "Mohammad Nur Rianto",
      "url": "",
      "username": ""
    },
    "content": "DI TENGAH ambisi Indonesia untuk menjadi negara maju dan mengejar pertumbuhan ekonomi yang lebih tinggi, ada satu pertanyaan mendasar yang p…",
    "id": "",
    "imageUrl": "https://asset.kompas.com/crops/GEkIw_RvXN2oHcAQmbHRdbftBOs=/138x0:5000x3241/1200x675/filters:watermark(data/photo/2026/01/30/697c815e7ef28.p…",
    "publishedAt": "2026-11-05T05:45:00Z",
    "section": "Money",
    "source": "",
    "summary": "Ekonomi kerakyatan bukan berarti menolak modernisasi, industrialisasi, atau globalisasi.",
    "title": "Ekonomi Kerakyatan di Persimpangan",
    "updatedAt": "2026-11-05T05:45:00Z",
    "url": "https://money.kompas.com/read/2026/11/05/124500026/ekonomi-kerakyatan-di-persimpangan"
  },
  "meta": {
    "cached": false,
    "endpoint": "kompasArticle",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "kompas",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}
esc
↑↓ move↵ open