Connecting REST API to Tableau

0 votes
I'm attempting to link data in Tableau Desktop using the REST API. When I start Tableau Desktop, which choice do I choose for the datasource? In Postman, I tested the API and it connects successfully.
Mar 31, 2022 in Tableau by Vaani
• 7,070 points
3,892 views

1 answer to this question.

0 votes

The REST API is not a data source that Tableau Desktop can access. You must export the data from an API request to a csv or other flat file in order to use the REST API. After that, you may use Tableau Desktop to connect to that file. Python may be used to automate this process. You may also directly export from Postman. After you've ran your GET, go to the top of your results and download the file.

image

However, I strongly advise you to implement this in Python rather than Postman so that you can use pandas to consume the json file much more quickly. Instead of utilising the API directly, I would prefer using tableauserverclient in Python. The tableauserverclient is more restrictive than the API, but it will almost certainly provide you with the capabilities you want.

Ready to become a Tableau-certified expert and take your data analysis skills to the next level? Enroll now in our Tableau Certification Course!

answered Apr 5, 2022 by Neha
• 9,020 points

Related Questions In Tableau

+1 vote
1 answer

How to authenticate and embed Tableau Rest API using Python 2.7

Your .format() call is creating a bad ...READ MORE

answered Jul 19, 2018 in Tableau by Atul
• 10,240 points
3,409 views
0 votes
1 answer

Error while connecting tableau to snowflake using username and password

"Couldn't resolve host name," says the error ...READ MORE

answered Mar 3, 2022 in