Supermetrics
Marketing data pipeline that connects 200+ marketing platforms. Pulls data from ad platforms, analytics, social, SEO, email, and more into a single query interface.
Supermetrics
Marketing data pipeline that connects 200+ marketing platforms. Pulls data from ad platforms, analytics, social, SEO, email, and more into a single query interface.
Capabilities
| Integration | Available | Notes |
|---|---|---|
| API | ✓ | Query any connected data source, manage accounts |
| MCP | ✓ | Claude connector |
| CLI | ✓ | [supermetrics.js](../clis/supermetrics.js) |
| SDK | - | REST API only |
Authentication
- Type: API Key
- Query param:
api_key={api_key}or Header:Authorization: Bearer {api_key} - Get key: Supermetrics Hub > API settings at https://hub.supermetrics.com
Common Agent Operations
Query a Data Source
POST https://api.supermetrics.com/query/data/json
{
"ds_id": "GA4",
"ds_accounts": "123456789",
"date_range_type": "custom",
"start_date": "-28 days",
"end_date": "yesterday",
"fields": [
{ "id": "sessions" },
{ "id": "pageviews" },
{ "id": "date" }
]
}Query with Filters
POST https://api.supermetrics.com/query/data/json
{
"ds_id": "AW",
"ds_accounts": "123-456-7890",
"date_range_type": "last_month",
"fields": [
{ "id": "campaign_name" },
{ "id": "clicks" },
{ "id": "impressions" },
{ "id": "cost" }
],
"max_rows": 100
}List Available Data Sources
GET https://api.supermetrics.com/datasource/searchList Connected Accounts
GET https://api.supermetrics.com/query/accounts?ds_id=GA4Get a Team
GET https://api.supermetrics.com/v1/teams/{team_id}List Users
GET https://api.supermetrics.com/v1/teams/{team_id}/usersKey Metrics
Data Source IDs
GA4- Google Analytics 4GA4_PAID- Google Analytics (paid)AW- Google AdsFB- Facebook AdsLI- LinkedIn AdsTW_ADS- Twitter AdsIG_IA- InstagramFB_IA- Facebook PagesGSC- Google Search ConsoleSE- SemrushMC- MailchimpHubSpot- HubSpot
Date Range Values
last_28_days- CLI shorthand for a custom range from-28 daysthroughyesterdaylast_month- Previous calendar monththis_month- Current month to datecustom- Custom range (requiresstart_dateandend_date)
Parameters
Query
ds_id- Data source identifier (required)ds_accounts- Account ID for the data source (required)date_range_type- Date range preset or "custom" (required)fields- Array of field objects with requiredidproperty (required)filter- Filter expression for narrowing resultsmax_rows- Maximum number of rows to returnstart_date- Start date for custom range (YYYY-MM-DD)end_date- End date for custom range (YYYY-MM-DD)
Common Fields by Source
- GA4:
sessions,pageviews,users,bounce_rate,date,source,medium,page_path - Google Ads:
campaign_name,clicks,impressions,cost,conversions,ctr,cpc - Facebook Ads:
campaign_name,impressions,clicks,spend,reach,cpm,cpc - LinkedIn Ads:
campaign_name,impressions,clicks,cost,conversions - GSC:
query,clicks,impressions,ctr,position,page
When to Use
- Pulling cross-platform marketing data into a single report
- Comparing performance across ad platforms (Google, Meta, LinkedIn, TikTok)
- Aggregating analytics data from multiple sources
- Automating marketing reporting workflows
- Building unified dashboards across marketing channels
- Extracting SEO data alongside paid media metrics
Rate Limits
- Rate limits vary by plan
- Enterprise API: typically 100 requests/minute
- Query results may be paginated for large datasets
- Recommended: use
max_rowsto control response size
Relevant Skills
- analytics
- ads
- seo-audit
- content-strategy
- social
CLI Contract Notes
teams get --team-id <id>retrieves one team;users list --team-id <id>lists that team's users. These require a key with the corresponding management permissions. The former unscopedteams listhas no documented public equivalent and now returns migration guidance.- Query custom ranges require both
--start-dateand--end-date. Field names passed to--fieldsare provider field IDs, not display-name overrides. Empty IDs are rejected before a request. - HTTP failures exit unsuccessfully;
--dry-runmasks the Bearer credential without sending any request.
Primary contracts: authentication, fields, relative dates, query data, source search, accounts, team lookup, and team users.
Source: https://github.com/coreyhaines31/marketingskills/blob/main/tools/integrations/supermetrics.md
Author: coreyhaines31, Marketing skills. License: MIT.
Shown here with formatting for the web. Keep the author and license notice when you reuse it.
Related entries
There are more like this in the members library
The Codex library holds 7,009 entries. Members can search all of them by meaning and read every one in full.