Recent Hacker News items
Start from a bounded source-native sample before adding filters or aggregates.
SELECT hn_id, title, original_author, original_timestamp, uri FROM hackernews.items WHERE title != '' ORDER BY hn_id DESC LIMIT 20;
Source
Every Hacker News story and comment, queryable with read-only SQL — source-native records, timestamps, authors, scores, and a live tail.
hackernews.itemsPublic Hacker News item API and archive-derived source-native records.
hn_idsearch_keysourceexternal_typekindurihn_typetitleoutbound_urlpayloadblake3_hashoriginal_authororiginal_timestampparent_hn_idstory_hn_idupvotescomment_countword_countmetadataentity_idanchor_entity_idis_deletedcreated_atupdated_atloaded_atsearch_text_lcRead live from the schema registry for hackernews.items — 26 columns. Every relation's full contract is served by /v1/scry/schema.
Start from a bounded source-native sample before adding filters or aggregates.
SELECT hn_id, title, original_author, original_timestamp, uri FROM hackernews.items WHERE title != '' ORDER BY hn_id DESC LIMIT 20;
Aggregate public Hacker News posts and comments by author and year.
SELECT toYear(original_timestamp) AS year,
count() AS items,
sum(ifNull(upvotes, 0)) AS upvotes
FROM hackernews.items
WHERE original_author = 'pg'
AND original_timestamp IS NOT NULL
GROUP BY year
ORDER BY year DESC
LIMIT 20;