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.
janpaul123 avatar
valle_tmp_0088092323198285537184706961400471
@janpaul123
HTTP
// Initialize sample stories and store them in blob storage
iakovos avatar
hnTopTenStories
@iakovos
Script
// Get the title of the top story on Hacker News
janpaul123 avatar
valle_tmp_3607258085523705726507190480068266
@janpaul123
HTTP
// Initialize sample stories and store them in blob storage
janpaul123 avatar
valle_tmp_459423574352421057264033168224449
@janpaul123
HTTP
// Initialize sample stories and store them in blob storage
janpaul123 avatar
valle_tmp_3281791973083323415470267124650072
@janpaul123
HTTP
An interactive, runnable TypeScript val by janpaul123
janpaul123 avatar
valle_tmp_14787389514247828561625352472568
@janpaul123
HTTP
An interactive, runnable TypeScript val by janpaul123
janpaul123 avatar
valle_tmp_860649174983515800013843686585945925
@janpaul123
HTTP
// This val will serve an HTML page emulating a Hacker News clone. It uses plain HTML and CSS to create the frontend.
janpaul123 avatar
valle_tmp_37032806114103356497303187371446
@janpaul123
HTTP
An interactive, runnable TypeScript val by janpaul123
janpaul123 avatar
valle_tmp_26078469653238519037257020956977
@janpaul123
HTTP
An interactive, runnable TypeScript val by janpaul123
janpaul123 avatar
valle_tmp_37837502302405213008399027398504622
@janpaul123
HTTP
An interactive, runnable TypeScript val by janpaul123
janpaul123 avatar
valle_tmp_065083194034399444924236047421617
@janpaul123
HTTP
// Initialize sample stories and store them in blob storage
yawnxyz avatar
hnCloneLuciaOauth
@yawnxyz
HTTP
Forked from stevekrouse/givenOliveScorpion
janpaul123 avatar
valle_tmp_46943868107891815759175483516619
@janpaul123
HTTP
An interactive, runnable TypeScript val by janpaul123
janpaul123 avatar
valle_tmp_880820168898077728093213546584606
@janpaul123
HTTP
// Initialize sample stories and store them in blob storage
janpaul123 avatar
valle_tmp_7848874273078958552804771654705
@janpaul123
HTTP
// Initialize sample stories and store them in blob storage
janpaul123 avatar
valle_tmp_98139518017595684072811081715226
@janpaul123
HTTP
// Initialize sample stories and store them in blob storage