To retrieve data from a widget, you need to use the following method:
GET /api/widget/{id}/data
To use this request properly, we need to determine the correct widget ID to use.
Go to the dashboards, open Dev Tools, and look for the data field in the "Network" tab. Since you might have multiple widgets, you need to ensure that you've found the correct ID.
To do this, go to the "Response" section and compare the data from the API response with the widget you want (an example is shown in the screenshot).
If your widget contains a large number of test cases, it might span multiple pages. In this case, when writing the script, you'll need to implement a cycle that collects all the data from the request until the last
parameter is false
.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article