← Nyheter og sosialt

HN topphistorier

GET /news/hackernews/top

Hent de nåværende topphistoriene fra Hacker News, rangert av HN-rangeringsalgoritmen (en kombinasjon av stemmer og aktualitet). Returnerer historietitler, URL-er, poengsummer, kommentartall og forfattere. Konfigurerbar grense (standard 20). Essensielt for utviklernyheetsstrømmer, teknologidashbord og oppstartssamfunnsverktøy. Data hentet i sanntid fra den offisielle Hacker News Firebase API.

Parametere

limit valgfri standard: 20

Limit

Eksempelforespørsler

Grunnleggende bruk
curl https://nordapi.ee/api/v1/news/hackernews/top
Top 20 HN stories (default)
curl https://nordapi.ee/api/v1/news/hackernews/top
Top 5 HN stories
curl "https://nordapi.ee/api/v1/news/hackernews/top?limit=5"
Top 50 HN stories
curl "https://nordapi.ee/api/v1/news/hackernews/top?limit=50"

Livesvar

{
  "count": 20,
  "data": [
    {
      "by": "janandonly",
      "comments": 62,
      "hn_url": "https://news.ycombinator.com/item?id=47652561",
      "id": 47652561,
      "score": 229,
      "time": 1775414753,
      "title": "Gemma 4 on iPhone",
      "url": "https://apps.apple.com/nl/app/google-ai-edge-gallery/id6749645337"
    },
    {
      "by": "cl3misch",
      "comments": 28,
      "hn_url": "https://news.ycombinator.com/item?id=47637377",
      "id": 47637377,
      "score": 104,
      "time": 1775294434,
      "title": "LÖVE: 2D Game Framework for Lua",
      "url": "https://github.com/love2d/love"
    },
    {
      "by": "mooreds",
      "comments": 268,
      "hn_url": "https://news.ycombinator.com/item?id=47649721",
      "id": 47649721,
      "score": 344,
      "time": 1775398692,
      "title": "Artemis II crew see first glimpse of far side of Moon [video]",
      "url": "https://www.bbc.com/news/videos/ce3d5gkd2geo"
    },
    {
      "by": "brilee",
      "comments": 146,
      "hn_url": "https://news.ycombinator.com/item?id=47648828",
      "id": 47648828,
      "score": 488,
      "time": 1775393027,
      "title": "Eight years of wanting, three months of building with AI",
      "url": "https://lalitm.com/post/building-syntaqlite-ai/"
    },
    {
      "by": "vbtechguy",
      "comments": 25,
      "hn_url": "https://news.ycombinator.com/item?id=47651540",
      "id": 47651540,
      "score": 97,
      "time": 1775409231,
      "title": "Running Gemma 4 locally with LM Studio's new headless CLI and Claude Code",
      "url": "https://ai.georgeliu.com/p/running-google-gemma-4-locally-with"
    },
    {
      "by": "tosh",
      "comments": 291,
      "hn_url": "https://news.ycombinator.com/item?id=47647455",
      "id": 47647455,
      "score": 615,
      "time": 1775379378,
      "title": "Caveman: Why use many token when few token do trick",
      "url": "https://github.com/JuliusBrussee/caveman"
    },
    {
      "by": "g0xA52A2A",
      "comments": 10,
      "hn_url": "https://news.ycombinator.com/item?id=47650312",
      "id": 47650312,
      "score": 106,
      "time": 1775402281,
      "title": "A tail-call interpreter in (nightly) Rust",
      "url": "https://www.mattkeeter.com/blog/2026-04-05-tailcall/"
    },
    {
      "by": "teleforce",
      "comments": 9,
      "hn_url": "https://news.ycombinator.com/item?id=47650502",
      "id": 47650502,
      "score": 75,
      "time": 1775403498,
      "title": "Computational Physics (2nd Edition)",
      "url": "https://websites.umich.edu/~mejn/cp2/"
    },
    {
      "by": "desideratum",
      "comments": 19,
      "hn_url": "https://news.ycombinator.com/item?id=47649742",
      "id": 47649742,
      "score": 117,
      "time": 1775398877,
      "title": "Nanocode: The best Claude Code that $200 can buy in pure JAX on TPUs",
      "url": "https://github.com/salmanmohammadi/nanocode/discussions/1"
    },
    {
      "by": "merusame",
      "comments": 8,
      "hn_url": "https://news.ycombinator.com/item?id=47652322",
      "id": 47652322,
      "score": 32,
      "time": 1775413388,
      "title": "Music for Programming",
      "url": "https://musicforprogramming.net"
    },
    {
      "by": "eisa01",
      "comments": 70,
      "hn_url": "https://news.ycombinator.com/item?id=47652324",
      "id": 47652324,
      "score": 116,
      "time": 1775413394,
      "title": "LibreOffice – Let's put an end to the speculation",
      "url": "https://blog.documentfoundation.org/blog/2026/04/05/lets-put-an-end-to-the-speculation/"
    },
    {
      "by": "ewidar",
      "comments": 4,
      "hn_url": "https://news.ycombinator.com/item?id=47653816",
      "id": 47653816,
      "score": 25,
      "time": 1775422792,
      "title": "UK intelligence censored report on global warming and homeland security",
      "url": "https://theoryofchange1.substack.com/p/from-global-warming-to-homeland-security"
    },
    {
      "by": "surprisetalk",
      "comments": 5,
      "hn_url": "https://news.ycombinator.com/item?id=47615003",
      "id": 47615003,
      "score": 15,
      "time": 1775140137,
      "title": "The underrated benefits of always having oatmeal at lunch",
      "url": "https://hazn.com/oatmeal"
    },
    {
      "by": "everbody",
      "comments": 0,
      "hn_url": "https://news.ycombinator.com/item?id=47651479",
      "id": 47651479,
      "score": 29,
      "time": 1775408935,
      "title": "From birds to brains: My path to the fusiform face area (2024)",
      "url": "https://www.kavliprize.org/nancy-kanwisher-autobiography"
    },
    {
      "by": "jspdown",
      "comments": 127,
      "hn_url": "https://news.ycombinator.com/item?id=47646843",
      "id": 47646843,
      "score": 239,
      "time": 1775372239,
      "title": "Lisette a little language inspired by Rust that compiles to Go",
      "url": "https://lisette.run/"
    },
    {
      "by": "janandonly",
      "comments": 40,
      "hn_url": "https://news.ycombinator.com/item?id=47648048",
      "id": 47648048,
      "score": 110,
      "time": 1775385666,
      "title": "Friendica – A Decentralized Social Network",
      "url": "https://friendi.ca/"
    },
    {
      "by": "Growtika",
      "comments": 192,
      "hn_url": "https://news.ycombinator.com/item?id=47649113",
      "id": 47649113,
      "score": 287,
      "time": 1775394876,
      "title": "Finnish sauna heat exposure induces stronger immune cell than cytokine responses",
      "url": "https://www.tandfonline.com/doi/full/10.1080/23328940.2026.2645467#abstract"
    },
    {
      "by": "matheusmoreira",
      "comments": 10,
      "hn_url": "https://news.ycombinator.com/item?id=47612331",
      "id": 47612331,
      "score": 38,
      "time": 1775124676,
      "title": "Baby's Second Garbage Collector",
      "url": "https://www.matheusmoreira.com/articles/babys-second-garbage-collector"
    },
    {
      "by": "waveywaves",
      "comments": 40,
      "hn_url": "https://news.ycombinator.com/item?id=47645025",
      "id": 47645025,
      "score": 102,
      "time": 1775349618,
      "title": "Show HN: Contrapunk – Real-time counterpoint harmony from guitar input",
      "url": "https://contrapunk.com/"
    },
    {
      "by": "zaikunzhang",
      "comments": 496,
      "hn_url": "https://news.ycombinator.com/item?id=47647788",
      "id": 47647788,
      "score": 759,
      "time": 1775383045,
      "title": "The threat is comfortable drift toward not understanding what you're doing",
      "url": "https://ergosphere.blog/posts/the-machines-are-fine/"
    }
  ],
  "success": true
}