InBetween

Menus

GET /v1/establishments/menus/{id} returns a venue's active menus, with sections, dishes, prices, dietary flags and choices.

GET https://api.inbe.us/v1/establishments/menus/{id}
ParameterInDescription
idpathVenue UUID from a search or find result. Required.

The response is an array of menus. When a venue has no active menus, it is an empty array ([]).

Example

curl "https://api.inbe.us/v1/establishments/menus/0b6f4f3e-5d0c-4a52-9d57-1e1f0d1a2b3c" \
  -H "API-Key: $INBE_API_KEY"
const res = await fetch(`https://api.inbe.us/v1/establishments/menus/${id}`, {
  headers: { "API-Key": process.env.INBE_API_KEY! },
});
const menus: Menu[] = await res.json();
200 OK
[
  {
    "name": "Lunch",
    "description": "Two courses, Monday to Friday",
    "price": "£24.00",
    "sections": [
      {
        "name": "Mains",
        "description": "",
        "price": "",
        "items": [
          {
            "name": "Steak frites",
            "description": "8oz bavette, peppercorn sauce",
            "ingredients": "beef, potato, peppercorn, cream",
            "calories": 920,
            "price": "£18.50",
            "dietaryFlags": ["gluten_free"],
            "choices": [
              {
                "name": "How would you like it cooked?",
                "description": "",
                "required": true,
                "choiceType": "SINGLE",
                "minSelections": 1,
                "maxSelections": 1,
                "options": [
                  {
                    "name": "Medium rare",
                    "description": "",
                    "default": true,
                    "price": "",
                    "dietaryFlags": [],
                    "calories": 0,
                    "maxQuantity": 1
                  },
                  {
                    "name": "Well done",
                    "description": "",
                    "default": false,
                    "price": "",
                    "dietaryFlags": [],
                    "calories": 0,
                    "maxQuantity": 1
                  }
                ]
              }
            ]
          }
        ],
        "subSections": []
      }
    ]
  }
]

Structure

Menu
└── sections[]
    ├── items[]
    │   └── choices[]
    │       └── options[]
    └── subSections[]   (same shape as a section, can be nested)
TypeScript types
type Menu = {
  name: string;
  description: string;
  price: string; // set-menu price, e.g. "£24.00", or ""
  sections: MenuSection[];
};

type MenuSection = {
  name: string;
  description: string;
  price: string;
  items: MenuItem[];
  subSections: MenuSection[];
};

type MenuItem = {
  name: string;
  description: string;
  ingredients: string;
  calories: number; // 0 when unknown
  price: string; // e.g. "£18.50", or ""
  dietaryFlags: string[]; // caters flag values, e.g. "vegan", "gluten_free"
  choices: ItemChoice[];
};

type ItemChoice = {
  name: string;
  description: string;
  required: boolean;
  choiceType: "SINGLE" | "GROUP";
  minSelections: number;
  maxSelections: number;
  options: ChoiceOption[];
};

type ChoiceOption = {
  name: string;
  description: string;
  default: boolean;
  price: string; // extra cost, or ""
  dietaryFlags: string[];
  calories: number;
  maxQuantity: number;
};

Things to know:

  • Prices are formatted strings in pounds ("£18.50"), or "" when there's no price. Parse them if you need to do maths.
  • dietaryFlags use the same values as catersFilters.
  • subSections can be nested, so render sections recursively.
  • Only active menus and sections are returned. Seasonal or retired menus are left out.

Dietary information

Menu data shows what a venue says it offers. Tell your users to confirm allergies and dietary requirements with the venue directly.

Errors

StatusWhen
400id isn't a valid UUID.
404No venue exists with this id. You aren't charged.

See Authentication & errors for 401, 402, 429 and 500.

API reference

GET
/v1/establishments/menus/{id}

Authorization

ApiKeyAuth
API-Key<token>

Your public (pk_…) or secret (sk_…) API key from the dashboard access page.

In: header

Path Parameters

id*string

Venue ID (UUID), as returned in establishments[].id from search or find.

Formatuuid

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/establishments/menus/0b6f4f3e-5d0c-4a52-9d57-1e1f0d1a2b3c"
[  {    "name": "string",    "description": "string",    "price": "string",    "sections": [      {        "name": "string",        "description": "string",        "price": "string",        "items": [          {            "name": "string",            "description": "string",            "ingredients": "string",            "calories": 0,            "price": "string",            "dietaryFlags": [              "alcohol_free"            ],            "choices": [              {                "name": "string",                "description": "string",                "required": true,                "choiceType": "SINGLE",                "minSelections": 0,                "maxSelections": 0,                "options": [                  {                    "name": "string",                    "description": "string",                    "default": true,                    "price": "string",                    "dietaryFlags": [                      "alcohol_free"                    ],                    "calories": 0,                    "maxQuantity": 0                  }                ]              }            ]          }        ],        "subSections": [          {}        ]      }    ]  }]
{  "error": "you submitted an incorrectly formatted request. please refer to our documentation and double check that the request body is formatted correctly. docs: https://www.inbe.us/docs/api/search"}
{  "error": {    "message": "Missing API key. Please include your API key in the API-Key header.",    "type": "authentication_error",    "code": "MISSING_API_KEY"  }}
{  "error": {    "message": "You ran out of credit. Please top up!",    "type": "billing_error",    "code": "INSUFFICIENT_CREDIT"  }}
{  "error": "no establishments were found for your input id"}
{  "error": {    "message": "Rate limit exceeded. Too many requests per second.",    "type": "rate_limit_error",    "code": "SECOND_LIMIT_EXCEEDED",    "limit": 5,    "reset": "1s",    "currentCount": 6,    "retryAfterSeconds": 1  }}
{  "error": "internal server fetching your data has occured. if the error persists please contact our support"}

Next steps

On this page