Get Data from Supermetrics.

Parameters:
See dedicated page for more information.
supermetricsRawDownload is a scripted action. Embedded code is accessible and customizable through this tab.
See dedicated page for more information.
Downloads raw JSON from a Supermetrics Enterprise Short URL (aka “s/…/json” endpoint). You can then parse the JSON into a table and continue your pipeline.
A working Supermetrics Enterprise environment.
A Short URL for your query (created in Supermetrics Query Manager).
One of these auth setups:
Optional: extra parameters for cURL cURL field below).Create / copy the Short URL
https://api.supermetrics.com/enterprise/query/s/<SHORT_ID>/jsonstart_date, end_date, etc. to the URL. Remember to URL-encode if needed.Open the supermetricsRawDownload node
Provide authentication
-H "Authorization: Bearer ya29.a0AfH6..." -H "Accept: application/json"(Optional) Harden the call
--connect-timeout 60 --retry 3 --retry-delay 2Run
Parse JSON to a table (next node)
Add your JSON parsing node (e.g., JSON → Table / JSONParse).
Typical paths (verify with your payload):
data.columns[*].id or data.columns[*].namedata.rowsContinue with your transforms (rename columns, types) and output (CSV, DB, etc.).
https://api.supermetrics.com/enterprise/query/s/abc123/json?api_key=SMT-XXXX&start_date=2025-08-01&end_date=2025-08-12--connect-timeout 60 --retry 3 --retry-delay 2https://api.supermetrics.com/enterprise/query/s/abc123/json?start_date=last_30_days-H "Authorization: Bearer ya29.a0AfH6..." -H "Accept: application/json" --connect-timeout 60 --retry 3 --retry-delay 2Supermetrics JSON commonly looks like this (simplified):
{
"data": {
"columns": [
{"id": "date", "name": "Date"},
{"id": "sessions", "name": "Sessions"}
],
"rows": [
["2025-08-01", 123],
["2025-08-02", 145]
]
},
"meta": { ... }
}
Use your JSON node to map:
data.columns[*].id (or .name)data.rows401 Unauthorized / “unauthorized_client”
Authorization header in Optional: extra parameters for cURL.403 Forbidden
400 Bad Request
/json and that query params are URL-encoded.Timeouts/large queries
--connect-timeout 120 --retry 5 --retry-delay 3Behind a proxy
-x http://USER:PASS@HOST:PORTOptional: extra parameters for cURL) instead of embedding in URLs when possible.You’re set. Paste your short URL, add auth (if needed), run, and then parse the JSON into a table.
