Welcome to the DeepOpinion API Documentation

Use our REST API, on-premise or via web, to power your use case with sentiment analysis close to human-level quality. Don't be shy, have a try!

Do you need an API token or do you have any additional questions? We are always happy to help!

Get in touch

Aspect-Based Sentiment Analysis

Analyze one or more documents and obtain aspect-based opinions. Be aware that this call is secured and you need a valid JSON Web Token.
The API returns an aggregation of all aspects for this document and analyzes aspects on a per sentence basis as well.

HTTP Request

curl -X POST https://api.deepopinion.ai/documents/aspect-sentiments/analyze \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer [API key]' \
  -d '{ "domain: "hotels", document": "I had a single economy room and it had a balcony with a view across to St Stephan. Quite noisy, though!"}'
import requests
url = "https://api.deepopinion.ai/documents/aspect-sentiments/analyze"
payload = "{\"domain\": \"hotels\", \"document\": \"I had a single economy room and it had a balcony with a view across to St Stephan. Quite noisy, though!\"}"
headers = {
    'Content-Type': "application/json",
    'Authorization': "Bearer [API key]",
    }
response = requests.request("POST", url, data=payload, headers=headers)

JSON Response


Info

An info call. Use it to get details about the API version and supported features

HTTP Request

curl -X GET https://api.deepopinion.ai/info \
  -H 'Content-Type: application/json'

JSON Response


Health

A health check. Use it to ensure that the API is running.

HTTP Request

curl -X GET https://api.deepopinion.ai/health

JSON Response