Is it possible to use the API to get the sql query for a look or explore

Knowledge Drop

Last tested: May 21, 2019
 

Yes! You can get the query ID and then use run_query with result_format=sql https://docs.looker.com/reference/api-and-integration/api-reference/v3.1/query#run_query

This content is subject to limited support.                

Comments
scott_digiambat
New Member

@Peggy_Beard, how do we get the query_id of an explore or a quick start?

Version history
Last update:
‎07-07-2021 01:14 PM
Updated by: