Hey there!
For my website I need the price data from different links of the biggest retail shopping sites (e.g. shein, hm, nike,…)
So if I put a direct link to a product (e.g. nike.com/shoes/shoenumber123456) into a field, it should show me the price of this product. I think I know that I have to work with APIs from these different retailers, but I cant seem to find their APIs. Shouldnt retailers that big have APIs? Is there another way of accomplishing my goal?
Thanks in advance!
Could you perhaps tell me a bit more about ur use case, I’m developing a swiss knife API for low code and I think what you’re asking for is quite doable as long as you’re providing the link to the product page.
So the User puts the link to the product into an input field. For example this link:
Link to a Shein Product
And after pressing a button the user can see the price of the product. Another feature would also be to show the pictures of the product, but I would be happy with price only.
Unless you’re going to add an API request for each possible store a user wants to see (and not all stores will have APIs), you’re best off making 1 API request to a web scraper API (https://www.scraperapi.com/, https://zenscrape.com/, https://www.scrapingbee.com/ etc) to get the page’s HTML. Run a regex search to find the first price on the page (first text beginning with $). You might be better off finding a scraper that might use AI to work out which text is the main price element though as this method might be thrown off if there are things like ‘$5 off’ offers higher up the page.