Hacker News

Hacker News search via Algolia API — pencarian post & komentar tech/startup community dengan points, comments, author.

1 endpoint157 calls1/1 passing
Get API key

Cari hasil pencarian berdasarkan keyword dengan pagination.

GET/v1/…hackernews/search
passing · 3.5s3m cache

Try it

Checking your keys…

Parameters

query

string · query · required

Search keyword.

page

number · query · optional

Result page (default 1, max 50).

Example response

{"project":"search-tools:hackernews",  "data": {"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  },"timestamp":"2026-05-27T13:33:54Z"}

Errors

  • 401Missing or invalid x-api-key
  • 404Not found or private
  • 429Rate limit or monthly quota reached

Code

const data = await client.run(  "search-tools:hackernews",  "search",  { query: "python", page: 1 });