which should be a lot faster than crawling HN itself to get the same data.
which should be a lot faster than crawling HN itself to get the same data.
http://kaspa.rs/hn-bookmarklet/
If the current URL is added, it will go straight to discussion thread (without voting). If not, it will ask if you want to submit it.
However - I don't always want to upvote a post just because I want to check the discussion. Published this with an assumption that I'm not the only one.
When I build this web app http://www.vcarrer.com/2010/11/hacker-news-mobile-front-page... I need to use Yahoo YQL to obtain JSONP.
So pretty please, add JSONP.
Edit: Nevermind, figured it out: http://api.thriftdb.com/api.hnsearch.com/items/_search?prett...
The `id` attribute on the other hand is an item's submission id. It's not indexed though so you can't do lookup by id.
How do I find this comment through the API? How do I find its replies?
I would like to lookup items by HN id.
The `filter` arguments are used to cut the data before performing a full-text query:
`filter[fields][fieldname]` can be used to filter on fieldnames:
http://api.thriftdb.com/api.hnsearch.com/items/_search?filte...
`filter[queries][]` can be used to add arbitrary filters:
http://api.thriftdb.com/api.hnsearch.com/items/_search?filte...
http://api.thriftdb.com/api.hnsearch.com/items/_search?filte...
The syntax for filter queries is the same as solr: