How to get the query Id from looker?
Already have an account? Login
Login to the community
No account yet? Create an account
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.
You can use system activity or /admin/queries when the query is run and look at the details section. It will also appear to the right of the source column on the main page of /admin/queries when run. Or you can get the slug in the url of the query and use the query_for_slug endpoint.
q = sdk.query(query_id=ID)
q2 = sdk.query_for_slug(slug="SLUG")
An example system activity query would look like this:
Please let me know if you have any questions.