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.
dailyDadJoke
stevekrouse
dailyDadJoke
Daily Dad Joke How do you make a programmer laugh every morning? A dad joke cron job! Setup Fork this val Click Create fork 🤣🤣🤣🤣 API This val uses the icanhazdadjoke API . You can find more docs here , such as how to filter by type .
Cron
web_Zw1Asa4o7V
dhvanil
web_Zw1Asa4o7V
An interactive, runnable TypeScript val by dhvanil
HTTP
hackedHNSearch
stevekrouse
hackedHNSearch
An interactive, runnable TypeScript val by stevekrouse
Script
fearlessCrimsonMollusk
KGFGAMING
fearlessCrimsonMollusk
Remix of: KGFGAMING/lotteryHack
Script
web_LNXn0B7C9x
dhvanil
web_LNXn0B7C9x
An interactive, runnable TypeScript val by dhvanil
HTTP
web_kH7d5ah6xz
dhvanil
web_kH7d5ah6xz
An interactive, runnable TypeScript val by dhvanil
HTTP
web_FzOqLTzLOP
dhvanil
web_FzOqLTzLOP
An interactive, runnable TypeScript val by dhvanil
HTTP
dot_com
horatiothomas
dot_com
Remix of: stevekrouse/dot_com
HTTP
avidAmaranthHare
stevekrouse
avidAmaranthHare
Remix of: stevekrouse/dot_com
HTTP
dot_com
vpontis
dot_com
Remix of: stevekrouse/dot_com
HTTP
harpers
visnup
harpers
An interesting Harper's message of the day when I open a shell. Setup crontab to grab updates on the first of the month 10 0 1 * * curl -s https://visnup-harpers.web.val.run > $HOME/.motd ~/.config/fish/functions/fish_greeting.fish to pick a random line on new fish shell; other shell support left to the reader function fish_greeting set line (random 1 (cat ~/.motd | wc -l)) awk "NR==$line" ~/.motd | fold -s -w (tput cols) end
HTTP
web_YeFlAqrDrR
dhvanil
web_YeFlAqrDrR
An interactive, runnable TypeScript val by dhvanil
HTTP
web_2l64kXRF3P
dhvanil
web_2l64kXRF3P
An interactive, runnable TypeScript val by dhvanil
HTTP
oldHomepage
willthereader
oldHomepage
@jsxImportSource https://esm.sh/hono@latest/jsx
HTTP
azureBeetle
stevekrouse
azureBeetle
Remix of: willthereader/oldHomepage
HTTP
twitterDailyDigest
geoffreylitt
twitterDailyDigest
Remix of: stevekrouse/twitterAlert
Cron