use GET api/metrics/search to list all available metric types, you’ll see a bunch
of duplicated metrics, e.g.
...
{
"id": "360",
"key": "new_duplicated_blocks",
"type": "INT",
"name": "Duplicated Blocks on New Code",
"description": "Duplicated blocks on new code",
"domain": "Duplications",
"direction": -1,
"qualitative": true,
"hidden": false,
"custom": false
},
...
Then use GET api/measures/component to get the measures for a specific metricKey
of some component.
The metricKey in the json snippet above is key => new_duplicated_blocks
see yoursonarinstance/web_api/api/metrics yoursonarinstance/web_api/api/measures