Hacker News-API

Hacker News-Story-Kommentare-API

Liste die Kommentare zu einer Hacker-News-Story per ID auf: Text, Autor und Zeitstempel als sauberes JSON.

1,50 USD/1k Anfr., Zahlung pro Anfrage, kein Abo.

Hacker News
news.ycombinator.com/item?id=45389217
Hacker News

▲

gwern_reader Sep 27, 2025 | next [-]

The interesting bit here is not Rust itself, it is that they went from a 40 minute cold build to under 3 minutes by caching at the crate graph level instead of the file level. That is a build system design decision, not a language one.

reply

▲
▲
Was die API zurückgegeben hatcomments[0]
{
"id": "45389802",
"parentId": "45389217",
"author": "gwern_reader",
"text": "The interesting bit here is not Rust itself, it is that they went from a 40 minute cold build to under 3 minutes by caching at the crate graph level instead of the file level. That is a build system design decision, not a language one.",
"createdUtc": 1758981900,
"postId": "45389217",
"permalink": "https://news.ycombinator.com/item?id=45389802"
}
Verfügbarkeit
100,00%
30d · 11 Aufrufe
Anfragen
11
30 T · wöchentlich, letzte 12 Wochen
Antwort
0,4s
Median · 30d

Preise und Anbieter

Preise der Hacker News-Story-Kommentare-API: eine API, 2 austauschbare Anbieter

Der günstigste Anbieter bedient zuerst. Fällt er aus, übernimmt der nächste im selben Aufruf.

Du zahlst
15,00 USD
1,50 USD/1k Anfr., nur für das, was du nutzt. Kein Monatstarif.
Deine ersten 66 Anfragen sind mit dem Startguthaben von 0,10 USD kostenlos.

Ausprobieren

Hacker News Story-Kommentare mit einer Anfrage abrufen

Öffnen in
Beispielantwort
Kostenlose Läufe liefern nur die ersten 3 Ergebnisse. Lade einen Schlüssel auf, um die vollständige Antwort zu bekommen.
{
  "found": true,
  "data": {
    "comments": [
      {
        "id": "45389802",
        "parentId": "45389217",
        "author": "gwern_reader",
        "text": "The interesting bit here is not Rust itself, it is that they went from a 40 minute cold build to under 3 minutes by caching at the crate graph level instead of the file level. That is a build system design decision, not a language one.",
        "createdUtc": 1758981900,
        "postId": "45389217",
        "permalink": "https://news.ycombinator.com/item?id=45389802"
      },
      {
        "id": "45389944",
        "parentId": "45389802",
        "author": "tuple_of_one",
        "text": "Bazel does crate level caching too if you use rules_rust, curious why they rolled their own instead.",
        "createdUtc": 1758983160,
        "postId": "45389217",
        "permalink": "https://news.ycombinator.com/item?id=45389944"
      },
      {
        "id": "45390110",
        "parentId": "45389217",
        "author": "kvasir_dev",
        "text": "Author here. We looked at Bazel first, the migration cost for our existing Go and TypeScript services was the blocker, not the caching model.",
        "createdUtc": 1758984720,
        "postId": "45389217",
        "permalink": "https://news.ycombinator.com/item?id=45390110"
      }
    ]
  }
}

Vollständige Parameter- und Antwortreferenz: jedes Feld, jeder Typ und jedes Beispiel für diesen Endpoint.

Referenz

Eine Anfrage, eine Antwortstruktur.

Jedes Feld, das du sendest, und jedes Feld, das du zurückbekommst, jeweils mit einem echten Beispiel.

Zuletzt geprüft 2026-10-07 · Verfügbarkeit und Latenz gemessen über 30d

Request-Body

JSON, per POST an diesen Endpoint gesendet.

  • idstring

    45389217

    Hacker-News-Story-ID, z. B. „47340079“.

Du sendest. Ein kleiner JSON-Body. Die gezeigten Werte sind Beispiele, die du durch deine eigenen ersetzt.

Antwort

JSON, ein Beispielwert pro Feld.

  • foundboolean

    true

