Available withAll-In-OneEOD Historical Data — All WorldEOD+Intraday — All World Extended and Fundamentals Data Feed packages.
Consumption: Each request consumes 1 API call per symbol.

We use our own sentimental analysis to provide the aggregated data by day. Every minute we analyze news, detect positive and negative mentions from the text data, and then normalize all mentions to provide daily sentimental scores for any ticker. Stocks, ETFs, Forex, and Cryptocurrencies are supported.

Register & Get Data

Financial News Sentiment Data API

The Financial News aggregated sentiment data we collect from the financial news for stocks, ETFs, Forex, and cryptocurrencies data. The data is aggregated by day.

To get the aggregated sentiment data use the following URL:

URL
cURL
PHP
Python
R
https://eodhd.com/api/sentiments?s=btc-usd.cc,aapl&from=2022-01-01&to=2022-04-22&api_token=demo&fmt=json
curl --location "https://eodhd.com/api/sentiments?s=btc-usd.cc,aapl&from=2022-01-01&to=2022-04-22&api_token=demo&fmt=json"
$curl = curl_init();

curl_setopt_array($curl, array(
    CURLOPT_URL => 'https://eodhd.com/api/sentiments?s=btc-usd.cc,aapl&from=2022-01-01&to=2022-04-22&api_token=demo&fmt=json',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_ENCODING => '',
    CURLOPT_MAXREDIRS => 10,
    CURLOPT_TIMEOUT => 0,
    CURLOPT_FOLLOWLOCATION => true,
    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
    CURLOPT_CUSTOMREQUEST => 'GET',
));

$data = curl_exec($curl);
curl_close($curl);

try {
    $data = json_decode($data, true, 512, JSON_THROW_ON_ERROR);
    var_dump($data);
} catch (Exception $e) {
    echo 'Error. '.$e->getMessage();
}
import requests

url = f'https://eodhd.com/api/sentiments?s=btc-usd.cc,aapl&from=2022-01-01&to=2022-04-22&api_token=demo&fmt=json'
data = requests.get(url).json()

print(data)
library(httr)
library(jsonlite)

url <- 'https://eodhd.com/api/sentiments?s=btc-usd.cc,aapl&from=2022-01-01&to=2022-04-22&api_token=demo&fmt=json'
response <- GET(url)

if (http_type(response) == "application/json") {
    content <- content(response, "text", encoding = "UTF-8")
    cat(content)
} else {
    cat("Error while receiving data\n")
}
  • s. [REQUIRED]. parameter to your URL and you will be able to get data for multiple tickers at one request, all tickers should be separated with a comma. Check the list of supported exchanges to get more information about the stock markets we do support.
  • api_token. [REQUIRED]. your own API KEY, which you will get after you subscribe to our services.
  • from and to. [OPTIONAL] – the format is ‘YYYY-MM-DD’. If you need data from Jan 5, 2022 to Feb 10, 2022, you should use from=2022-01-05 and to=2022-02-10.

Financial News Sentiment Data Output

The output for sentiment data financial API is divided by ticker codes used with “s=” parameter. Please note that tickers codes are normalized in the output.

  • date. The date of sentimental data aggregation.
  • count. The number of news used for data aggregation.
  • normalized. The sentiment score is based on negative and positive mentions normalized with possible values [-1;1].
Sentimental Data Financial API

Check more Alternative Data Financial APIs we provide. Also, sentiment data is available in Financial News API. The sentiment API and news API data are available for free subscriptions.

Register & Get Data