Hi, I think you already know that when you click on the post link of a story, all stories from that top level domain appears.
If there is a video from YouTube, then, if I click on
(youtube.com)
, then all posts having YouTube as a top level domain appears as result.The API call looks like
from?site=YouTube.com
But this is always sorted based on time of posting. Can this be changed?Say, I want to see all stories from New Yorker, ranked based on votes those stories received, what do I do?
I know this part-
https://news.ycombinator.com/from?site=newyorker.com
But what more do I add to rank the result based on number of votes?Or is there a completely different way to do this?
https://hn.algolia.com/?query=newyorker.com&type=story&sort=...
With the domain as the search string ("&query=newyorker.com"), the results will be returned in groups, in (to my understanding) this order:
- (0) Posts with the literal string "newyorker.com" in the *title* (there are currently none)
- (1) Text posts containing "newyorker.com" links
- (2) Posts from the domain newyorker.com (or a URL that contains that substring)
If you scroll down to the (2) section, you will find what you asked for: all newyorker.com submissions, sorted by popularity.