Fetching data from GitHub API

I can't understand how to fetch data from GitHub API using the R language. Can anyone please help me how to fetch the dataset for performing EDA on 1M repos data?

GitHub API: Repositories - GitHub Docs

I would suggest using an existing R package like {gh} to query the GitHub API. Check out the website for documentation and guidance: https://gh.r-lib.org/