





API:Marketing
API Endpoint Path
required
Twitter Trending Content Sentiment Ratio Calculator API
https://www.buyfromlo.com/api/1/sentiment
Call Method
Required
GET
Type of Data Return
JSON
JSON output structured data for Twitter trending content sentiment ratio data
Token
required
BUYFROMLO API token. Subscription API is available on www.buyfromlo.com/apis, and accessible to on-site APP on www.buyfromlo.com/app as well
keyword
required
Input a keyword query related to the trending content from Twitter
language
Optional
Input the language iso-id, such as en, ja, fr, etc. The default language is en
Twitter Trending Content Sentiment Ratio Calculator API
https://www.buyfromlo.com/api/1/sentiment
Python Code Sample
import requests
apiendpoint = "https://www.buyfromlo.com/api/1/sentiment"
## Required Arguments & Parameters ##
token = ""your buyfromlo token""
keyword = ""Input a keyword""
## Call the api ##
response = requests.get(apiendpoint + "?token=" + token + "&keyword=" + keyword)
print(response.status)
print(response.json())
JSON Response Sample
{
"Query": "",
"Subjectivity": "",
"Polarity": "",
"Positive": "",
"Negative": "",
"Neutral": ""
}