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

Fetch Related Product Info

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

Route Schema (URL)

https://api.pewds.vercel.app/daraz/related/:id?shop={seller_id}

Path Parameters

ParameterTypeDescriptionRequired?Default
idstringGet related product from this id. Example:
"266816450"
YesN/A

Query Parameters

ParameterTypeDescriptionRequired?Default
shopstringGet product from same store with this shop id. Example:
"116936"
NoN/A

Request Samples

import axios from "axios";
 
 
const url = "https://api.pewds.vercel.app/daraz/related/223866897?shop=116936";
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

[
  {
    id: "string",
    title: "string",
    uploadedAt: "string",
    intro: "string",
    description: "string",
    thumbnail: "string",
    url: "string"
  }
]