How to read GitHub data in Power BI using ODBC

Introduction

GitHubGitHub is a leading platform for source control, CI/CD workflows, and team collaboration. Many organizations need GitHub data in Power BI to monitor engineering performance, repository health, pull request velocity, and issue resolution trends.

Using ZappySys ODBC Driver for REST APIs, you can connect to GitHub and query GitHub data with SQL, then load it directly into Power BI dashboards without writing custom integration code.

This tutorial shows how to create an ODBC DSN for the GitHub API, preview data, connect Power BI, and build analytics using custom SQL queries.

Prerequisites

  1. A GitHub account with access to target repositories or organisation data.
  2. Power BI Desktop is installed on your machine.
  3. Basic understanding of SQL and Power BI data modelling.
  4. Finally, install the ZappySys ODBC Driver.

Steps

Create a GitHub Personal Access Token

  1. Sign in to your GitHub account.
  2. Go to Settings, then find the Developer settings at the bottom of the page.

    Github – Go to Developer settings

  3. Now go to Personal access tokens and create a new token (fine-grained or classic, depending on your security policy).
  4. Select permissions required for your extraction scenario (for example, repository metadata, issues, or pull requests), owner, expiration date and more.
  5. Generate the token and copy it to a secure location.

    Github – Generate a new token

Create a new ODBC DSN using ZappySys JSON Driver

  1. Search for ODBC in the Windows Start menu and open ODBC Data Source Administrator.
  2. In the User DSN or System DSN tab, click Add.
  3. Select ZappySys JSON Driver and click Continue.

Configure the Connection and API Settings

  1. Enter the base URL:
    https://api.github.com/user
  2. In Connection Type, select HTTP and click Configure.
  3. Select Static Token/API Key as the Credential type.
  4. Paste your GitHub token in the authentication field.
  5. Click OK to save the configuration.

    Github – ODBC HTTP Static token connection

  6. Set HTTP Request Method to GET.
  7. Set the following values in the HTTP headers:
    1. Accept: application/vnd.github+json
    2. X-GitHub-Api-Version: 2022-11-28
  8. Set JSON Path Filter to extract the object array.
  9. Click Test Connection to verify connectivity, then click OK to save the DSN.

    Github – ODBC configuration

Preview GitHub data in ODBC Driver

  1. Go to the Preview tab.
  2. Generate a query, then click Preview Data to confirm that rows are returned.
  3. If no data is returned, verify your organisation name, token scope, and JSON Path Filter.

    GitHub – ODBC result

Connect Power BI to GitHub via ODBC

  1. Open Power BI Desktop.
  2. Click Get Data from the Home ribbon.
  3. Click More…, search for ODBC, and click Connect.

    Power BI – Get data from ODBC connection

  4. Select your GitHub ODBC DSN from the dropdown list.
  5. Optionally, enter a custom SQL query in Advanced options.
  6. Click OK, then click Load to import data.

    GitHub – Power BI select connection

  7. Verify the result and click Load.

    GitHub – Power BI load the data

  8. In the Navigator window, select the columns you want to load.

    GitHub – Power BI final result

Query GitHub Data with SQL

For advanced analytics, use custom SQL queries in Power BI or the ODBC tool.

Example 1: List Repositories

Example 2: Public Repositories Only

Example 3: Most Starred Repositories

Example 4: Recently Updated Repositories

Example 5: Repository Count by Visibility

Example 6: Language-Based Distribution

Create Useful Power BI Measures

Use DAX measures after loading the GitHub dataset:

Total Repositories

Total Stars

Average Forks per Repository

Private Repository %

Conclusion

Connecting GitHub to Power BI using ZappySys ODBC Driver makes it easy to build engineering analytics without writing custom connector code. With SQL-based access to GitHub API responses, you can monitor repository activity, contribution trends, and governance metrics in one place.

Explore the full capabilities of the Zappysys ODBC Drivers to integrate multiple data sources and build comprehensive Power BI dashboards. By combining GitHub data with other sources, you can create unified views of your operational data.

Need Help?

If you encounter any issues, our support team is here to help:

  1. Live Chat — Use the chat widget (bottom-right corner of this page)
  2. Email — support@zappysys.com
  3. Support Center — Visit the ZappySys Support Portal
Posted in Uncategorized.