v1

latestOpenAPI 3.0.02026-07-1498671635.3 KB
Search
publicly-accessible

Search restaurants

Get restaurants available in a given lat-long which match a search term. Matches can be found against the name, a cuisine or a product.

get/search/restaurants/{tenant}

Path parameters

tenantstring required

A valid country code, e.g. "uk".

Query parameters

searchTermstring required

User's search term.

latlongnumber[] required

The latitude and longitude coordinates of the location in which to search. Specify the coordinates as latitude,longitude.

limitnumber

Limit the number of restaurants returned by the API. Valid values are numbers between 1 and 500. If not provided, the limit defaults to 300.

Response

Success

Example response

{
  "restaurants": [
    {
      "isSponsored": true,
      "products": [
        {
          "fullName": "Chicken Korma",
          "price": 799,
          "productId": "289347"
        },
        {
          "fullName": "Chicken Madras",
          "price": 699,
          "productId": "563454"
        }
      ],
      "restaurantId": "110230"
    },
    {
      "isSponsored": false,
      "products": [
        {
          "fullName": "BBQ Chicken Pizza",
          "price": 1099,
          "productId": "67832"
        },
        {
          "fullName": "Chicken Burger",
          "price": 899,
          "productId": "23567"
        }
      ],
      "restaurantId": "229390"
    }
  ]
}