# 多语言文本 AI 情感分析 API 数据接口


多语言文本 AI 情感分析 API 数据接口

AI / 文本处理 AI 模型快速分析文本情感倾向 多语言文本 / 情感分析。

![gugudata_api_cover](https://static.gugudata.com/api_cover_ai_sentiment_analysis.png)

# 1. 产品功能

- 支持多语言文本情感分析；
- 基于特定 AI 模型，快速识别文本情感倾向；
- 适用于评论分析、舆情监控等场景；
- 全接口支持 HTTPS（TLS v1.0 / v1.1 / v1.2 / v1.3）；
- 全面兼容 Apple ATS；
- 全国多节点 CDN 部署；
- 接口极速响应，多台服务器构建 API 接口负载均衡；
- [接口调用状态与状态监控](https://www.gugudata.com/status)

# 2. API 文档

**接口详情:** [https://www.gugudata.com/api/details/sentiment-analysis](https://www.gugudata.com/api/details/sentiment-analysis)

**接口地址:** https://api.gugudata.com/ai/keyword-extraction?appkey=appkey

**返回格式:** application/json; charset=utf-8

**请求方式:** POST

**请求协议:** HTTPS

**请求示例:** https://api.gugudata.com/ai/sentiment-analysis?appkey=appkey

**数据预览:** [https://www.gugudata.com/preview/sentiment-analysis](https://www.gugudata.com/preview/sentiment-analysis)

**接口测试:** [https://api.gugudata.com/ai/sentiment-analysis/demo](https://api.gugudata.com/ai/sentiment-analysis/demo)

# 3. 请求参数

|   参数名    | 参数类型 | 是否必须 | 默认值 |            备注            |
| :---------: | :------: | :------: | :----: | :------------------------: |
|   appkey    |  string  |    是    |  N/A   |           APPKEY           |
| textcontent |  string  |    是    |  N/A   | 需要进行情感分析的文本内容 |

# 4. 返回参数

|            参数名            | 参数类型 |                  备注                  |
| :--------------------------: | :------: | :------------------------------------: |
|    DataStatus.StatusCode     |   int    |             接口返回状态码             |
| DataStatus.StatusDescription |  string  |            接口返回状态说明            |
| DataStatus.ResponseDateTime  |  string  |            接口数据返回时间            |
|        Data.sentiment        |  string  | 文本的情感倾向（如：正面、负面、中性） |


