Getting metrics for specific folders within a project

Using SonarQube 7.9+ I’d like to retrieve metrics for specific folders in a project. For example, this link shows metrics for three folders of a project:

How can I retrieve the metrics (duplication, coverage, number of code smells, etc.) for each of the three folders separately, using the web api?

I tried, but that gives me an error message: {“errors”:[{“msg”:“Only component of qualifiers [TRK, APP, VW, SVW] are allowed”}]}.



I think you can use api/measures/component:,bugs