Returns lists with the mentions of the search phrase from the selected source. The results are in two formats - the messages themselves and the data for building graph representation of the result.
Arguments description:
{
topicSearch(from: "2019-05-12T09:45:27.283Z", interval: "1d", searchText: "btc moon", source: TELEGRAM, to: "2019-06-26T09:45:27.283Z") {
chartData {
datetime
mentionsCount
}
messages {
datetime
text
}
}
}
Run in terminal
curl \
-X POST \
-H "Content-Type: application/json" \
--data '{ "query": "query{topicSearch(from:\"2019-05-12T09:45:27.283Z\",interval:\"1d\",searchText:\"btc moon\",source:TELEGRAM,to:\"2019-06-26T09:45:27.283Z\"){chartData{datetime,mentionsCount},messages{datetime,text}}}" }' \
https://api.santiment.net/graphql