Social Sentiment API


OVERVIEW
With this endpoint, you can keep track of what people are saying about individual stocks on social media. Reddit, Yahoo, StockTwits, and Twitter are among the sites monitored. Absolute index field indicates how much people are talking about the stock, relative index also indicates it ​but relative to previous day. Sentiment field indicates overall percentage of positive activity, while general perception indicates whether people are more positive or negative than usual. This endpoint is updated with new data every hour, but it also contains previous data.

Because social sentiment has a significant impact on stock price, it is critical to keep track of it.

Query String Parameters
page : Number
Symbol : String

Social Sentiment API


OVERVIEW
With this endpoint, you can keep track of what people are saying about individual stocks on social media. Reddit, Yahoo, StockTwits, and Twitter are among the sites monitored. Absolute index field indicates how much people are talking about the stock, relative index also indicates it ​but relative to previous day. Sentiment field indicates overall percentage of positive activity, while general perception indicates whether people are more positive or negative than usual. This endpoint is updated with new data every hour, but it also contains previous data.

Because social sentiment has a significant impact on stock price, it is critical to keep track of it.

Query String Parameters
page : Number
Symbol : String

Social Sentiment

https://financialmodelingprep.com/api/v4/historical/social-sentiment?symbol=AAPL&page=0&apikey=YOUR_API_KEY

curl https://financialmodelingprep.com/api/v4/historical/social-sentiment?symbol=AAPL&page=0&apikey=YOUR_API_KEY
[ {
    "date" : "2022-06-30 23:00:00",
    "symbol" : "AAPL",
    "stocktwitsPosts" : 13,
    "twitterPosts" : 163,
    "stocktwitsComments" : 9,
    "twitterComments" : 7769,
    "stocktwitsLikes" : 16,
    "twitterLikes" : 40957,
    "stocktwitsImpressions" : 15141,
    "twitterImpressions" : 1576854,
    "stocktwitsSentiment" : 0.5411,
    "twitterSentiment" : 0.5888
  }, {
    "date" : "2022-06-30 22:00:00",
    "symbol" : "AAPL",
    "stocktwitsPosts" : 19,
    "twitterPosts" : 76,
    "stocktwitsComments" : 8,
    "twitterComments" : 1206,
    "stocktwitsLikes" : 47,
    "twitterLikes" : 8909,
    "stocktwitsImpressions" : 51534,
    "twitterImpressions" : 327871,
    "stocktwitsSentiment" : 0.5518,
    "twitterSentiment" : 0.5299
  }, ...
]

SOCIAL_SENTIMENT_WITH JAVA


URL url = new URL("https://financialmodelingprep.com/api/v4/historical/social-sentiment?symbol=AAPL&page=0&apikey=YOUR_API_KEY");

try (BufferedReader reader = new BufferedReader(new InputStreamReader(url.openStream(), "UTF-8"))) {
    for (String line; (line = reader.readLine()) != null;) {
    System.out.println(line);
  }
}
Resource List :