Foodpanda API endpoint
Returns one foodpanda restaurant's detail by code: name, address, coordinates, budget tier, rating and review count, cuisines, minimum order amount, minimum delivery fee, delivery/pickup availability, timezone, and a hero image. Supplying latitude and longitude only affects the (optional) computed fields the upstream itself returns for that coordinate; it does not filter or reject the lookup.
/foodpanda/restaurantQuery parameters:
market (optional, default sg) — Delivery Hero market the restaurant belongs to. One of sg, pk, bd, hk, my, ph, la, kh, tw, mm.code (required) — restaurant code, from /foodpanda/search's code field, e.g. dxpr.latitude (optional) — caller latitude, used only to compute distance_km on the response.longitude (optional) — caller longitude, used only to compute distance_km on the response.An unknown code returns 404.
Response fields are the same restaurant shape used by /foodpanda/search, plus the top-level market: code, name, address, city, latitude, longitude, distance_km, budget, rating, review_count, cuisines[], hero_image_url, minimum_delivery_fee, minimum_order_amount, minimum_delivery_time_minutes, is_delivery_available, is_pickup_available, has_discount, timezone, web_path, customer_phone, tags[], discounts[], and legal_information (legal_name, trade_register_number).
| Field | Filled in, of 3 checked | Values in the sample |
|---|---|---|
| id | 3 | |
| name | 3 | “Western” and 2 other values |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| market | string | No | sg | Delivery Hero market the restaurant belongs to. Defaults to sg. Allowed values: sg, pk, bd, hk, my, ph, la, kh, tw, mm. | sg |
| code | string | Yes | Restaurant code, from /foodpanda/search's code field | dxpr | |
| latitude | number | No | Caller latitude, optional | 1.3521 | |
| longitude | number | No | Caller longitude, optional | 103.8198 | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/foodpanda/restaurant?market=sg&code=dxpr" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"market": "sg",
"code": "dxpr",
"name": "NKS RESTAURANT (179 MACPHERSON RD) - Islandwide",
"address": "179 MACPHERSON ROAD, SINGAPORE 348539",
"city": "Singapore",
"latitude": 1.330233,
"longitude": 103.875209,
"budget": 1,
"rating": 3.8,
"review_count": 18,
"cuisines": [
{
"id": 44,
"name": "Indian"
}
],
"is_delivery_available": true,
"is_pickup_available": false,
"has_discount": false,
"timezone": "Asia/Singapore",
"customer_phone": "+6596694923",
"legal_information": {
"legal_name": "FOOD ASPIRATION PTE. LTD.",
"trade_register_number": "201304764C"
}
}
}Request schema
No body schema
Response schema
#/definitions/foodpanda.restaurantResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | Code is the HTTP status code or a custom code used to indicate the result of the request @example 200 | |||
| data | foodpanda.RestaurantResponse | No | ||||
| data.address | string | No | ||||
| data.budget | integer | No | ||||
| data.city | string | No | ||||
| data.code | string | No | ||||
| data.cuisines | array | No | ||||
| data.cuisines[].id | integer | No | ||||
| data.cuisines[].name | string | No | ||||
| data.customer_phone | string | No | ||||
| data.discounts | array | No | ||||
| data.discounts[].id | string | No | ||||
| data.discounts[].value | number | No | ||||
| data.distance_km | number | No | ||||
| data.has_discount | boolean | No | ||||
| data.hero_image_url | string | No | ||||
| data.is_delivery_available | boolean | No | ||||
| data.is_pickup_available | boolean | No | ||||
| data.latitude | number | No | ||||
| data.legal_information | foodpanda.LegalInformation | No | ||||
| data.legal_information.legal_name | string | No | ||||
| data.legal_information.trade_register_number | string | No | ||||
| data.longitude | number | No | ||||
| data.market | string | No | ||||
| data.minimum_delivery_fee | number | No | ||||
| data.minimum_delivery_time_minutes | number | No | ||||
| data.minimum_order_amount | number | No | ||||
| data.name | string | No | ||||
| data.rating | number | No | ||||
| data.review_count | integer | No | ||||
| data.tags | array | No | ||||
| data.tags[].code | string | No | ||||
| data.tags[].text | string | No | ||||
| data.timezone | string | No | ||||
| data.web_path | string | No | ||||
| msg | unknown | No | Msg is the message that describes the result of the request @example "Request successful" |
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 404 | Not Found | #/definitions/app.Response |
| 503 | Service Unavailable | #/definitions/app.Response |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/foodpanda/restaurant?market=sg&code=dxpr" \
-H "x-api-key: $CRAWLORA_API_KEY"