Request
https://api.zapi.ink/v1/news:kompas/detailSend 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 10 minutes.
Parameters
| Name | Type | In | Required | Description |
|---|---|---|---|---|
| url | string | query | Yes | URL artikel lengkap dari kompas.com Example: https://nasional.kompas.com/read/2026/05/12/15050071/indonesia-membaca-pendek |
Code examples
curl -X GET "https://api.zapi.ink/v1/news:kompas/detail?url=https%3A%2F%2Fnasional.kompas.com%2Fread%2F2026%2F05%2F12%2F15050071%2Findonesia-membaca-pendek" \ -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
const res = await fetch("https://api.zapi.ink/v1/news:kompas/detail?url=https%3A%2F%2Fnasional.kompas.com%2Fread%2F2026%2F05%2F12%2F15050071%2Findonesia-membaca-pendek", { 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/detail", params={"url":"https://nasional.kompas.com/read/2026/05/12/15050071/indonesia-membaca-pendek"}, headers={"x-api-key":"zpi_xxxxxxxxxxxxxxxxxxxxxxxx"}, ) print(res.json())
Example response
{ "project": "news:kompas", "data": { "url": "https://nasional.kompas.com/read/2026/05/12/15050071/indonesia-membaca-pendek", "tags": [ "membaca", "Literasi", "Hari Buku Nasional" ], "image": "https://asset.kompas.com/crops/4mi6CkwFQ_W6ff7u0THVbOKXEIc=/0x0:1500x1000/1200x675/filters:watermark(data/photo/2026/01/30/697c815a5f0b9.png,0,-0,1)/data/photo/2025/09/17/68ca9063e749d.jpg", "title": "Indonesia Membaca Pendek", "author": "Dedy Arfiansyah", "source": "kompas.com", "content": "<div class=\"clearfix\">\n<p><strong>DI TENGAH </strong>kehidupan digital, membaca justru menjadi aktivitas yang nyaris tak terhindarkan. Orang membaca sejak bangun tidur: notifikasi telepon genggam, pesan singkat, <em>caption</em> media sosial, judul berita, hingga potongan percakapan di berbagai platform digital.</p>\n<p>Aktivitas <a target='_blank' class='inner-link-tag' href='https://www.kompas.com/tag/membaca' style='color:#428bca;'>membaca</a> tampak semakin sibuk, tetapi tidak selalu diikuti pemahaman yang lebih dalam.</p><span class=\"ads-on-body\"></span>\n<p>Perubahan itu terlihat dari cara masyarakat mengonsumsi informasi. Bacaan semakin pendek, cepat, dan berpindah dari satu layar ke layar lain.</p>\n<p>Banyak artikel disimpan untuk dibaca nanti, tetapi jarang benar-benar diselesaikan.</p>\n<p>Buku dibeli, ditandai, lalu berhenti di beberapa halaman awal. Di tengah arus informasi yang bergerak tanpa jeda, perhatian menjadi semakin mudah terpecah.</p>\n<p>Karena itu, persoalan <a target='_blank' class='inner-link-tag' href='https://www.kompas.com/tag/literasi' style='color:#428bca;'>literasi</a> hari ini tampaknya tidak lagi sesederhana anggapan bahwa masyarakat malas membaca.</p>\n<div class=\"kompasidRec\">", "summary": "Kebiasaan membaca cepat perlahan ikut mengubah cara masyarakat menyerap pengetahuan.", "category": "Nasional", "updatedAt": "2026-05-12T15:05:00+07:00", "wordCount": 114, "publishedAt": "2026-05-12T15:05:00+07:00" }, "timestamp": "2026-05-27T13:31:59Z" }
Frequently asked questions
How do I call the Kompas Detail Artikel API?
Send a GET request to https://api.zapi.ink/v1/news:kompas/detail?url=https%3A%2F%2Fnasional.kompas.com%2Fread%2F2026%2F05%2F12%2F15050071%2Findonesia-membaca-pendek with your Zapi key in the x-api-key header. Parameters — required: url. The response is JSON in the { project, data, timestamp } envelope.
What does the Kompas Detail Artikel API return?
Ambil detail artikel lengkap dari URL berita. The example response has the fields url, tags, image, title, author, source, content, summary.
Is the Kompas Detail Artikel 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 Detail Artikel 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 "detail".
What other Kompas API endpoints are there?
It has 3 endpoints. Besides Detail Artikel: Search, Berita Terbaru.
