# Hacker News — Zapi reference > Hacker News search via Algolia API — pencarian post & komentar tech/startup community dengan points, comments, author. **Base URL:** `https://api.zpi.web.id` **Auth:** Send `x-api-key: YOUR_KEY` header on every request. Get a free key at https://zpi.web.id/dashboard/keys. **Response envelope:** `{ status, message, content }` **Rate limit:** 60 req/min on free tier. **Related:** - Detail page: https://zpi.web.id/api/search-tools/hackernews - Endpoint catalog: https://zpi.web.id/category/search-tools - Concise index: https://zpi.web.id/llms.txt - Full reference: https://zpi.web.id/llms-full.txt --- ## Hacker News **Category:** search-tools · **Slug:** `hackernews` **Detail page:** https://zpi.web.id/api/search-tools/hackernews Hacker News search via Algolia API — pencarian post & komentar tech/startup community dengan points, comments, author. **Tags:** search, tech, news, hn ### Search Cari hasil pencarian berdasarkan keyword dengan pagination. - **Method:** `GET` - **Endpoint:** `https://api.zpi.web.id/v1/search-tools:hackernews/search` - **Cache TTL:** 180s **Parameters:** | Name | Type | Location | Required | Description | |------|------|----------|----------|-------------| | `query` | string | query | yes | Search keyword | | `page` | number | query | no | Result page (default 1, max 50) | **cURL:** ```bash curl "https://api.zpi.web.id/v1/search-tools:hackernews/search?query=python&page=1" \ -H "x-api-key: YOUR_API_KEY" ``` **JavaScript / TypeScript:** ```javascript const res = await fetch("https://api.zpi.web.id/v1/search-tools:hackernews/search?query=python&page=1", { headers: { "x-api-key": process.env.ZAPI_KEY } }); const data = await res.json(); ``` **Python:** ```python import requests r = requests.get("https://api.zpi.web.id/v1/search-tools:hackernews/search?query=python&page=1", headers={"x-api-key": "YOUR_API_KEY"}) data = r.json() ``` **Example response:** ```json { "page": 1, "count": 15, "items": [ { "url": "https://blog.discordapp.com/why-discord-is-switching-from-go-to-rust-a190bbca2b1f", "hnUrl": "https://news.ycombinator.com/item?id=22238335", "title": "Why Discord is switching from Go to Rust", "author": "Sikul", "points": 1582, "source": "news.ycombinator.com", "comments": 642, "createdAt": "2020-02-04T17:30:40Z" }, { "url": "https://loglog.games/blog/leaving-rust-gamedev/", "hnUrl": "https://news.ycombinator.com/item?id=40172033", "title": "Leaving Rust gamedev after 3 years", "author": "darthdeus", "points": 1484, "source": "news.ycombinator.com", "comments": 972, "createdAt": "2024-04-26T17:33:56Z" }, { "url": "https://fasterthanli.me/articles/a-half-hour-to-learn-rust", "hnUrl": "https://news.ycombinator.com/item?id=25610741", "title": "A half-hour to learn Rust", "author": "selvan", "points": 1444, "source": "news.ycombinator.com", "comments": 330, "createdAt": "2021-01-02T05:50:39Z" }, { "url": "http://blog.rust-lang.org/2015/05/15/Rust-1.0.html", "hnUrl": "https://news.ycombinator.com/item?id=9551937", "title": "Announcing Rust 1.0", "author": "jhund", "points": 1363, "source": "news.ycombinator.com", "comments": 306, "createdAt": "2015-05-15T17:02:09Z" }, { "url": "https://github.com/citybound/citybound", "hnUrl": "https://news.ycombinator.com/item?id=19583384", "title": "CityBound – An open source city simulation game in Rust", "author": "formalsystem", "points": 1340, "source": "news.ycombinator.com", "comments": 264, "createdAt": "2019-04-05T15:18:45Z" }, { "url": "https://sandspiel.club/", "hnUrl": "https://news.ycombinator.com/item?id=18696291", "title": "Sandspiel – A falling sand game built in Rust and WebGL", "author": "15DCFA8F", "points": 1323, "source": "news.ycombinator.com", "comments": 185, "createdAt": "2018-12-17T01:18:18Z" }, { "url": "https://ladybird.org/posts/adopting-rust/", "hnUrl": "https://news.ycombinator.com/item?id=47120899", "title": "Ladybird adopts Rust, with help from AI", "author": "adius", "points": 1274, "source": "news.ycombinator.com", "comments": 698, "createdAt": "2026-02-23T11:29:22Z" }, { "url": "https://words.steveklabnik.com/a-sad-day-for-rust", "hnUrl": "https://news.ycombinator.com/item?id=22075076", "title": "A Sad Day for Rust", "author": "pjmlp", "points": 1243, "source": "news.ycombinator.com", "comments": 991, "createdAt": "2020-01-17T14:57:28Z" } ], "total": 620288, "hasMore": true, "nextPage": 2 } ``` --- _Generated: 2026-08-02T14:23:00.398Z_