🚧 The Pewds api documentation is undergoing reconstruction. Please be patient for all providers to be fully-documented. 🚧
API
Ecommerce
Daraz
Category

Fetch product From Specific Category

Example code is provided for both JavaScript , along with a response schema.

Route Schema (URL)

https://api.pewds.vercel.app/daraz/category/{ud}

Path Parameters

ParameterTypeDescriptionRequired?Default
idExamples:
"mens-casual-shirts" "womens-sarees" "mens-watches"
The Id of the specific category.YesN/A

Query Parameters (Upcoming).

ParameterTypeDescriptionRequired?Default
pageNumberPage Number.No1

Request Samples

import axios from "axios";
 
// Example request using no paramters.
const url = "https://api.pewds.vercel.app/daraz/category/mens-watches";
const data = async () => {
    try {
        const { data } = await axios.get(url);
        return data;
    } catch (err) {
        throw new Error(err.message);
    }
};
 
console.log(data);

Response Schema

MIME Type: application/json

[
  {
      "title": "string",
      "id": "string",
      "uploadedAt": "string",
      "topics": [
          "string"
      ],
      "preview": {
          "intro": "string",
          "full": "string"
      },
      "thumbnail": "string",
      "url": "string"
  },
]