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

Search

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

Route Schema (URL)

https://api.pewds.vercel.app/prothomalo/search/{query}?start_from=0&per_page=15

Path Parameters

ParameterTypeDescriptionRequired?Default
querystringThe search query; i.e. the title of the news you are looking for.YesN/A

Query Parameters

ParameterTypeDescriptionRequired?Default
start_fromNumberNews Start From.No0
per_pageNumberNews Per Page.No15

Request Samples

import axios from "axios";
 
// Example request using no paramters
const url = "https://api.pewds.vercel.app/prothomalo/search/sheikh hasina?start_from=0&per_page=15";
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

[
{
  "total": string,
  "items": [
    {
      
    },
    {
      
    }
  ]
}
]