Back to Browse

Metadata API: sending GraphQL queries using the REST API

3.1K views
Jan 11, 2021
14:07

In this tutorial we dive into sending Metadata API GraphQL queries using Python and tableau-api-lib. This builds upon another video, where we got to know the Tableau Metadata's GraphQL interface: https://www.youtube.com/watch?v=6XcUjsiLlKI When we query the Metadata API using GraphQL, it returns data in JSON format. In this tutorial, we demonstrate how you can write a Python script to query the Metadata API and then store the results in a JSON file. Metadata includes information such as workbook names, upstream datasources, content owners, upstream databases, downstream views, and much more. Metadata API documentation: https://help.tableau.com/current/api/metadata_api/en-us/index.html Here's our blog post on getting started with the Metadata API, if you like written step-by-step tutorials: https://medium.com/snake-charmer-python-and-analytics/tableau-server-on-tap-sending-graphql-queries-to-the-metadata-api-cf390d449345

Download

1 formats

Video Formats

360pmp418.1 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Metadata API: sending GraphQL queries using the REST API | NatokHD