How to fetch all sites and repos on github to display on a blog page

I would like to fetch all sites published through netlify (or vercel with my repos on github (public or private) and build a blog page displaying a list of such sites.
As I am not familiar with Netlify or github API, do you have any guidance or example to do so.
Thank you in advance.

This is not really an issue of how to use Hugo. You have to access Github via REST API (the link leads to the documentation of how to list your repositories). Maybe search for a list of repositories that has a certain keyword, if not all your repos contain a full website. Add a keyword “website” to each website repo and then search for it. Then make the response into something useful. Good luck.

Netlify too has an API for sites, but if you have your sites over multiple accounts then this might result in too much hassle to get all the sites.