Stocks Trends

API Endpoint: https://sennetai.com/api/stocks/trends/{stock_symbol}/

To get the search trends from a stock symbol you need to make a GET request.

Curl Example

curl https://sennetai.com/api/stocks/trends/AMZN/ -H 'Authorization:Token __your_api_token__'

curl https://sennetai.com/api/stocks/trends/AMZN/ -H 'Authorization:Token FqWduKf7LZrhv8m28Ixd4IppRQLy4YQ0'

Response

{
 'historic_interest': {
  'last_month': '{"AMZN":{"1613174400000":24 ,"1613260800000":21 ...}}', 
  'last_week': '{"AMZN":{"1614556800000":79, "1614643200000":74 ...}}', 
  'last_year': '{"AMZN":{"1584230400000":80, "1584835200000":64 ...}}'
 }, 
 'interest_by_region': {
  'interest_by_region': '{"AMZN":{"Afghanistan":0, ... "Zimbabwe":0}}', 
  'top_regions': '{"AMZN":{"United States":100,"Luxembourg":92,...}}'
 }, 
 'related': {
   'rising': {
	  'query': {'0': 'amzn mktp', '1': 'nio stock' ...}, 
	  'value': {'0': 137400, '1': 76300, '2': 68250,...}}, 
   'top': {
	  'query': {'0': 'amzn stock', '1': 'amzn price' ...}, 
	  'value': {'0': 100, '1': 28, '2': 25, '3': 24...}}
   }
}