Returns a list of github activity for a given slug and time interval.

Arguments description:

  • interval - an integer followed by one of: s, m, h, d or w
  • transform - one of the following:None (default)movingAverage
  • movingAverageIntervalBase - used only if transform is movingAverage. An integer followed by one of: s, m, h, d or w, representing time units. It is used to calculate the moving avarage interval.

An article explaining our approach to tracking github activity

Run in explorer

{
  githubActivity(from: "2019-05-12T09:45:27.283Z", interval: "1d", slug: "dragonchain", to: "2019-06-11T09:45:30.487053Z") {
    activity
    datetime
  }
}

Run in terminal

curl \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{ "query": "query{githubActivity(from:\"2019-05-12T09:45:27.283Z\",interval:\"1d\",slug:\"dragonchain\",to:\"2019-06-11T09:45:30.487053Z\"){activity,datetime}}" }' \
  https://api.santiment.net/graphql
Did this answer your question?