supermetrics
Official Supermetrics skill. Query marketing data from 100+ platforms including Google Analytics, Meta Ads, Google Ads, and LinkedIn. Requires API key.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/bartschneider/supermetrics-openclawdSupermetrics Marketing Data
Query marketing data from 100+ platforms including Google Analytics, Meta Ads, Google Ads, and LinkedIn.
Usage
Import the helper module:
from supermetrics import (
discover_sources,
discover_accounts,
discover_fields,
query_data,
get_results,
get_today,
search,
health,
)
Functions
discover_sources()
List all available marketing platforms.
result = discover_sources()
for src in result['data']['sources']:
print(f"{src['id']}: {src['name']}")
discover_accounts(ds_id)
Get connected accounts for a data source.
Common data source IDs:
| ID | Platform |
|---|---|
| FA | Meta Ads (Facebook) |
| AW | Google Ads |
| GAWA | Google Analytics |
| GA4 | Google Analytics 4 |
| LI | LinkedIn Ads |
| AC | Microsoft Advertising (Bing) |
result = discover_accounts("GAWA")
for acc in result['data']['accounts']:
print(f"{acc['account_id']}: {acc['account_name']}")
discover_fields(ds_id, field_type=None)
Get available metrics and dimensions.
# Get all fields
result = discover_fields("GAWA")
# Get only metrics
result = discover_fields("GAWA", "metric")
# Get only dimensions
result = discover_fields("GAWA", "dimension")
query_data(...)
Execute a marketing data query. Returns schedule_id for async retrieval.
result = query_data(
ds_id="GAWA",
ds_accounts="123456789",
fields=["date", "sessions", "pageviews", "users"],
date_range_type="last_7_days"
)
schedule_id = result['data']['schedule_id']
Parameters:
ds_id(required): Data source IDds_accounts(required): Account ID(s) from discover_accounts()fields(required): Field ID(s) from discover_fields()date_range_type:last_7_days,last_30_days,last_3_months,customstart_date,end_date: For custom date range (YYYY-MM-DD)filters: Filter expression (e.g.,"country == United States")timezone: IANA timezone (e.g.,"America/New_York")
Filter operators:
==,!=- equals, not equals>,>=,<,<=- comparisons=@,!@- contains, does not contain=~,!~- regex match
get_results(schedule_id)
Retrieve query results.
result = get_results(schedule_id)
for row in result['data']['data']:
print(row)
get_today()
Get current UTC date for date calculations.
result = get_today()
print(result['data']['date']) # "2026-02-03"
search(query)
Search across Supermetrics resources for guidance and suggestions.
result = search("facebook ads metrics")
print(result['data'])
health()
Check Supermetrics server health status.
result = health()
print(result['data']['status']) # "healthy"
Workflow Example
from supermetrics import (
discover_accounts,
discover_fields,
query_data,
get_results,
)
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-bartschneider-supermetrics-openclawd": {
"enabled": true,
"auto_update": true
}
}
}Tags
Related Skills
data-analysis-skill
数据分析技能包 - 自动抓取、清洗、可视化、生成报告。适合数据分析师、运营人员,告别 Excel 手工操作。
lead-generation
Lead Generation — Find high-intent buyers in live Twitter, Instagram, and Reddit conversations. Auto-researches your product, generates targeted search queries, and discovers people actively looking for solutions you offer. Social selling and prospecting powered by 1.5B+ indexed posts via Xpoz MCP.
cherry-mcp
HTTP bridge that keeps MCP servers alive and exposes them via REST. Built for OpenClaw agents that need MCP tools without native MCP support.
riddle
Hosted browser automation API for agents. Screenshots, Playwright scripts, workflows — no local Chrome needed.
agent-analytics
Web analytics platform that AI agents can query via CLI. Track page views, custom events, run A/B experiments, analyze funnels, retention cohorts, and traffic heatmaps. Use when the user needs web analytics, visitor tracking, event tracking, conversion optimization, growth insights, A/B testing, or wants to add analytics to their website or app. Also available as an MCP server at mcp.agentanalytics.sh.