# Kibana API to Query Dashboard or Visualisation Metadata

**URL:** https://discuss.elastic.co/t/kibana-api-to-query-dashboard-or-visualisation-metadata/376326
**Category:** Elastic Observability
**Tags:** dashboard
**Created:** [March 24, 2025, 12:24pm UTC](https://discuss.elastic.co/t/kibana-api-to-query-dashboard-or-visualisation-metadata/376326 "2025-03-24T12:24:12Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Wolfram\_Haussig](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wolfram_haussig/32/70528_2.png) [@Wolfram\_Haussig](https://discuss.elastic.co/u/Wolfram_Haussig)
#### Post date: [March 25, 2025, 7:25am UTC](https://discuss.elastic.co/t/kibana-api-to-query-dashboard-or-visualisation-metadata/376326/2 "2025-03-25T07:25:03Z")

</div>

Hello,

The API used is an internal one: `kbn:/internal/content_management/insights/dashboard/{id}/viewed/stats`

The bad news is that internal APIs will be restricted starting with [Elastic 9.0](https://github.com/elastic/kibana/issues/163654), so this is not the way to go.

Name and description are in the Dashboard API, so they are easy.

To get the tags, you need to read the dashboard and then find the tag references. Those can then be resolved using the saved-object API:

```auto
GET kbn:/api/saved_objects/tag/{tag-id}

```

To get the usage, this may help you:

```auto
POST .kibana_usage_counters*/_search?size=1000
{
    "query": {
        "bool": {
            "must": [
              {
                "term": {
                  "usage-counter.counterName": {
                    "value": "{id}"
                  }
                }
              }
            ]
        }
    }
}

```

Created By, Updated By are an issue again as they require access to the internal API (blocked with 9.0 again). Read the IDs of the Users from the dashboard API and look them up from the user profiles:

```auto
POST kbn:/internal/security/user_profile/_bulk_get
{"uids":["u_jWVHFUVDB9fLX46n2HvF1-6BhFs1Wlx1Ew0ZNIARFCM_1"]}

```

I am sorry to say that I have no idea how to workoaround the issues for created/updated by. Still I hope this helps you to get started.

Best regards  
Wolfram

---

_[View the full topic](https://discuss.elastic.co/t/kibana-api-to-query-dashboard-or-visualisation-metadata/376326)._
