報
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/latest | Latest articles of Kompas.com, newest first. |
| GET | /kompas/category | Latest articles of one section of Kompas.com, newest first. |
| GET | /kompas/kompasSearch | Articles of Kompas.com that match a keyword, one page at a time. |
| GET | /kompas/tag | Articles of Kompas.com under one tag such as banjir, one page at a time. |
| GET | /kompas/kompasArticle | One article of Kompas.com with its text, byline and times. |
| GET | /kompas/popular | Most-read articles of Kompas.com today, in rank order. |
latest
GET
/v1/kompas/latestLatest articles of Kompas.com, newest first.
scope social:read1 unitcached 10 minpaginated
Parameters
limitinteger | Items per page, 1 to 100. default 20 |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
author | Author |
avatarUrl | string |
id | string |
name | string |
url | string |
username | string |
category | string |
id | string |
imageUrl | string |
publishedAt | string |
source | string |
summary | string |
title | string |
url | string |
curl "https://api.hoshime.com/v1/kompas/latest" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/kompas/latest", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/kompas/latest", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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/categoryLatest articles of one section of Kompas.com, newest first.
scope social:read1 unitcached 10 minpaginated
Parameters
categorystring required | Section of the site, such as tren.bolalifestylenusarayaotomotifpropertisportteknotraveltrene.g. tren |
limitinteger | Items per page, 1 to 100. default 20 |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
author | Author |
avatarUrl | string |
id | string |
name | string |
url | string |
username | string |
category | string |
id | string |
imageUrl | string |
publishedAt | string |
source | string |
summary | string |
title | string |
url | string |
curl "https://api.hoshime.com/v1/kompas/category?category=tren" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/kompas/category?category=tren", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/kompas/category?category=tren", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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/kompasSearchArticles of Kompas.com that match a keyword, one page at a time.
scope social:read1 unitcached 3 minpaginated
Parameters
querystring required | Keyword to search for. e.g. ekonomi |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
author | Author |
avatarUrl | string |
id | string |
name | string |
url | string |
username | string |
category | string |
id | string |
imageUrl | string |
publishedAt | string |
source | string |
summary | string |
title | string |
url | string |
curl "https://api.hoshime.com/v1/kompas/kompasSearch?query=ekonomi" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/kompas/kompasSearch?query=ekonomi", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/kompas/kompasSearch?query=ekonomi", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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/tagArticles of Kompas.com under one tag such as banjir, one page at a time.
scope social:read1 unitcached 3 minpaginated
Parameters
querystring required | Keyword to search for. e.g. ekonomi |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
author | Author |
avatarUrl | string |
id | string |
name | string |
url | string |
username | string |
category | string |
id | string |
imageUrl | string |
publishedAt | string |
source | string |
summary | string |
title | string |
url | string |
curl "https://api.hoshime.com/v1/kompas/tag?query=ekonomi" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/kompas/tag?query=ekonomi", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/kompas/tag?query=ekonomi", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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/kompasArticleOne article of Kompas.com with its text, byline and times.
scope social:read1 unitcached 1 h
Parameters
urlstring required | Full address of an article of Kompas.com. e.g. https://money.kompas.com/read/2026/11/05/124500026/ekonomi-kerakyatan-di-persimpangan |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
author | Author |
avatarUrl | string |
id | string |
name | string |
url | string |
username | string |
content | string |
id | string |
imageUrl | string |
publishedAt | string |
section | string |
source | string |
summary | string |
title | string |
updatedAt | string |
url | string |
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"
const res = await fetch("https://api.hoshime.com/v1/kompas/kompasArticle?url=https%3A%2F%2Fmoney.kompas.com%2Fread%2F2026%2F11%2F05%2F124500026%2Fekonomi-kerakyatan-di-persimpangan", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/kompas/kompasArticle?url=https%3A%2F%2Fmoney.kompas.com%2Fread%2F2026%2F11%2F05%2F124500026%2Fekonomi-kerakyatan-di-persimpangan", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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 } }
popular
GET
/v1/kompas/popularMost-read articles of Kompas.com today, in rank order.
scope social:read1 unitcached 10 minpaginated
Parameters
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
15 fields
author | Author |
avatarUrl | string |
id | string |
name | string |
url | string |
username | string |
category | string |
id | string |
imageUrl | string |
publishedAt | string |
rank | any |
source | string |
summary | string |
title | string |
url | string |
curl "https://api.hoshime.com/v1/kompas/popular" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/kompas/popular", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/kompas/popular", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "author": { "avatarUrl": "", "id": "", "name": "", "url": "", "username": "" }, "category": "News", "id": "17320071", "imageUrl": "https://asset.kompas.com/crops/RexXoe7eZsYi4kQEokVgnSqHZhc=/0x0:1536x1024/230x153/data/photo/2026/04/10/69d82f8384a89.png", "publishedAt": "", "rank": 1, "source": "", "summary": "", "title": "Tak Ada Bisma, Gibran Tumbang di \"Padang Kurusetra\" Politik", "url": "https://nasional.kompas.com/read/2026/11/11/17320071/tak-ada-bisma-gibran-tumbang-di-padang-kurusetra-politik" }, { "author": { "avatarUrl": "", "id": "", "name": "", "url": "", "username": "" }, "category": "News", "id": "18081661", "imageUrl": "https://asset.kompas.com/crops/xsD06WX_JBlOJ1llewGAxoZSWx8=/0x153:478x472/230x153/data/photo/2026/11/11/6af442c050290.jpg", "publishedAt": "", "rank": 2, "source": "", "summary": "", "title": "Jukir di Tanah Abang yang Viral Minta Tarif Rp 35.000 dan Tantang Warga Dijemput Polisi", "url": "https://megapolitan.kompas.com/read/2026/11/11/18081661/jukir-di-tanah-abang-yang-viral-minta-tarif-rp-35000-dan-tantang-warga" } ], "meta": { "cached": false, "endpoint": "popular", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "kompas", "requestId": "req_2Xb9kQ…", "units": 1 } }