Hacker News new | ask | show | jobs
by janober 3156 days ago
Hi just launched this API. So would love to get feedback like what could be improved or what is missing. Is a first version so any kind comments are welcome!
1 comments

I tried a link to some product in some ecommerce (http://www.lazada.com.my/samsung-galaxy-note-8-6gb-ram64gb-r...), and it does extract the content.. but I only care about the "hero" item. Is it safe to just always take the 1st item in mainEntity>offers>offers[0]?
It did actually just extract the data of the "hero" item. The thing is that it gets offered by multiple companies for different prices. So all the prices are valid and none is right or wrong. So really depends what you want. If you want simply "a" price, you can take the first. If you want the cheapest one you would have to itterate over them to find it.