# API key for new\_line\_coverage - sonarQube 8.2

**URL:** <https://community.sonarsource.com/t/api-key-for-new-line-coverage-sonarqube-8-2/40086>\
**Category:** SonarQube Server / Community Build\
**Tags:** web\_api, sonarqube, java\
**Created:** [March 15, 2021, 11:03am UTC](https://community.sonarsource.com/t/api-key-for-new-line-coverage-sonarqube-8-2/40086 "2021-03-15T11:03:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![santothoughts](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/santothoughts/32/4069_2.png) [@santothoughts](https://community.sonarsource.com/u/santothoughts)\
**Post date:** [March 15, 2021, 11:03am UTC](https://community.sonarsource.com/t/api-key-for-new-line-coverage-sonarqube-8-2/40086/1 "2021-03-15T11:03:05Z")

</div>

Hi,

We are using sonarQube 8.2 and using api’s for different components.

But, we are not getting the value for “new\_line\_coverage” / “new\_coverage” (only date is being displayed). please let us know what mistake we are doing. please help

Example metrics key that we are using:

[http://sran-wbts-sonar.eecloud.dynamic.nsn-net.net:8080/api/measures/search\_history?from=2019-01-01&component=WBTS:FSMr3\_S00\_W1plTx\_UT&metrics=](http://sran-wbts-sonar.eecloud.dynamic.nsn-net.net:8080/api/measures/search_history?from=2019-01-01&component=WBTS:FSMr3_S00_W1plTx_UT&metrics=) **new\_line\_coverage** ,coverage,duplicated\_lines\_density,CXX-PERC\_LOC\_IN\_COMPLEX\_FUNCTIONS&ps=1000

---

<div class="post-metadata">

**Author:** ![santothoughts](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/santothoughts/32/4069_2.png) [@santothoughts](https://community.sonarsource.com/u/santothoughts)\
**Post date:** [March 22, 2021, 8:43am UTC](https://community.sonarsource.com/t/api-key-for-new-line-coverage-sonarqube-8-2/40086/2 "2021-03-22T08:43:10Z")

</div>

please help!

---

<div class="post-metadata">

**Author:** ![Colin](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/colin/32/55255_2.png) [@Colin](https://community.sonarsource.com/u/Colin)\
**Post date:** [March 22, 2021, 11:22am UTC](https://community.sonarsource.com/t/api-key-for-new-line-coverage-sonarqube-8-2/40086/3 "2021-03-22T11:22:07Z")

</div>

Hey there.

See this post:

> [@Web API api/measures/search\_history does not contains all the metrics value for all the previous anlaysis for new code metrics](https://community.sonarsource.com/t/web-api-api-measures-search-history-does-not-contains-all-the-metrics-value-for-all-the-previous-anlaysis-for-new-code-metrics/18594/2):
>
> Hi, This is working as designed. We don’t keep historical “new” values because once they’re historical, they’re not “new” anymore. &nbsp; HTH, Ann
