---
title: "Example call to Language: sentiment service"
canonical: "https://onesaitplatform.refined.site/space/DOCT/2220196015/Example%20call%20to%20Language%3A%20sentiment%20service"
format: markdown
---
###### From platform version 1.4.0

In this tutorial we will perform a call to the sentiment analysis REST API service to detect this component in the text.

> Macro (toc)

## Call to sentiment/sample

Firstly, make a request to the example to know the request's arguments and format. You need the user token to do any call to the REST APIs.

![image](media://7e8d5023-d5ee-4b5b-89af-204000712f98)

![image](media://a5aefd13-a9d7-4262-8dc6-b8381cbde188)

## Call to sentiment

With this example, you can replace the data with your own data easily.

![image](media://f8e8d235-fc18-41ed-ae86-4246a8d5268a)

If you want to show the analysis operation statistics, you can include the following parameter: showStats = true.

![image](media://cc1557e6-57d6-49d7-bbe0-1a4d7a584b30)

You can see the analysis results (along with the statistics), in the response.

![image](media://33674590-acc9-4d7c-a32d-25d0db539d82)