Request
https://api.zapi.ink/v1/indonesia:perpusnas/articleSend 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 5 minutes.
Parameters
| Name | Type | In | Required | Description |
|---|---|---|---|---|
| articleId | string | query | Yes | Article id, from the articles endpoint Example: 9ac6c156-df29-422c-ae9f-ae5cf5536018 |
Code examples
curl -X GET "https://api.zapi.ink/v1/indonesia:perpusnas/article?articleId=9ac6c156-df29-422c-ae9f-ae5cf5536018" \ -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
const res = await fetch("https://api.zapi.ink/v1/indonesia:perpusnas/article?articleId=9ac6c156-df29-422c-ae9f-ae5cf5536018", { 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/indonesia:perpusnas/article", params={"articleId":"9ac6c156-df29-422c-ae9f-ae5cf5536018"}, headers={"x-api-key":"zpi_xxxxxxxxxxxxxxxxxxxxxxxx"}, ) print(res.json())
Example response
{ "project": "indonesia:perpusnas", "data": { "body": "<p style=\"text-align: justify\"><strong>Jakarta—</strong>Sebanyak 14 naskah kuno diusulkan untuk menjadi Ingatan Kolektif Nasional (IKON) tahun 2026.</p><p style=\"text-align: justif…", "title": "14 Naskah Kuno Diusulkan untuk IKON Tahun 2026", "recent": [ { "title": "Menelusuri Jejak Perlawanan Akar Peradaban Bangsa", "category": { "name": "Pujasintara", "type": "NEWS", "isIkon": false, "categoryId": "9cc3ae5d-4e79-4736-9e39-465a14527d91" }, "headline": "Pameran dengan tema “Jejak Perlawanan Akar Peradaban” ini mengangkat perjuangan masyarakat Nusantara dalam menghadapi berbagai bentuk penindasan dan mempertahankan kedaulatan, iden…", "imageUrl": "https://khastara-storage.perpusnas.go.id/images/content/RCFGH2YVfELr8GinR3u6s5PVu3PIoaGpmRf2161a.jpg", "articleId": "7e4b4dcd-b7f1-4f90-906b-3e46f6569919", "createdAt": "2026-08-13T08:36:55.000000Z", "createdBy": "Admin Berita Lontara", "imageNote": "pameran" }, { "title": "Aksara Lontara", "category": { "name": "Pujasintara", "type": "ARTICLE", "isIkon": false, "categoryId": "9399cc39-40c6-462b-86df-ba656a0c417d" }, "headline": "Sumber foto: https://www.omniglot.com/writing/lontara.htm#lontarabugis", "imageUrl": "https://khastara-storage.perpusnas.go.id/images/content/kkRaEO3FZJm8PyHk0etq9zA6immWSzW2AdLpboqG.jpg", "articleId": "da83f7be-7fe5-453a-88bd-d67d3f389783", "createdAt": "2026-07-24T09:02:23.000000Z", "createdBy": "Admin Berita Lontara", "imageNote": "1" }, { "title": "Perpusnas Kaji Perubahan Regulasi Program IKON", "category": { "name": "Pujasintara", "type": "NEWS", "isIkon": false, "categoryId": "9cc3ae5d-4e79-4736-9e39-465a14527d91" }, "headline": "Dengan begitu, penyelenggaraan program yang diusung Perpustakaan Nasional Republik Indonesia (Perpusnas) ini diharapkan berjalan lebih efektif, inklusif, dan berkelanjutan.", "imageUrl": "https://khastara-storage.perpusnas.go.id/images/content/954hN3I2Koc2u5ytcKMRAKp9zFsPeO1mEyzT6jA5.jpg", "articleId": "b6ce4218-d5c6-46a2-a071-e1528ead730f", "createdAt": "2026-07-21T09:36:35.000000Z", "createdBy": "Admin Berita Lontara", "imageNote": "Foto" } ], "related": [ { "title": "Membaca Ramayana di Kursus Intensif Jawa Kuno ke-5", "category": { "name": "Pujasintara", "type": "NEWS", "isIkon": false, "categoryId": "9cc3ae5d-4e79-4736-9e39-465a14527d91" }, "headline": "Membaca Ramayana di Kursus Intensif Jawa Kuno ke-5", "imageUrl": "https://khastara-storage.perpusnas.go.id/images/content/yaqaKF0cV2bX8on7onC5DpVr07zSRSfTwzqLYKUI.jpg", "articleId": "07ec14e3-2951-4cff-a144-e8ff7e055dbe", "createdAt": "2025-02-12T09:00:56.000000Z", "createdBy": "Admin Khastara", "imageNote": "Membaca Ramayana di Kursus Intensif Jawa Kuno ke-5" }, { "title": "Mengungkap Jejak Daluang dari Nusantara ke Dunia", "category": { "name": "Pujasintara", "type": "NEWS", "isIkon": false, "categoryId": "9cc3ae5d-4e79-4736-9e39-465a14527d91" }, "headline": "Daluang digunakan sebagai media tulis berbagai naskah kuno Nusantara seperti Ramayana, Bhoma Kawya, Sumanasantaka, dan Rama Wijaya.", "imageUrl": "https://khastara-storage.perpusnas.go.id/images/content/VZuM6ETHGnQer4ktq4MRg82akPkJ4lWgsuUnzaBG.jpg", "articleId": "0b2fdfb0-ed49-41e4-910d-b8e263ec92f3", "createdAt": "2026-03-26T08:41:33.000000Z", "createdBy": "Admin Berita Lontara", "imageNote": "Lokakarya daluang" }, { "title": "Perpustakaan Nasional Sosialisasikan Juknis Pendaftaran Naskah Kuno", "category": { "name": "Pujasintara", "type": "NEWS", "isIkon": false, "categoryId": "9cc3ae5d-4e79-4736-9e39-465a14527d91" }, "headline": "Perpustakaan Nasional Sosialisasikan Juknis Pendaftaran Naskah Kuno", "imageUrl": "https://khastara-storage.perpusnas.go.id/images/content/dz3jjTDwfa5TwPiJY9Jyqjv9FiH3q4tW33wYbnOC.jpg", "articleId": "2e038582-be9d-4459-8678-175a8610a8e1", "createdAt": "2025-07-03T06:41:54.000000Z", "createdBy": "Hanna Meinita", "imageNote": "Sosialisasi Pendaftaran Naskah Kuno" } ], "category": { "name": "Pujasintara", "type": "NEWS", "isIkon": false, "categoryId": "9cc3ae5d-4e79-4736-9e39-465a14527d91" }, "headline": "Hal ini menunjukkan meningkatnya perhatian dan kesadaran masyarakat terhadap naskah kuno serta upaya untuk mengkaji, melestarikan, dan mengangkat warisan documenter dari berbagai d…", "imageUrl": "https://khastara-storage.perpusnas.go.id/images/content/4qoHPVEOWnxLP4dAJQMIETtLt5YPdnXskMvXh2wS.jpg", "provider": "perpusnas", "articleId": "9ac6c156-df29-422c-ae9f-ae5cf5536018", "createdAt": "2026-08-24T12:20:58.000000Z", "createdBy": "Admin Berita Lontara", "imageNote": "foto", "updatedAt": "2026-08-30T00:47:00.000000Z", "viewCount": 8 }, "timestamp": "2026-08-30T00:49:31Z" }
Frequently asked questions
How do I call the Perpusnas Article API?
Send a GET request to https://api.zapi.ink/v1/indonesia:perpusnas/article?articleId=9ac6c156-df29-422c-ae9f-ae5cf5536018 with your Zapi key in the x-api-key header. Parameters — required: articleId. The response is JSON in the { project, data, timestamp } envelope.
What does the Perpusnas Article API return?
Khastara (Perpusnas) — the SPA host khastara.perpusnas.go.id is Cloudflare-challenged on every cheap rung; its own backend khastara-api.perpusnas.go.id answers plain fetch. The example response has the fields body, title, recent, related, category, headline, imageUrl, provider. Each item in recent has fields such as title, category, headline, imageUrl, articleId, createdAt, createdBy, imageNote.
Is the Perpusnas Article 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 Perpusnas Article 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 "perpusnas" and endpoint "article".
What other Perpusnas API endpoints are there?
It has 4 endpoints. Besides Article: Articles, Collection Stats, Opac Search.
