Request
https://api.zapi.ink/v1/news:detik/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 | finance | sport | sepakbola | inet | hot | food | health | oto | travel | wolipop | hikmah | edu | query | No | Kategori berita (subdomain detik). Default: news 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:detik/latest?category=news&page=1" \ -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
const res = await fetch("https://api.zapi.ink/v1/news:detik/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:detik/latest", params={"category":"news","page":"1"}, headers={"x-api-key":"zpi_xxxxxxxxxxxxxxxxxxxxxxxx"}, ) print(res.json())
Example response
{ "project": "news:detik", "data": { "page": 1, "count": 20, "items": [ { "url": "https://news.detik.com/berita/d-8507025/simak-tips-mengolah-daging-kurban-agar-empuk-dan-tidak-alot", "image": "https://awsimages.detik.net.id/community/media/visual/2026/05/27/ciri-ciri-daging-kurban-1779837485146_43.jpeg", "title": "Simak Tips Mengolah Daging Kurban Agar Empuk dan Tidak Alot", "source": "detik.com", "category": "news", "publishedAt": "2026-05-27T05:05:07.000Z" }, { "url": "https://news.detik.com/berita/d-8507017/ngamuk-saat-diikat-sapi-limosin-masuk-ke-parit-3-meter-di-bogor", "image": "https://awsimages.detik.net.id/community/media/visual/2026/05/27/sapi-limosin-di-bogor-mengamuk-saat-diikat-hingga-terperosok-ke-parit-1779857894755_43.jpeg", "title": "Ngamuk saat Diikat, Sapi Limosin Masuk ke Parit 3 Meter di Bogor", "source": "detik.com", "category": "news", "publishedAt": "2026-05-27T04:58:46.000Z" }, { "url": "https://news.detik.com/internasional/d-8507016/trump-bangun-panggung-raksasa-di-gedung-putih-untuk-ufc-di-hari-ultahnya", "image": "https://awsimages.detik.net.id/community/media/visual/2025/05/05/potret-presiden-trump-sambangi-gedung-putih-bareng-ayah-mertua-1746427566425_43.jpeg", "title": "Trump Bangun Panggung Raksasa di Gedung Putih untuk UFC di Hari Ultahnya", "source": "detik.com", "category": "news", "publishedAt": "2026-05-27T04:58:04.000Z" } ], "hasMore": true, "category": "news", "nextPage": 2 }, "timestamp": "2026-05-27T13:31:59Z" }
Frequently asked questions
How do I call the Detik Berita Terbaru API?
Send a GET request to https://api.zapi.ink/v1/news:detik/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 Detik 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 Detik 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 Detik 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 "detik" and endpoint "latest".
What other Detik API endpoints are there?
It has 3 endpoints. Besides Berita Terbaru: Search, Detail Artikel.
