Ask HN/PG: Is there an API for hackernews? 7 points by chunky1994 12y ago ↗ HN If so, where can I find it? If not, how did everyone who got data about HN (such as in posts about the best time to post etc.) get their data? Did you just crawl HN?
[–] mschuster91 12y ago ↗ Yeah, HTML scraping with PHP's DOM functions... I'm cleaning it up atm and will release it on github wehen done.HN is, from a technological POV, stuck in the Middle Ages when compared to the startups that YCombinator backs. [–] minimaxir 12y ago ↗ The Algolia API is far superior than any scraping API (incidentally, it's also a YC startup)
[–] minimaxir 12y ago ↗ The Algolia API is far superior than any scraping API (incidentally, it's also a YC startup)
[–] neilco 12y ago ↗ There's an API from the search engine provider, Algolia:https://hn.algolia.com/api
[–] minimaxir 12y ago ↗ The 2010 era blog posts on best time to post used scraping, but the Algolia API just released is robust enough for HN data analysis. (proof: http://minimaxir.com/2014/02/hacking-hacker-news/ )https://hn.algolia.com/api
[–] jaredsohn 12y ago ↗ To download all stories:https://github.com/minimaxir/hacker-news-download-all-storie...To download all comments:https://github.com/jaredsohn/hacker-news-download-all-commen...To download saved stories (not available via API; haven't personally tried it though):https://github.com/dougk7/hackernews-stories
6 comments
[ 5.4 ms ] story [ 19.7 ms ] threadHN is, from a technological POV, stuck in the Middle Ages when compared to the startups that YCombinator backs.
https://hn.algolia.com/api
https://hn.algolia.com/api
https://github.com/minimaxir/hacker-news-download-all-storie...
To download all comments:
https://github.com/jaredsohn/hacker-news-download-all-commen...
To download saved stories (not available via API; haven't personally tried it though):
https://github.com/dougk7/hackernews-stories