





API:Marketing
API Endpoint Path
required
Content Sentiment Analyzer API
https://www.buyfromlo.com/api/1/sentiment-analyzer
Call Method
Required
POST
Type of Data Return
JSON
JSON output structured data for Content Sentiment Ratio Data
Token
required
BUYFROMLO API token. Free and subscription APIs are both available on www.buyfromlo.com/apis, and accessible to on-site APP on www.buyfromlo.com/app as well
originalContent
required
Input a piece of content. The max.character ceiling in English is 2,000
Content Sentiment Analyzer API
https://www.buyfromlo.com/api/1/sentiment-analyzer
Python Code Sample
import requests
apiendpoint = "https://www.buyfromlo.com/api/1/sentiment-analyzer"
## Required Arguments & Parameters ##
token = ""your buyfromlo token""
originalContent = "raw content materials or context for reference"
## Call the api ##
response = requests.post(apiendpoint + "?token=" + token, json={"originalContent":originalContent})
print(response.status)
print(response.json())
JSON Response Sample
{
"originalContent": "",
"Subjectivity": "",
"Polarity": ""
}