Looker API introduction

This is a simple example which prints out all available dashboards.

https://github.com/ChainArgos/api-demos/blob/main/looker/looker_api_basic/conn_test.py
import looker_sdk
sdk = looker_sdk.init40("../looker.ini")
boards = sdk.all_dashboards()
for board in boards:
    print(str(board.title) + ' , ' + str(board.id))

To run copy sanitizied.ini to looker.ini and then fill in client_id and client_secret.

This example connects to Looker and prints out the title and id of every dashboard your account can access.

Last updated