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, 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:
GET kbn:/api/saved_objects/tag/{tag-id}
To get the usage, this may help you:
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:
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