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.
dglazkov avatar
dglazkov
googlenews
HTTP
A sample implementation of Breadboard Service Endpoint (BSE) protocol. For more information, see Breadboard service node .
0
fab1an avatar
fab1an
getCNNNewsShort
Script
An interactive, runnable TypeScript val by fab1an
1
kajgod avatar
kajgod
fetchZrs
Cron
An interactive, runnable TypeScript val by kajgod
0
elsif_maj avatar
elsif_maj
nameTopHNThread
Script
An interactive, runnable TypeScript val by elsif_maj
0
jahabeebs avatar
jahabeebs
safeMessageBoard
HTTP
Forked from stevekrouse/safeMessageBoard
1
akkartik avatar
akkartik
hnAuthors
Script
An interactive, runnable TypeScript val by akkartik
1
rodrigotello avatar
rodrigotello
hnCommentToHTML
Script
Forked from stevekrouse/hnCommentToText
0
stevekrouse avatar
stevekrouse
tanLadybug
HTTP
Forked from jahabeebs/safeMessageBoard
0
tfayyaz avatar
tfayyaz
tahirsTil
HTTP
Forked from stevekrouse/linkInBioTemplate
0
tmcw avatar
tmcw
big_story_visualization
Express (deprecated)
The Big Story This val, along with @tmcw.big_story , which requests from the New York Times API , and @tmcw.big_stories_ranks , which contains the data, generates a visualization of top stories on the NYTimes homepage. This is here just to ask the question – what happens to cover stories over time? Do they slowly drop down the page, or just get replaced by a fully new lede? So far it doesn't have quite enough data to answer that question. But also, it might be neat because it'll show which kinds of stories make the front page - is it climate, war, politics, or something else? 👉 The Big Story (visualization)
4
deepfates avatar
deepfates
greenWren
HTTP
Forked from deepfates/HTMX_template
0
janpaul123 avatar
janpaul123
valle_tmp_3011947751662660376708881415586205
HTTP
// Initialize sample stories and store them in blob storage
0
janpaul123 avatar
janpaul123
valle_tmp_701816702132716405607952805626981
HTTP
// Initialize sample stories and store them in blob storage
0
kajgod avatar
kajgod
njuskaloCrawl
Script
Njuškalo Crawler Crawler for the most popular Croatian eBay-like online store. Allows for several search strings & e-mails if anything new is listed. Also has a password-protected frontend where you can set keywords: https://www.val.town/v/kajgod.njuskaloIndex create a val with only: 'const njuskaloData = {};' fork: Frontend Backend create secret in your profile: njuskalo_password open express endpoint on njuskaloIndex & set cron for njuskaloCrawl to run every hour or 15 min.
1
jdan avatar
jdan
esmTown
HTTP
Forked from jdan/blobImages
0
metart43 avatar
metart43
webhookHandler
Script
An interactive, runnable TypeScript val by metart43
0