Details on Lines of Code at server level

SonarQube 7.9.4 LTS Enterprise

Is there a way to retrieve details of ‘Lines of Code’ being analyzed at server level ? System tab under administration displays the total lines of code but it does not show any project-level break-up of that.

Measures API provides this info, but at component (project) level.

What I would like to know is the break-up of all projects with their lines of code that is contributing to the total lines of code being displayed under System. Is there a way to get this ?

Use api/projects/search to get all projects.
Then use api/measures/component with metricKeys nloc in a loop,
it has also an internal parameter branch.