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

Get Search results from Name ,Latitude and Longitude

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

Route Schema (URL)

https://api.pewds.vercel.app/foodpanda/search/{latitude}/{longitude}/{query}?type={type}

path Parameters.

ParameterTypeDescriptionRequired?Default
latitudestringLatitude of selected location.YesN/A
longitudestringLongitude of selected location.YesN/A
querystringThe search query; i.e. the name of the restaurant or menu you are looking for.YesN/A

Query Parameters.

ParameterTypeDescriptionRequired?Default
typestringAvailable types (2):
"delivery" "pickup"
NoN/A
per_pagestringThe numb of results per page to return.No48

Request Samples

import axios from "axios";
 
// Example request using no paramters
const url = "https://api.pewds.vercel.app/foodpanda/search/23.7701456/90.3768805/burger?per_page=2&type=pickup";
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": [
    {
      
    },
    {
      
    }
  ]
}
]