An api for github to get some kind of projects?

I’m trying make an dataset of projetcs from github, with some similarities, like language. The github api got an endpoint to that? Thanks