Use the Embedded Search API to pull data from ThoughtSpot
This procedure shows how to use the Embedded Search API to get data from ThoughtSpot.
|Starting in May 2022, ThoughtSpot rebranded pinboards as Liveboards. For backward compatibility, we currently support internal processes and external methods that use the older naming convention.
The Embedded Search API enables searching directly from an external application or web page to pull data from ThoughtSpot. This feature was introduced in ThoughtSpot 5.0. When using it, you can access data stored in ThoughtSpot directly. You do not have to save a search result to a Liveboard and then reference it using the visualization’s URL.
This embedded search is useful when you want to allow an application to pull data directly from ThoughtSpot in an ad hoc fashion.
To have the Embedded Search API functionality turned on, contact ThoughtSpot Support.
Use this procedure to construct the call to the Embedded Search API:
Now when a user searches, the <iframe> sends data to the subscription. The parent web page or application receives the data as JSON, and can do whatever you want with it.
You can set up your web page or application to display or otherwise act on the data it receives from the subscription.
To test it out, do a search in the embedded ThoughtSpot application to retrieve the data. Your application should act on the data in the way you set it up to do so.