Request
https://api.zapi.ink/v1/news:kompas/latestSend your key in the x-api-key header. The response is JSON in the { project, data, timestamp } envelope, and an identical request is served from cache for 3 minutes.
Parameters
| Name | Type | In | Required | Description |
|---|---|---|---|---|
| category | enum: news | tekno | otomotif | lifestyle | properti | travel | nusaraya | query | No | Kategori berita Kompas. Default: news (all) Example: news |
| page | number | query | No | Nomor halaman, default 1, max 50 Example: 1 |
Code examples
curl -X GET "https://api.zapi.ink/v1/news:kompas/latest?category=news&page=1" \ -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
const res = await fetch("https://api.zapi.ink/v1/news:kompas/latest?category=news&page=1", { method: "GET", headers: { "x-api-key": "zpi_xxxxxxxxxxxxxxxxxxxxxxxx" }, }); const data = await res.json(); console.log(data);
import requests res = requests.get( "https://api.zapi.ink/v1/news:kompas/latest", params={"category":"news","page":"1"}, headers={"x-api-key":"zpi_xxxxxxxxxxxxxxxxxxxxxxxx"}, ) print(res.json())
Example response
{ "project": "news:kompas", "data": { "page": 1, "count": 20, "items": [ { "url": "https://megapolitan.kompas.com/read/2026/05/27/12081781/rano-karno-apresiasi-inovasi-keamanan-rt-di-gandaria-jaksel-layak", "image": "https://asset.kompas.com/crops/8Oi5WtJqfQZWtUwao8APfYsLmg8=/0x0:0x0/230x152/data/photo/2026/05/27/6a16747522380.jpg", "title": "Rano Karno Apresiasi Inovasi Keamanan RT di Gandaria Jaksel, Layak Dicontoh Wilayah Lain", "source": "kompas.com", "category": "News", "publishedAt": "2026-05-26T17:00:00.000Z" }, { "url": "https://nasional.kompas.com/read/2026/05/27/12053761/potensi-salah-sasaran-polisi-diminta-hentikan-narasi-begal-tembak-di-tempat", "image": "https://asset.kompas.com/crops/4HQzXW6JfJZI2mony776mvDHTjc=/61x0:1210x766/230x152/data/photo/2026/05/22/6a100a7fbf65b.png", "title": "Potensi Salah Sasaran, Polisi Diminta Hentikan Narasi \"Begal Tembak di Tempat\"", "source": "kompas.com", "category": "News", "publishedAt": "2026-05-26T17:00:00.000Z" }, { "url": "https://megapolitan.kompas.com/read/2026/05/27/11455161/penyidikan-kasus-andrie-yunus-dinilai-mandek-usai-dilimpahkan-ke-puspom", "image": "https://asset.kompas.com/crops/5FFV2Bnw5RkDZJHgpx6LsZ8RQ3w=/0x0:0x0/230x152/data/photo/2026/04/09/69d761eb1ac68.jpg", "title": "Penyidikan Kasus Andrie Yunus Dinilai Mandek Usai Dilimpahkan ke Puspom TNI", "source": "kompas.com", "category": "News", "publishedAt": "2026-05-26T17:00:00.000Z" } ], "hasMore": true, "category": "news", "nextPage": 2 }, "timestamp": "2026-05-27T13:31:59Z" }
Frequently asked questions
How do I call the Kompas Berita Terbaru API?
Send a GET request to https://api.zapi.ink/v1/news:kompas/latest with your Zapi key in the x-api-key header. Parameters — optional: category, page. The response is JSON in the { project, data, timestamp } envelope.
What does the Kompas Berita Terbaru API return?
Daftar berita terbaru, optional filter kategori. The example response has the fields page, count, items, hasMore, category, nextPage. Each item in items has fields such as url, image, title, source, category, publishedAt.
Is the Kompas Berita Terbaru API free?
Yes. It is on the Zapi free tier: 600 Zap a month with one API key and no credit card. Each call costs 1 Zap. Paid plans raise the limits.
Can an AI assistant call the Kompas Berita Terbaru API?
Yes. Add the Zapi MCP server (https://mcp.zapi.ink/mcp) to Claude, Cursor or another MCP client and ask in plain words; it calls run_scraper with scraper "kompas" and endpoint "latest".
What other Kompas API endpoints are there?
It has 3 endpoints. Besides Berita Terbaru: Search, Detail Artikel.
