POST /analyze/extract_label

POST /analyze/extract_label

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

application/json

Body Required

Responses

  • 200

    successful operation

    Hide response attribute Show response attribute object
  • 400

    Bad Request

  • 401

    Authorization information is missing or invalid.

  • 404

    Requested resource not found

  • 422

    Unprocessable Entity

  • 500

    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"
}
Response examples (200)
{
  "label": [
    "string"
  ]
}