GitHub API

GitHub is now the ubiquituous home for developers - query the GitHub API using this tutorial to get started building fine grained analytics on repos across GitHub.


Get an access token here - ([]. You'll need the token to access the API.

This simple example queries the API for all repos on the user's profile.

import micropip
await micropip.install('pygithub')
await micropip.install('ssl')

from github import Github

# Authentication is defined via github.Auth
from github import Auth

# using an access token - get token here:
auth = Auth.Token("access-token-here")

# First create a Github instance:

# Public Web Github
g = Github(auth=auth)

# Then play with your Github objects:
for repo in g.get_user().get_repos():

# To close connections after use

For the full reference to learn what's possible - ([].

Need help making this connection? Feel free to reach out to for help.

Quadratic logo

The infinite canvas spreadsheet with code.

Try it now