Skip to main content
POST
/
v2
/
evaluators
/
execute
/
word-count
Execute word-count evaluator
curl --request POST \
  --url https://api.traceloop.com/v2/evaluators/execute/word-count \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "input": {
    "text": "This is a sample text with several words."
  }
}
'
{
  "word_count": 10
}

Authorizations

Authorization
string
header
required

Type "Bearer" followed by a space and JWT token.

Body

application/json

Request body

input
object
required

Response

OK

word_count
integer
Example:

10