Sources › News › Republika › Search

Republika Search API

Cari berita berdasarkan keyword dengan pagination.

RepublikaGET /searchAll plans1 Zap

Request

GET
https://api.zapi.ink/v1/news:republika/search

Send 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

NameTypeInRequiredDescription
querystringqueryYesKeyword pencarian berita Example: ekonomi
pagenumberqueryNoNomor halaman (1-indexed). Default 1, max 50 Example: 1

Code examples

cURL
curl -X GET "https://api.zapi.ink/v1/news:republika/search?query=ekonomi&page=1" \
  -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
JavaScript
const res = await fetch("https://api.zapi.ink/v1/news:republika/search?query=ekonomi&page=1", {
  method: "GET",
  headers: {
    "x-api-key": "zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
  },
});
const data = await res.json();
console.log(data);
Python
import requests

res = requests.get(
    "https://api.zapi.ink/v1/news:republika/search",
    params={"query":"ekonomi","page":"1"},
    headers={"x-api-key":"zpi_xxxxxxxxxxxxxxxxxxxxxxxx"},
)
print(res.json())

Example response

200 OK · application/json
{
  "project": "news:republika",
  "data": {
    "page": 1,
    "count": 3,
    "items": [
      {
        "url": "https://ekonomi.republika.co.id/berita/tfn7tj423/bps-konsumsi-rumah-tangga-dan-investasi-jaga-pertumbuhan-ekonomi-ri",
        "image": "https://static.republika.co.id/uploads/images/inpicture_widget/046561300-1755243491-830-556.jpg",
        "title": "BPS: Konsumsi Rumah Tangga dan Investasi Jaga Pertumbuhan Ekonomi RI",
        "source": "republika.co.id",
        "category": "Finansial",
        "publishedAt": "2026-05-26T12:01:00.000Z"
      },
      {
        "url": "https://ekonomi.republika.co.id/berita/tfmum8423/krisis-ekonomi-dinilai-jadi-momentum-lahirnya-pengusaha-tangguh",
        "image": "https://static.republika.co.id/uploads/images/inpicture_widget/083501600-1711550642-830-556.jpg",
        "title": "Krisis Ekonomi Dinilai Jadi Momentum Lahirnya Pengusaha Tangguh",
        "source": "republika.co.id",
        "category": "Finansial",
        "publishedAt": "2026-05-26T07:10:56.000Z"
      },
      {
        "url": "https://news.republika.co.id/berita/tffmxz348/terpilih-jadi-tuan-rumah-bersama-lampung-gubernur-banten-yakin-pon-xxiii-dorong-pertumbuhan-ekonomi",
        "image": "https://static.republika.co.id/uploads/images/inpicture_widget/gubernur-banten-andra_250730153557-164.jpg",
        "title": "Terpilih Jadi Tuan Rumah Bersama Lampung, Gubernur Banten Yakin PON XXIII Dorong Pertumbuhan Ekonomi",
        "source": "republika.co.id",
        "category": "Sport",
        "publishedAt": "2026-05-22T09:41:59.000Z"
      }
    ],
    "hasMore": false,
    "nextPage": null
  },
  "timestamp": "2026-05-27T13:31:59Z"
}

Frequently asked questions

How do I call the Republika Search API?

Send a GET request to https://api.zapi.ink/v1/news:republika/search?query=ekonomi with your Zapi key in the x-api-key header. Parameters — required: query; optional: page. The response is JSON in the { project, data, timestamp } envelope.

What does the Republika Search API return?

Cari berita berdasarkan keyword dengan pagination. The example response has the fields page, count, items, hasMore, nextPage. Each item in items has fields such as url, image, title, source, category, publishedAt.

Is the Republika Search 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 Republika Search 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 "republika" and endpoint "search".

What other Republika API endpoints are there?

It has 3 endpoints. Besides Search: Detail Artikel, Berita Terbaru.