Social media emotion

This API is to get social media emotion, which are, anger, fear, hateful, joy and sadness.

get
Get social media emotion

https://datascience.api.dev.bitcurate.com/social_emotion
This endpoint allows you to get social media emotion, which are, anger, fear, hateful, joy and sadness.
Request
Response
Query Parameters
query
optional
string
string query, example '(bitcoin OR btc) AND binance'. Default is None.
hist_interval
optional
string
size of date histogram, example '1h'. Default is '1h', only accept 'Nt', N = positive integer, t = ['h', 'd', 'm']. If 'm', only accept more than or equal to 10.
before_date
optional
string
Start date to get the trend, format 'm/d/Y H:M'. Default is now minus 2 days.
end_date
optional
string
End date to get the trend, format 'm/d/Y H:M'. Default is now.
200: OK
Successfully retrieved.
{
"anger": [
0.1532027261242076,
0.15534237904839782,
0.15748636989462694,
0.15052594938688965,
0.17015541596432127,
0.15683221853034685,
0.15774625150969634,
0.15223992931629976,
0.16681636723810103,
0.1481266832501506,
0.16149621608948958,
0.1693338303983769,
0.16811953985185543,
0.1595312326648998,
0.16450416124522338,
0.16466588913821778,
0.16455259432163666,
0.16974818750622891,
0.17148194572108813,
0.16488354689500134,
0.16942632004345096,
0.17374540553737963,
0.16628303218730123,
0.16143821879357678,
0.1655652327195658,
0.15935148554700582,
0.1570795404493782,
0.1601658059328945,
0.15296136226979282,
0.16208738780420937,
0.16757147395987432,
0.16737590289556717,
0.15954180380805896,
0.13802267438790444,
0.15655560767301174,
0.14489334591475592,
0.14768659604042525,
0.14539508711954002,
0.16265057426398075,
0.1628671244965798,
0.1706043022334093,
0.16394904089137877,
0.17605419282662044,
0.16019242323201754,
0.16407490054922708,
0.16844291332208514,
0.1642146661793097,
0.16882636718036256,
0.16516532391510666,
0.15676817050855477,
0.16971844804096906,
0.16538232898605243,
0.1600495711037347,
0.16121042611677236,
0.17465524360446594,
0.16165480712319572,
0.17449705817861597
],
"fear": [
0.1779715329935943,
0.18193805180310801,
0.21768327926538414,
0.18872581012758574,
0.19912549893950543,
0.1905362013867914,
0.20712575050100085,
0.1931487597859813,
0.210799721977854,
0.19258241617793107,
0.19857532249514517,
0.2039472084791644,
0.2127122999796438,
0.20621671660635119,
0.19550313643156603,
0.20705685951782302,
0.21181456889782088,
0.1990783859410309,
0.20076214111123816,
0.19258633530682187,
0.1930209598657053,
0.18289947346831564,
0.2209479265714802,
0.191552395714894,
0.18804442572436433,
0.20473837314754004,
0.211172329226377,
0.20649501930865907,
0.18650442198013925,
0.1885143291072482,
0.18737954879501376,
0.19657921494073086,
0.1943007526717096,
0.23991898314310983,
0.22750941877742795,
0.2680523593681287,
0.26959354166513316,
0.30441727972512717,
0.22867715147743475,
0.21067944513354855,
0.2021283419262114,
0.19916146205804694,
0.19171603938268822,
0.18814098671001678,
0.1864440732035007,
0.19355291833797117,
0.20180687713977655,
0.19849906858784674,
0.20192611762855792,
0.19528434037211737,
0.20225929199322074,
0.1912594964080587,
0.22408662690489287,
0.21055981753880632,
0.20060171500479979,
0.21492685420104918,
0.17857329020633084
],
"hateful": [
0.17912778948226732,
0.16864834738189874,
0.16512724125256384,
0.16617602111804644,
0.1857563000362181,
0.1948898020727858,
0.17723109330189749,
0.18434710868603532,
0.18067790082610843,
0.16201465175767193,
0.17990932285896255,
0.1774998581693883,
0.1817595321907413,
0.1839853062135307,
0.186043486831705,
0.19248205277309366,
0.19352103884838845,
0.19984056584396387,
0.19891513875837938,
0.18676539005670195,
0.1899306267834864,
0.1824510969731096,
0.18408422356885823,
0.187244433266626,
0.1882282719003406,
0.1925774784936549,
0.1919752013732921,
0.18791462127039546,
0.17200887086030667,
0.18494160074677782,
0.205826700811763,
0.18607405755847387,
0.18516859221023968,
0.23925000297002078,
0.18369911513933762,
0.17652865106808277,
0.17532826828615952,
0.17093837419088512,
0.19846915737809084,
0.20000201659651382,
0.2060035654721003,
0.20336871061966977,
0.2045043296565947,
0.18345372807316043,
0.2058431231891065,
0.19067276910863726,
0.18979082511138284,
0.19526141033808878,
0.18854880714708003,
0.19252013059687853,
0.19007165555943684,
0.18777789549239107,
0.1842166147335983,
0.18981184024118242,
0.1898388092100588,
0.1850521376561318,
0.19828514626499383
],
"joy": [
0.30000834058545284,
0.28831804478681816,
0.2583668998331406,
0.2187266004059564,
0.24224024615620604,
0.2665839683354923,
0.25687735565361025,
0.2567972968453071,
0.23711495263919832,
0.2887361987796887,
0.25765274901758406,
0.25477294419098434,
0.2377841308967013,
0.25418382560496433,
0.25793401209071565,
0.248849311642486,
0.24223105912482235,
0.2331606499433159,
0.237171871516916,
0.253729901804659,
0.2515171056990157,
0.2578582202977918,
0.24423863292980091,
0.2568317961023253,
0.25767019033383554,
0.24629964235724794,
0.24640789171873856,
0.2520890553123207,
0.299488543253474,
0.26427755809883363,
0.24404147605442372,
0.2445289815871149,
0.2570020874585624,
0.2089296494381262,
0.2334156947739923,
0.23179278506882886,
0.21471981927915787,
0.20147324738056815,
0.22114561475190458,
0.2321656810852786,
0.2231573648736641,
0.23068217671635552,
0.2336046508435446,
0.24437864714962101,
0.244226012582147,
0.25857017932275683,
0.24688950512775984,
0.24731186243140624,
0.2549527989097042,
0.26097321360229414,
0.23454830407822008,
0.26832767064213325,
0.23978356529120895,
0.24196972127416633,
0.23930661674675197,
0.22768976880635924,
0.2386213450147803
],
"label": [
"joy",
"joy",
"joy",
"sadness",
"joy",
"joy",
"joy",
"joy",
"joy",
"joy",
"joy",
"joy",
"joy",
"joy",
"joy",
"joy",
"joy",
"joy",
"joy",
"joy",
"joy",
"joy",
"joy",
"joy",
"joy",
"joy",
"joy",
"joy",
"joy",
"joy",
"joy",
"joy",
"joy",
"fear",
"joy",
"fear",
"fear",
"fear",
"fear",
"joy",
"joy",
"joy",
"joy",
"joy",
"joy",
"joy",
"joy",
"joy",
"joy",
"joy",
"joy",
"joy",
"joy",
"joy",
"joy",
"joy",
"joy"
],
"sadness": [
0.18968961081447788,
0.20575317697977735,
0.20133620975428457,
0.2758456189615217,
0.20272253890374925,
0.1911578096745836,
0.20101954903379507,
0.21346690536637652,
0.20459105731873828,
0.20854005003455758,
0.2023663895388187,
0.19444615876208615,
0.19962449708105812,
0.19608291891025387,
0.19601520340078993,
0.18694588692837946,
0.18788073880733175,
0.19817221076546054,
0.1916689028923785,
0.20203482593681577,
0.1961049876083416,
0.20304580372340328,
0.18444618474255944,
0.2029331561225778,
0.20049187932189377,
0.19703302045455134,
0.19336503723221413,
0.1933354981757303,
0.1890368016362873,
0.2001791242429309,
0.1951808003789252,
0.20544184301811333,
0.20398676385142933,
0.17387869006083884,
0.19882016363623045,
0.17873285858020366,
0.19267177472912425,
0.1777760115838796,
0.18905750212858913,
0.19428573268807914,
0.19810642549461485,
0.20283860971454895,
0.194120787290552,
0.22383421483518434,
0.19941189047601873,
0.1887612199085498,
0.1972981264417711,
0.19010129146229582,
0.18940695239955135,
0.19445414492015514,
0.2034023003281533,
0.18725260847136463,
0.1918636219665654,
0.19644819482907264,
0.19559761543392362,
0.21067643221326407,
0.2100231603352791
],
"timestamp": [
"2019-07-17 05:00:00",
"2019-07-17 06:00:00",
"2019-07-17 07:00:00",
"2019-07-17 08:00:00",
"2019-07-17 09:00:00",
"2019-07-17 10:00:00",
"2019-07-17 11:00:00",
"2019-07-17 12:00:00",
"2019-07-17 13:00:00",
"2019-07-17 14:00:00",
"2019-07-17 15:00:00",
"2019-07-17 16:00:00",
"2019-07-17 17:00:00",
"2019-07-17 18:00:00",
"2019-07-17 19:00:00",
"2019-07-17 20:00:00",
"2019-07-17 21:00:00",
"2019-07-17 22:00:00",
"2019-07-17 23:00:00",
"2019-07-18 00:00:00",
"2019-07-18 01:00:00",
"2019-07-18 02:00:00",
"2019-07-18 03:00:00",
"2019-07-18 04:00:00",
"2019-07-18 05:00:00",
"2019-07-18 06:00:00",
"2019-07-18 07:00:00",
"2019-07-18 08:00:00",
"2019-07-18 09:00:00",
"2019-07-18 10:00:00",
"2019-07-18 11:00:00",
"2019-07-18 12:00:00",
"2019-07-18 13:00:00",
"2019-07-18 14:00:00",
"2019-07-18 15:00:00",
"2019-07-18 16:00:00",
"2019-07-18 17:00:00",
"2019-07-18 18:00:00",
"2019-07-18 19:00:00",
"2019-07-18 20:00:00",
"2019-07-18 21:00:00",
"2019-07-18 22:00:00",
"2019-07-18 23:00:00",
"2019-07-19 00:00:00",
"2019-07-19 01:00:00",
"2019-07-19 02:00:00",
"2019-07-19 03:00:00",
"2019-07-19 04:00:00",
"2019-07-19 05:00:00",
"2019-07-19 06:00:00",
"2019-07-19 07:00:00",
"2019-07-19 08:00:00",
"2019-07-19 09:00:00",
"2019-07-19 10:00:00",
"2019-07-19 11:00:00",
"2019-07-19 12:00:00",
"2019-07-19 13:00:00"
]
}
400: Bad Request
Errors from parameters given.
{
"message": "distance from 2 dates need less than 90 days",
"status": 400
}
{
"message": "hist_interval only accept ['h', 'd', 'm']",
"status": 400
}
{
"message": "hist_interval must Nt, N = positive integer, t = interval",
"status": 400
}
{
"message": "'m' size only accept more than or equal to 10",
"status": 400
}
{
"message": "data not available",
"status": 400
}