This returns the projects that have gained or lost the most Social Volume over the given time window.

Arguments description:

  • status - one of the following (these are not Strings!):
    ALL
    - shows all of the below
    GAINER
    - shows only top gainers
    LOSER
    - shows only top losers
    NEWCOMER
    - show projects that had no social volume before
  • timeWindow - number of days that are taken into account, between "2d" and "30d"
  • size - the length of the Trending Words list
  • from - a string representation of datetime value according to the iso8601 standard, e.g. "2018-04-16T10:02:19Z"
  • to - a string representation of datetime value according to the iso8601 standard, e.g. "2018-04-16T10:02:19Z"

Run in explorer

{
  topSocialGainersLosers(from: "2019-05-09T11:25:04.894Z", to: "2019-06-23T11:25:04.894Z", size: 5, status: ALL, timeWindow: "2d") {
    datetime
    projects {
      slug
      status
    }
  }
}

Run in terminal

curl \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{ "query": "query{topSocialGainersLosers(from:\"2019-05-10T00:00:00.000Z\",size:5,status:ALL,timeWindow:\"2d\",to:\"2019-06-23T00:00:00.000Z\"){datetime, projects{slug,status}}}" }' \
  https://api.santiment.net/graphql
Did this answer your question?