Github Activity

    Definition

    Unlike Development Activity which excludes some of the events, the GitHub Activity metric uses all events to compute the metric.

    There are 3 github activity metrics available:

    • github_activity - Computed on-the-fly using the Github data. Because of this the metric can compute data for any asset or any random Github organization that has public repositories like Google, Facebook, or any other organization.
    • github_activity_1d - Precomputed daily metric for each asset that is available on Santiment. This allows the metric to be aggregated when the value is needed for all assets at once.
    • ecosystem_github_activity - Precomputed for each ecosystem. An ecosystem github activity is defined as the sum of the github activities of all assets that belong to it. For example the ethereum ecosystem contains all the projects that build on the Ethereum blockchain or contribute to the blockchain in any other way.

    Access

    Free Access


    Data Type

    Timeseries Data


    Change Metrics

    Change Metrics


    Frequency


    Latency

    Development Activity Data Latency


    Available Assets


    SanAPI

    Fetch the dev activity for an asset:

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    {
      getMetric(metric: "github_activity") {
        timeseriesData(
          slug: "santiment"
          from: "2020-01-13T00:00:00Z"
          to: "2020-01-18T00:00:00Z"
          interval: "1d"
        ) {
          datetime
          value
        }
      }
    }

    Run in Explorer


    Fetch the github_activity for an arbitrary organization. You need to provide only the organization name to the parameter, not the whole URL. Github links look like this: https://github.com/<organization>/<repository>.

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    {
      getMetric(metric: "github_activity") {
        timeseriesData(
          selector: {organization: "google"}
          from: "2020-01-13T00:00:00Z"
          to: "2020-01-18T00:00:00Z"
          interval: "1d"
        ) {
          datetime
          value
        }
      }
    }

    Run in Explorer


    Fetch the ecosystem_github_activity, combining the dev activities of all assets that contribute to that ecosystem:

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    {
      getEcosystems(ecosystems: ["ethereum"]) {
        timeseriesData(
          metric: "ecosystem_github_activity"
          from: "2024-03-01T00:00:00Z"
          to: "2024-03-10T00:00:00Z"
          interval: "1d") {
            datetime
            value
          }
      }
    }

    Run in Explorer


    To check what assets are part of the ecosystem and what are their github links:

    1
    2
    3
    4
    5
    6
    7
    8
    9
    {
      getEcosystems(ecosystems: ["ethereum"]){
        name
        projects{
          slug
          githubLinks
        }
      }
    }

    Run in Explorer