Back to APIs list

Hacker News API examples & templates

Use these vals as a playground to view and fork Hacker News API examples and templates on Val Town. Run any example below or find templates that can be used as a pre-built solution.
cocodrilette avatar
hnResume
@cocodrilette
Cron
Send the top 5 HackerNews post to your email every day at a given Datetime.
stevekrouse avatar
hnTopStory
@stevekrouse
HTTP
// Get the title of the top story on Hacker News
alexdphan avatar
hackerNewsSearch
@alexdphan
HTTP
An interactive, runnable TypeScript val by alexdphan
janpaul123 avatar
valle_tmp_7637538511907467267008900862313
@janpaul123
HTTP
* Hacker News Clone (HTML frontend) * This script sets up an HTTP Val to serve a simple HTML page that mimics Hacker News. * The page contains static, fake example stories for now.
browserbase avatar
TopHackerNewsDailyEmail
@browserbase
Cron
Browserbase Browserbase offers a reliable, high performance serverless developer platform to run, manage, and monitor headless browsers at scale. Leverage our infrastructure to power your web automation and AI agents. Get started with Browserbase for free here . If you have any questions, reach out to developer@browserbase.com.
janpaul123 avatar
valle_tmp_62963168422172378076257133989442
@janpaul123
HTTP
An interactive, runnable TypeScript val by janpaul123
cw12 avatar
hnResume
@cw12
Cron
Forked from cocodrilette/hnResume
janpaul123 avatar
valle_tmp_583694900399154559282687336321139
@janpaul123
HTTP
* This val will create a simple Hacker News clone with hardcoded example stories. * We'll use basic HTML for the layout and styling.
janpaul123 avatar
valle_tmp_821221338019192827080648147114728
@janpaul123
HTTP
// This HTTP val will generate an HTML frontend for a simple Hacker News clone.
maxm avatar
hn
@maxm
HTTP
// This approach injects a notification indicator with a counter into the top toolbar
janpaul123 avatar
valle_tmp_115772121902645334646172151872623
@janpaul123
HTTP
* This val creates a simple hacker news clone with 30 fake sample stories. * It uses blob storage to store story data, including the ability to submit * new stories and upvote existing stories.
charlypoly avatar
exampleTopHackerNewsDailyEmail
@charlypoly
Cron
An interactive, runnable TypeScript val by charlypoly
janpaul123 avatar
valle_tmp_3735050494903109427870190455998034
@janpaul123
HTTP
// This val will serve an HTML page emulating a Hacker News clone.
alexpetros avatar
hnTopStory
@alexpetros
HTTP
Forked from stevekrouse/hnTopStory
janpaul123 avatar
valle_tmp_6738558784733152514997198308998394
@janpaul123
HTTP
// This val will serve an HTML page emulating a Hacker News clone.
janpaul123 avatar
valle_tmp_8524715891926958662818742653551
@janpaul123
HTTP
// This val will serve an HTML page emulating a Hacker News clone.