---
title: "Detect Food in Text"
method: POST
path: "/food/detect"
tags: ["misc"]
---

# Detect Food in Text

`POST /food/detect`

Take any text and find all mentions of food contained within it. This task is also called Named Entity Recognition (NER). In this case, the entities are foods. Either dishes, such as pizza or cheeseburger, or ingredients, such as cucumber or almonds.

## Headers

- `Content-Type` 'application/x-www-form-urlencoded' | 'application/json' | 'multipart/form-data'

## Response `200`

Success

- object
  - `annotations` object[], required
    - `annotation` string, required
    - `image` string, required
    - `tag` string, required

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found

---

[API](https://skmtc.net/spoonacular/apis/spoonacular-api.md) · [All operations](https://skmtc.net/spoonacular/apis/spoonacular-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/spoonacular/spoonacular-api/versions/bc2fbe4e8981/schema)
