API:Components
API Endpoint Path
required
Twitter Content Sentiment Ratio Calculator API
api/1/sentiment
Call Method
Required
POST
Type of Data Return
JSON
Output structured JSON data on Twitter trending content sentiment ratio
token
required
BUYFROMLO API token. Paid subscription API is available: /api/1/sentiment, and accessible to on-site APP on /app/1/sentiment 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 Content Sentiment Ratio Calculator API
api/1/sentiment
Python Code Sample
import requests
apiendpoint = "https://api.buyfromlo.com/api/1/sentiment"
## Required Arguments & Parameters ##
token = ""your buyfromlo token""
keyword = ""Input a keyword""
data={"keyword": keyword}
headers={"Authorization": "Bearer " + token}
## Call the api ##
response = requests.post(apiendpoint, json=data, headers=headers)
print(response.status_code)
print(response.json())
JSON Response Sample
{
"Query": " " (string),
"Subjectivity": " " (float),
"Polarity": " " (float),
"Positive": " " (float),
"Negative": " " (float),
"Neutral": " " (float)
}
The Twitter Content Sentiment Ratio Barometer API is a social media topic sentiment data generation tool that pulls data from the Twitter API. It provides five key sentiment metrics: polarity, subjectivity, negativity, positivity, and neutrality. The sentiment dataset is refreshed daily and can be accessed via both API and on-site app, with paid and free versions available.
The Twitter Content Sentiment Ratio Barometer API solely relies on Twitter as its data source.
The Twitter Content Sentiment Ratio Barometer API delivers data in JSON format, with a maximum request rate of 20 per minute.
The Twitter Content Sentiment Ratio Barometer API has a request limit of 500 requests per month per token.
The Twitter Content Sentiment Ratio Barometer API offers integration with a wide range of programming languages, including cURL, JS, Python, Ruby, PHP, Node.js, Java, .NET, Rust, Go, and TypeScript.
Yes, a paid subscription API is available for the Twitter Content Sentiment Ratio Barometer API, offering access to the API endpoint via \/api\/1\/sentiment.
Yes, the Twitter Content Sentiment Ratio Barometer API can also be accessed through an on-site app at \/app\/1\/sentiment.
The paid version of the Twitter Content Sentiment Ratio Barometer API provides access to additional features and functionalities, while the free version offers limited usage and capabilities.
Yes, comprehensive documentation for the Twitter Content Sentiment Ratio Barometer API is provided at https:\/\/www.buyfromlo.com\/docs\/#\/.
To get started with the Twitter Content Sentiment Ratio Barometer API, you can visit the documentation at https:\/\/www.buyfromlo.com\/docs\/#\/, which includes detailed instructions on how to obtain an API token and use the API.