Live data from Hacker News

Hacking Hacker News

joelgrus.com

1–10 of 54 posts

Re: Hacking Hacker News

#4

FYI, the new Hacker News API allows easy programmatic access of story/comments and infinite chronological paging. You could download every Hacker News story in less than 2 hours without breaking the API request limit. https://hn.algolia.com/api

"new Hacker News API" -> do you mean there's now an official API? I must have missed this news. Can you provide a link / additional info?

Re: Hacking Hacker News

#5

FYI, the new Hacker News API allows easy programmatic access of story/comments and infinite chronological paging. You could download every Hacker News story in less than 2 hours without breaking the API request limit. https://hn.algolia.com/api

the new Hacker News API allows easy programmatic access of story/comments and infinite chronological paging. You could download every Hacker News story in less than 2 hours without breaking the API request limit.

Which API? https://www.google.com/search?q=hacker+news+api

Re: Hacking Hacker News

#6

FYI, the new Hacker News API allows easy programmatic access of story/comments and infinite chronological paging. You could download every Hacker News story in less than 2 hours without breaking the API request limit. https://hn.algolia.com/api

the new Hacker News API allows easy programmatic access of story/comments and infinite chronological paging. You could download every Hacker News story in less than 2 hours without breaking the API request limit. Which API? https://www.google.com/search?q=hacker+news+api

With hnsearch.com being shutdown, I believe he is referring to: http://hn.algolia.com/api

Re: Hacking Hacker News

#7
post #6

Earlier quoted context omitted.

the new Hacker News API allows easy programmatic access of story/comments and infinite chronological paging. You could download every Hacker News story in less than 2 hours without breaking the API request limit. Which API? https://www.google.com/search?q=hacker+news+api

With hnsearch.com being shutdown, I believe he is referring to: http://hn.algolia.com/api

Using that API, you could download 48,000 hacker news stories in 2 days, so if there have been less than 48,000 submissions, then what minimaxir said is true. But first you'd need to generate a list of all 48,000 story ids, and there seems to be no way to actually do that.

Re: Hacking Hacker News

#8
post #6

Earlier quoted context omitted.

With hnsearch.com being shutdown, I believe he is referring to: http://hn.algolia.com/api

Using that API, you could download 48,000 hacker news stories in 2 days, so if there have been less than 48,000 submissions, then what minimaxir said is true. But first you'd need to generate a list of all 48,000 story ids, and there seems to be no way to actually do that.

No need to generate all IDs beforehand. The search_by_date endpoint is fine. You have to paginate using the created_at_i parameter, not the page parameter.

Also, you can set hitsPerPage = 1000. ;)

Re: Hacking Hacker News

#10

FYI, the new Hacker News API allows easy programmatic access of story/comments and infinite chronological paging. You could download every Hacker News story in less than 2 hours without breaking the API request limit. https://hn.algolia.com/api

This is old so what you're suggesting wouldn't be possible unless he updated it (which I don't think he has any reason to do).
Post reply on HN