Use the Data REST API to get data
This procedure shows how to use the REST API to get data out of ThoughtSpot, so you can use it in a Web page, portal, or application.
Use this procedure to construct the URL you will use to call the Data REST API:
Log in to ThoughtSpot from a browser.
Navigate to the Liveboard from which you want to get data. If it doesn’t exist yet, create it now.
Find the ID number of the object you want to get the data from. Select the More menu icon for the object and select Copy embed link.
Copy the ID number from the link shown. Paste it somewhere so that you can use it later to construct the URL to use when calling the REST API.
If the object is:
Copy the identifier that appears after "viz/". Omit the trailing "/".
Copy the entire identifier that appears after "viz/". This is the visualization ID. This includes the Liveboard ID as well.
Note: A visualization is a table or a chart.
Construct the URL as follows: For a Liveboard, the URL takes the form:
For a visualization, the URL takes the form:
If you want to apply any filters to the data that will be returned, apply Runtime Filters.
Now your URL is complete, and you can use it to access the data directly through the HTTP POST method. The Data REST API returns the data formatted as JSON.
Retrieve the data from the JSON and display it in your Web page, Web portal, or application.