Download a specific crosstab of a worksheet within a Tableau dashboard via REST API.
1. Sign in to Tableau Cloud / Tableau Server
URI:
POST /api/api-version/auth/signin
2. Query workbooks on the site
URI:
GET /api/api-version/sites/site-id/workbooks
3. Query views within the workbook
(Use the workbook-id from Step 2)
URI:
GET /api/api-version/sites/site-id/workbooks/workbook-id/views
4. Download the view (crosstab or data)
(Use the view-id from Step 3)
Download as Excel (crosstab):
GET /api/api-version/sites/site-id/views/view-id/crosstab/excel
Download as CSV (data):
GET /api/api-version/sites/site-id/views/view-id/data
Please note: If only the dashboard is published without individual worksheets, you may only obtain the view ID of the dashboard from Step 3. If you proceed to Step 4 and query the data via the REST API using the dashboard view ID, the result will always return the first visible worksheet in the dashboard (sorted alphabetically).
To download a specific worksheet instead of the first visible worksheet, use the following workaround:
Republish the workbook in Tableau Desktop and include all worksheets along with the dashboard (select all sheets during publishing). This will expose each worksheet as an individual view, allowing you to retrieve its view ID and download the corresponding crosstab via the REST API.
For reference, see the REST API documentation:
https://help.tableau.com/current/api/rest_api/en-us/REST/rest_api_ref.htm
005317100

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.