This API (v1.0) version is old and the data collection processors are disabled (data is frozen).

Overview

Sentiment analysis is used to analyze text data related to cryptocurrencies collected from the internet. The analysis is done in 30-minute intervals, with each interval representing a snapshot. The API provides a 24-hour history of these snapshots, which are updated approximately every 30 seconds. Sentiment is indicated as negative, neutral, or positive based on the value obtained. The mean, median, sum, and count of sentiment values are calculated for each 30-minute window. Various sources on the internet, including Twitter and news articles, are captured for analysis.

API Fields

Key
Type
Description
timestamp
float
Time the sample was taken as unix epoch
sum
float
The sum/aggregate of all sentiment scores in the current 30 minute window (unbounded: can be greater/less than -1/+1)
mean
float
The mean of all sentiment scores in current 30 minute window
median
float
The median of all sentiment scores in current 30 minute window
count
int
The number of sentiments analyzed in this 30 minute window
rate
float
How many items per second were processed in last 30 minute window.
btc_price
float
Latest BTC price averaged from multiple sources
last
float
The sentiment score of the last item analyzed (e.g. a single tweet or article). Note: this is not very useful and primarily for debugging

Example

curl https://api.senticrypt.com/v1/bitcoin.json
[
 {
 "timestamp": 1581099590.106178,
 "count": 1690,
 "median": 0.15,
 "mean": 0.19,
 "polarity": 0.5,
 "sum": 312.81,
 "btc_price": "9771.96",
 "rate": 0.94
 },
 ...
]