DIY Tableau Web Connectors with Blockspring
Learning to build a Tableau Web Data Connector takes a fair bit of time.
You’ll need to know
JavaScript
HTML
CSS
How REST APIs work
Other web programming skills
So far, the shortest tutorial we found on the web is this 3 part series. You'll end up learning Tableau's evolving WDC SDK and browser simulator, and then build your own user interface, API connector, and finally deploy to a server if you run into Cross Domain issues. Phew.
The good news is that Blockspring has made it far faster and cheaper to build a Tableau WDC. Here are four ways to automate all of your Tableau data pulls and get back to 'seeing data' stat.
NB. The only limit to size that you can import through Blockspring is that the data transfer must complete within 60 seconds. All requests longer than this will timeout and return no data.
1. Launch a WDC for any API (comprehensive)
Here's how you launch a WDC for any API while writing minimal code. Blockspring handles Tableau's SDK, builds you a UI, and deploys the connector automatically.
Steps:
Open the Blockspring code editor.
Write code to make a request to your API and click Publish.
Make sure you mark your connector as Tabular Data.
Open Tableau and click on Web Data Connector.
Paste in your connector's WDC URL.
Click test run and inspect your data.
Import into Tableau.
2. Find a prebuilt WDC (easiest)
Fastest option if your API is already on the Blockspring platform. Search and use. No code.
Steps:
Open Tableau and click on Web Data Connector.
Type in blockspring.com as the WDC URL. Tableau might flash a "not a web data connector" warning. No biggie.
Choose your Blockspring prebult connectors. Here is a helpful list.
Choose your dimensions, metrics, and filters.
Click test run and inspect your data.
Import into Tableau.
3. Launch a WDC w/ an API URL (easy)
If you already know the API URL you'd like to connect to, this is an easy no-code option. Note - this needs to be a GET request.
Steps:
Open Tableau and click on Web Data Connector.
Paste in the following WDC URL: https://t.blockspring.com/blocks/xml-json-explorer
Paste in your API URL and click test run.
If the API doesn't return tabular data, change your starting key path until it does.
Import into Tableau.
4. Launch a WDC that Incrementally Collects Data (powerful, pricier)
If you need to save data over time (eg daily Facebook shares), you'll want to use Blockspring Tableservice. This saves you from having to data warehouse (eg launch a database and do ETL) or build a WDC.
Steps:
Open Blockspring Tableservice.
Set up your collection. Make sure to choose your refresh period.
For your collection, click 'Open' and find the Tableau WDC URL.
Open Tableau and click on Web Data Connector.
Paste in your WDC URL.
Click test run and inspect your data.
Import into Tableau.