Product Information JSON API for Daraz.PK built with ๐ Python and ๐บ Flask and deployed using ๐ผ Vercel.
This section gives you a brief introduction to the Daraz.PK API
The web API is hosted at https://daraz-abdulalikhan.vercel.app/
- ๐ Navigate to the product's page
- For instance: https://www.daraz.pk/products/ this-is-a-test-product-i212716725-s1420886889.html
- Copy the portion in this link after "https://www.daraz.pk/products/"
- Pass this portion of the product page as a parameter to the Daraz.PK API as follows: https://daraz-abdulalikhan.vercel.app/this-is-a-test-product-i212716725-s1420886889.html
The API will respond with the following attributes for the queried product in JSON format:
- Product Name (name)
- Product Price (price)
- Seller Name (seller)
- Product Category (category)
- Product Image (image)
- Discount (discount)
{
"category":[
"Pet Supplies",
"Dog",
"Dog Food",
"Dog Dry Food"
],
"discount":"",
"image":"https://static-01.daraz.pk/p/89cf667382e734d6522ce72eedc1eed2.jpg",
"name":"WOOF PUPPY FOOD 3KG",
"price":"Rs. 1,200",
"seller":"Be Happy Pets"
}