Skip to content
This repository has been archived by the owner on Jun 8, 2023. It is now read-only.

Latest commit

 

History

History
46 lines (36 loc) · 1.59 KB

README.md

File metadata and controls

46 lines (36 loc) · 1.59 KB

Daraz.PK Product Information API

Product Information JSON API for Daraz.PK built with 🐍 Python and 🏺 Flask and deployed using 🔼 Vercel.

📢 Note: As of June 8, 2023, this project is no longer maintained and has been archived.

API Usage

This section gives you a brief introduction to the Daraz.PK API

The web API is hosted at https://daraz-abdulalikhan.vercel.app/

To query the information for a product listed on Daraz.pk

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)

In this case, the API responds with the following JSON data

{
  "category": [
    "Fashion", 
    "Men", 
    "Clothing", 
    "Casual Tops", 
    "T-Shirts"
  ], 
  "discount": "-55%", 
  "image": "https://static-01.daraz.pk/p/444c65c97cc08a4df20ac04b32b39846.jpg", 
  "name": "Select by Daraz Basic Round Neck T-Shirt For Men", 
  "price": "Rs. 550", 
  "seller": "Select by Daraz"
}