Hacker News search via Algolia API — pencarian post & komentar tech/startup community dengan points, comments, author.
searchslow, 2.8s/v1/search-tools:hackernews/search3m cache2 paramschecking key…// npm i zpi-sdk
import { ZpiClient } from "zpi-sdk";
const client = new ZpiClient({ apiKey: "zpi_xxxxxxxxxxxxxxxxxxxxxxxx" });
const data = await client.run("search-tools:hackernews", "search", {
"query": "python",
"page": 1
});
console.log(data);curl -X GET "https://api.zpi.web.id/v1/search-tools:hackernews/search?query=python&page=1" \
-H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"/v1/search-tools:hackernews/searchCari hasil pencarian berdasarkan keyword dengan pagination.querystringrequiredpagenumberoptionalcurl -X GET "https://api.zpi.web.id/v1/search-tools:hackernews/search?query=python&page=1" \
-H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"{
"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
}