This task is also called Named Entity Recognition (NER). In our case the entities are foods. Either dishes, such as pizza and cheeseburger or ingredients, such as cucumber and almonds.
You can use this endpoint here: Detect Food in Text
Change the text in the box and press "Detect". The detected dishes will be displayed in red and the detected ingredients in purple.