Github dependency graph API

Hey everyone! First of all, congrats on the dependency graph feature, it is incredibly useful, especially now that it also handles npm packages. The question is: is there a way to access it via API? It would be really helpful for us to monitor new projects using our libraries.



I don’t see anything about it in the developer documentation at and I don’t see anything about it in the API Preview section either. You might be able to approximate it using a code search though. For example, this search finds package.json files that contain “greenkeeper”:


In case anyone else stumbles across this, it does appear that there is an API in “preview” as of April 2018:

1 Like

It would seem that the API provides access to dependencies, but not dependent projects. Maybe I’m missing something…?


That’s my takeaway from the documentation, I have been trying to find a way to query that but so far no luck finding the dependents of a project, I guess it is not supported yet…