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

Get Restaurants from Latitude and Longitude

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

Route Schema (URL)

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

path Parameters.

ParameterTypeDescriptionRequired?Default
latitudestringLatitude of selected location.YesN/A
longitudestringLongitude of selected location.YesN/A

Query Parameters.

ParameterTypeDescriptionRequired?Default
typestringAvailable types (3):
"delivery" "pickup" "shop"
NoN/A
per_pagestringLimit results.No48

Request Samples

import axios from "axios";
 
// Example request using no paramters
const url = "https://api.pewds.vercel.app/foodpanda/restaurants/23.783782/90.368677?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": [
    {
      
    },
    {
      
    }
  ]
}
]