each commentdata.comments[]
  • idstring

    45389802

  • parentIdstring

    45389217

  • authorstring

    gwern_reader

  • textstring

    The interesting bit here is not Rust itself, it is that they went from a 40 minute cold build to under 3 minutes by caching at the crate graph level instead of the file level. That is a build system design decision, not a language one.

  • createdUtcnumber

    1758981900

  • postIdstring

    45389217

  • permalinkstring

    https://news.ycombinator.com/item?id=45389802

Du bekommst zurück. Benannte, typisierte Felder in derselben Struktur, egal welche Quelle antwortet.

FAQ

Über die Hacker News-Story-Kommentare-API

Die AnyAPI-Hacker News-Story-Kommentare-API liefert Hacker News-Daten als normalisiertes JSON aus einem POST-Aufruf an /v1/run/hackernews.story_comments. Liste die Kommentare zu einer Hacker-News-Story per ID auf: Text, Autor und Zeitstempel als sauberes JSON. AnyAPI routet jede Anfrage über 2 Quellen und weicht automatisch aus, wenn eine ausfällt. Sie kostet ab 1,50 USD pro 1.000 Anfragen, in US-Dollar, ohne Abo und ohne monatliches Minimum. In den letzten 30 Tagen waren 100,0% der Hacker News Story-Kommentare-Aufrufe über AnyAPI erfolgreich, bei einer mittleren Antwortzeit von 0,4 Sekunden über 11 gemessene Aufrufe.

Sie kostet ab 1,50 USD pro 1.000 Anfragen, in US-Dollar, ohne Abo und ohne monatliches Minimum. Du lädst ein USD-Guthabenkonto auf, und jeder Aufruf bucht davon ab. Bei manchen fehlgeschlagenen, vom Guthabenkonto bezahlten Anfragen fallen Bearbeitungsgebühren an, die wir zum Selbstkostenpreis ohne Aufschlag weitergeben. Die Fehlerantwort zeigt den berechneten Betrag.

Liste die Kommentare zu einer Hacker-News-Story per ID auf: Text, Autor und Zeitstempel als sauberes JSON. Die Antwort ist normalisiertes JSON mit demselben Envelope, den jeder AnyAPI-Endpoint liefert, sodass das Parsen eines zweiten Endpoints nur eine geänderte URL bedeutet.

In den letzten 30 Tagen waren 100,0% der Hacker News Story-Kommentare-Aufrufe über AnyAPI erfolgreich, bei einer mittleren Antwortzeit von 0,4 Sekunden über 11 gemessene Aufrufe. Das sind AnyAPIs eigene Messungen des Traffics durch das Gateway, laufend neu berechnet, kein veröffentlichtes Service-Level-Ziel.

Ja. Ein neues AnyAPI-Konto startet mit 0,10 USD Gratis-Guthaben, ohne Karte. Das deckt 66 Hacker News-Story-Kommentare-Aufrufe zu je 0,0015 USD.

AnyAPI fragt in derselben Anfrage die nächste seiner 2 Quellen, die günstigste zuerst, sodass der Ausfall einer Quelle deinen Aufruf nicht scheitern lässt.

Sende eine POST-Anfrage an https://api.getanyapi.com/v1/run/hackernews.story_comments mit deinem AnyAPI-Schlüssel in einem Header „Authorization: Bearer“ und der Eingabe als JSON-Body. Derselbe Schlüssel und dasselbe Guthabenkonto funktionieren bei jedem AnyAPI-Endpoint.

Nein. Du lädst US-Dollar auf ein Prepaid-AnyAPI-Guthaben, und jede Anfrage bucht davon ab. Es gibt keinen Monatstarif und kein Minimum, und dasselbe Guthaben bezahlt jeden AnyAPI-Endpoint.

Ja. Installiere @getanyapi/sdk von npm für TypeScript oder getanyapi von pip für Python. Beide rufen jeden AnyAPI-Endpoint mit demselben Schlüssel auf, und jeder HTTP-Client funktioniert ebenfalls.

Ja. Ein Agent kann sich mit dem AnyAPI-MCP-Server unter https://api.getanyapi.com/mcp verbinden oder mit einem unauthentifizierten POST an https://api.getanyapi.com/agent/signup einen eigenen kostenlosen Test-Schlüssel erstellen und diesen Endpoint über HTTP aufrufen.