Request
https://api.zapi.ink/v1/indonesia:perpusnas/articlesSend 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 |
|---|---|---|---|---|
| page | number | query | No | Page number. Default 1 Example: 1 |
| limit | number | query | No | Items per page. Default 10, max 100 Example: 10 |
Code examples
curl -X GET "https://api.zapi.ink/v1/indonesia:perpusnas/articles?page=1&limit=10" \ -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
const res = await fetch("https://api.zapi.ink/v1/indonesia:perpusnas/articles?page=1&limit=10", { 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/articles", params={"page":"1","limit":"10"}, headers={"x-api-key":"zpi_xxxxxxxxxxxxxxxxxxxxxxxx"}, ) print(res.json())
Example response
{ "project": "indonesia:perpusnas", "data": { "page": 1, "count": 3, "items": [ { "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", "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", "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 }, { "body": "<p style=\"text-align: justify\"><strong>Jakarta—</strong>Perpustakaan Nasional Republik Indonesia (Perpusnas) melalui Pusat Jasa Informasi Perpustakaan dan Pengelolaan Naskah Nusant…", "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", "updatedAt": "2026-08-14T12:30:45.000000Z", "viewCount": 16 }, { "body": "<p style=\"text-align: justify\">Aksara Lontara digunakan untuk menulis beberapa bahasa di Sulawesi Selatan dan Sulawesi Barat. Materi beraksara lontara paling banyak ditemukan dalam…", "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", "updatedAt": "2026-08-20T01:56:15.000000Z", "viewCount": 7 } ], "limit": 3, "total": 118, "hasMore": true, "nextPage": 2, "provider": "perpusnas" }, "timestamp": "2026-08-30T00:49:31Z" }
Frequently asked questions
How do I call the Perpusnas Articles API?
Send a GET request to https://api.zapi.ink/v1/indonesia:perpusnas/articles with your Zapi key in the x-api-key header. Parameters — optional: page, limit. The response is JSON in the { project, data, timestamp } envelope.
What does the Perpusnas Articles 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 page, count, items, limit, total, hasMore, nextPage, provider. Each item in items has fields such as body, title, category, headline, imageUrl, articleId, createdAt, createdBy.
Is the Perpusnas Articles 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 Articles 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 "articles".
What other Perpusnas API endpoints are there?
It has 4 endpoints. Besides Articles: Article, Collection Stats, Opac Search.
