Get dependency license information from Insights API

The information that GitHub Insights provides on an organization level is useful (docs). My main interest is in license information. The current user interface is lacking some features I would like to have, like filtering out dependencies where all dependents are already archived repositories.

I tried using the beta version of the GraphQL in order to access the insights properties. It doesn’t seem available on an organization level, but only as a property dependencyGraphManifests on the repositories. That would work for me, however for these dependencies (DependencyGraphDependency only a limited set of fields is available: hasDependencies, packageLabel, packageManager, packageName, repository, requirements. The API doesn’t seem to provide the license information I’m looking for.

Is there another way to access license information of dependencies through the GitHub API?