POST /analyze/extract_label

POST /analyze/extract_label

Extracts a label (list of ingredients) from an arbitrary text block

Body Required

Responses

  • successful operation

    Hide response attribute Show response attribute object
  • Bad Request

  • Authorization information is missing or invalid.

  • Requested resource not found

  • Unprocessable Entity

  • Server Error

POST /analyze/extract_label
curl \
 -X POST https://api.cosmily.com/api/v1/analyze/extract_label \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"input_text":"string"}'
Request example
{
  "input_text": "string"
}
Request examples
{
  "input_text": "string"
}
Response examples (200)
{
  "label": [
    "string"
  ]
}
Response examples (200)
{
  "label": [
    "string"
  ]
}