Skip to content

Text clean-up

Request

A service method to remove JavaScript, CSS tags, JSON, and other markup, returning pure decoded text. The request body includes the markup content from which text will be extracted.

Note: This method does not process binary content.

Security
Tisane-API-Key
Headers
Content-Typestring
Bodytext/plainrequired
string
POST
/helper/extract_text
curl -i -X POST \
  https://api.tisane.ai/helper/extract_text \
  -H 'Content-Type: text/plain' \
  -H 'Ocp-Apim-Subscription-Key: YOUR_API_KEY_HERE' \
  -d '<p>Clean me up</p> <style>/* Styles are unnecessary for text analysis */</style>'

Responses

Successful response

Bodytext/plain
string
Response
Clean me up