Sentiment Analyzer API
API Endpoint Specifications
- Endpoint Path: /api/1/sentiment-analyzer
- Type of Data: JSON & 20/minute
- Data Source: Texture Content
- Request Limit: 500 request/month
- Script & Integration: Code to integrate with cURL, JS, Python, Ruby, Php, Node.js, Java, .NET, Rust, Go, Typescript
Sentiment Analyzer API Endpoint Basic Info
API Endpoint Path
required
Content Sentiment Analyzer API
api/1/sentiment-analyzer
Call Method
Required
POST
Type of Data Return
JSON
Output structured JSON data on Content Sentiment Ratio
Available API Arguments & Parameters
token
required
BUYFROMLO API token. Free and paid subscription APIs are both available: /api/1/sentiment-analyzer, and accessible to on-site APP on /app/1/sentiment-analyzer as well
originalContent
required
Input a piece of content. The max.character ceiling in English is 8000
language
Optional
Enter the content language. Default is english
Content Sentiment Analyzer API
api/1/sentiment-analyzer
Code Integration and Response
Python Code Sample
import requests
apiendpoint = "https://api.buyfromlo.com/api/1/sentiment-analyzer"
## Required Arguments & Parameters ##
token = ""your buyfromlo token""
originalContent = "raw content materials or context for reference"
headers={"Authorization": "Bearer " + token}
## Call the api ##
response = requests.post(apiendpoint, json={"originalContent":originalContent}, headers=headers)
print(response.status_code)
print(response.json())
JSON Response Sample
{
"originalContent": " " (string),
"Subjectivity": " " (float),
"Polarity": " " (float)
}