{
"by" : "jkarneges",
"id" : 45533018,
"kids" : [ 45533616 ],
"parent" : 45532549,
"text" : "The HN/Firebase API doesn't make this easy. For <a href=\"https://hnstream.com\" rel=\"nofollow\">https://hnstream.com</a> I ended up crawling items to find the article.",
"time" : 1760043552,
"type" : "comment"
}
"parent" can either be the actual parent comment or the parent article, depending where in the comment chain you are.
As does hnstream.com from the sourced sample comment itself. Both just traverse the parent id until it's the root (article). It takes more queries, but the API is not rate limited.
Comment items look like https://hacker-news.firebaseio.com/v0/item/45533616.json?pri...:
"parent" can either be the actual parent comment or the parent article, depending where in the comment chain you are.
Perhaps @kogir, who was active on https://github.com/HackerNews/API could add the thread id.
https://jaytaylor.github.io/hn-live2 is doing it though.
As does hnstream.com from the sourced sample comment itself. Both just traverse the parent id until it's the root (article). It takes more queries, but the API is not rate limited.
1 reply →