2 Replies Latest reply on Feb 12, 2019 10:34 PM by Lavanya Nuthalapati

    Tableau REST API using Python

    Lavanya Nuthalapati

      Hi Team,


      We have a requirement to create an Rest API that solves the purpose of selecting the same filters as displayed in the workbooks, and consequently downloading the resultant data set in CSV format.

      We are able to achieve the second part of the above requirement using Tabcmd utility. So please help if anyone has achieved the other functionality.




        • 1. Re: Tableau REST API using Python
          Chris McClellan

          Why get the data from Tableau ?  Why not access the database directly and get the data from there ?


          I think downloading from Tableau you're only going to get the first view in the dashboard (that was how it worked last time I tried)

          • 2. Re: Tableau REST API using Python
            Lavanya Nuthalapati

            To answer your first question, certain users need to view Tableau workbooks and certain users will get the data from APIs, and in some cases users will use both. Hence we need to build the API on top of our Tableau workbooks.


            We've created the API in a way such that the end user has the option to select which views of the workbook they want the data from. Let's say our workbook has views A, B, C; user can select among the 3 views.


            Now we want to create the next part of API in such a way that the filters in A or B or C are also displayed (as in the Tableau server) in the API and then the filtered data gets downloaded.