# API-only metrics - Oracle database insights

**URL:** <https://community.dynatrace.com/t/api-only-metrics-oracle-database-insights/32174>\
**Category:** Open Q&A\
**Tags:** databases\
**Created:** [July 22, 2021, 8:17am UTC](https://community.dynatrace.com/t/api-only-metrics-oracle-database-insights/32174 "2021-07-22T08:17:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Babar\_Qayyum](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/babar_qayyum/32/13620_2.png) [@Babar\_Qayyum](https://community.dynatrace.com/u/Babar_Qayyum)\
**Post date:** [July 22, 2021, 8:17am UTC](https://community.dynatrace.com/t/api-only-metrics-oracle-database-insights/32174/1 "2021-07-22T08:17:09Z")

</div>

Dear All,

How to obtain the&nbsp;Oracle database insights&nbsp; **API-only metrics** (_These metrics are not charted in Dynatrace but can be accessed through calls to the Dynatrace API._) and use them in a presentable way?

Regards,

Babar

---

<div class="post-metadata">

**Author:** ![ryan\_ott](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ryan_ott/32/15818_2.png) [@ryan\_ott](https://community.dynatrace.com/u/ryan_ott)\
**Post date:** [July 22, 2021, 1:45pm UTC](https://community.dynatrace.com/t/api-only-metrics-oracle-database-insights/32174/2 "2021-07-22T13:45:44Z")

</div>

Hi Babar,

These metrics and their data points can be pulled via an API call to the following endpoint: ‘/api/v2/metrics/query’. You can provide the metricSelector (as mentioned here - metric keys:&nbsp;[https://www.dynatrace.com/support/help/shortlink/database-insights#api-only-metrics](https://www.dynatrace.com/support/help/shortlink/database-insights#api-only-metrics)&nbsp;), resolution, starttime, endtime, and entitySelector for filtering. You can play around with these API queries interactively through the API explorer built-in to Dynatrace - accessible by clicking the person icon in the top right of your environment and then selecting ‘Environment API v2’, in this case.

For presenting the data, I would recommend using any tool that can dynamically import data from Web API calls, such as Excel or PowerBI. Both of which provide powerful charting and reporting capabilities.

Hope this helps.

-Ryan
