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