How to use Alteryx with the Supermetrics API

Prev Next

The Supermetrics API is compatible with Alteryx, a data analytics platform, using a query URL.

Read this article to learn how to connect them.

Note

Query Manager is being replaced by Data Explorer. Use Data Explorer to create Data API query URLs.

Instructions

Step 1: Create query URL

  1. On the Supermetrics Hub, go to Data Explorer.

  2. In the sidebar, build your query and preview your data. We recommend using the relative time range (for example, “last 7 days”), to reduce incremental load.

  3. Click Query URL.

  4. From the URL format options, select Qlik.

  5. Enter your API key. Learn how to create an API key.

  6. Copy the query URL.

Step 2: Add query URL to Alteryx

  1. Open Alteryx.

  2. Drop the following tools into your workflow. If you can’t find them, search for them in the field at the top right corner, and then drag their symbols into your workflow. See the table below for details on the settings for each of these tools.
    Text Input → Download Data → Text to Columns → Text to Columns → Multi-field formula → Dynamic Rename → Select → BrowseFlowchart illustrating data processing steps including StripQuotes function and data tables.

  3. Run your workflow.

  4. Click Browse to preview your data output.

  5. Replace "Browse tool" with your destination of choice or ongoing workflow.

Workflow tools

Tool

Details

Text Input

  • Paste the query URL from Data Explorer into Field1

Download Data

  • Select Field1 in dropdown

  • Deselect “Encode URL Text” checkbox

Text to Columns (1 — Rows)

  • Column to split: DownloadData

  • Delimiters: /n

  • Select “SplitToRows”

Text to Columns (2 — Columns)

  • Column to split: DownloadData

  • Delimiters: ,

  • Number of columns: Total number of columns being imported

  • Advanced options: Ignore delimiters in quotes

Multi-field Formulas

  • Select “Text Fields”

  • Select all fields you want to strip quotes from

  • Expression: StripQuotes([_CurrentField_])

Dynamic Rename

  • Rename mode: Take Field Names from First Row of Data (Unselect the Field1, DownloadData and DownloadHeaders)

Select

  • Deselect the first 3 generic columns