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

Fetch Ads

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

Route Schema (URL)

https://api.pewds.vercel.app/bikroy/ads/

Query Parameters.

ParameterTypeDescriptionRequired?Default
searchstringThe search query; i.e. the name of the ads you are looking for.YesN/A
pageNumberPage Number.No1
categorySlugstringSlug of specific category.Examples:
"mobiles"
NoN/A
categoryNumberId of specific category.Examples:
"229"
NoN/A
locationSlugstringLocation Slug of specific category. Examples:
"mohammadpur" "dhaka"
NoN/A

Request Samples

import axios from "axios";
 
// Example request using no paramters.
const url = "https://api.pewds.vercel.app/bikroy/ads?search=iphone xs&categorySlug=mobiles";
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"
  },
]