# How to fetch kibana Visualisation data to Powershell automation

**URL:** https://discuss.elastic.co/t/how-to-fetch-kibana-visualisation-data-to-powershell-automation/277532
**Category:** Kibana
**Created:** [July 1, 2021, 9:48am UTC](https://discuss.elastic.co/t/how-to-fetch-kibana-visualisation-data-to-powershell-automation/277532 "2021-07-01T09:48:18Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Sahithi\_V](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sahithi_v/32/90972_2.png) [@Sahithi\_V](https://discuss.elastic.co/u/Sahithi_V)
#### Post date: [July 1, 2021, 9:48am UTC](https://discuss.elastic.co/t/how-to-fetch-kibana-visualisation-data-to-powershell-automation/277532/1 "2021-07-01T09:48:18Z")

</div>

Continuing the discussion from [Get data from visualize/ dashboard using the API](https://discuss.elastic.co/t/get-data-from-visualize-dashboard-using-the-api/83684):

I tried to get data from visualization present in Dashboard but I am able to navigate till saved objects of visualizatin with its id but data seems to be meta. Tried possibilities to identify api for this meta like " [http://172.33.44.555:3451/s/prod/api/saved-objects/visualiztaion/index-pattern/](http://172.33.44.555:3451/s/prod/api/saved-objects/visualiztaion/index-pattern/) with Post and query as data in Requests tab.  
But it throws 404 error can anyone please suggest which is right api to get data.  
If at least I am able to fetch one visualization data I need to repeat same for all visualizations in Dashboard, if any other feasible way to achieve will be grateful to be known

---

<div class="post-metadata">

### Author: ![Marco\_Liberati](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marco_liberati/32/82953_2.png) [@Marco\_Liberati](https://discuss.elastic.co/u/Marco_Liberati)
#### Post date: [July 2, 2021, 1:25pm UTC](https://discuss.elastic.co/t/how-to-fetch-kibana-visualisation-data-to-powershell-automation/277532/2 "2021-07-02T13:25:45Z")

</div>

Hi @Sahithi_V

if I understood correctly your question, you are attempting to retrieve visualization data from all the visualizations in a dashboard uniquely via API? Is that correct?

If that is the correct interpretation I think you cannot do it programmatically via the saved\_objects, but as pointed out in the linked comment you need to either use the specific `Request` for each visualization (you can find them in the `Inspector` panel as save them) or via some third party plugin.

---

<div class="post-metadata">

### Author: ![Sahithi\_V](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sahithi_v/32/90972_2.png) [@Sahithi\_V](https://discuss.elastic.co/u/Sahithi_V)
#### Post date: [July 3, 2021, 9:04am UTC](https://discuss.elastic.co/t/how-to-fetch-kibana-visualisation-data-to-powershell-automation/277532/3 "2021-07-03T09:04:55Z")

</div>

Thanks Marco for the information but I already had details of query that collects visual data from Inspection Panel. It worked as expected in Kibana Console like  
\<index-patternname\>/\_search {  
qry  
}  
but equivalent query when tried Powershell/Python it throwed me the error 404.  
URL in PS:  
Invoke-webrequest -Method 'POST' -URI "http:/172.22.333.44:3401/ \<indexpattername\> /\_search" -body $body -contenttype "application/json"  
Am I declaring correct api or it should contain any namespaces? which is not sure any inputs will be greatly appreciated

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [July 31, 2021, 9:05am UTC](https://discuss.elastic.co/t/how-to-fetch-kibana-visualisation-data-to-powershell-automation/277532/4 "2021-07-31T09:05:02Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
