{
  "schemaVersion": "1.0",
  "item": {
    "slug": "supermetrics-openclawd",
    "name": "Supermetrics",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/bartschneider/supermetrics-openclawd",
    "canonicalUrl": "https://clawhub.ai/bartschneider/supermetrics-openclawd",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/supermetrics-openclawd",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=supermetrics-openclawd",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "supermetrics.py",
      "SKILL.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-07T17:22:31.273Z",
      "expiresAt": "2026-05-14T17:22:31.273Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
        "contentDisposition": "attachment; filename=\"afrexai-annual-report-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/supermetrics-openclawd"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/supermetrics-openclawd",
    "agentPageUrl": "https://openagent3.xyz/skills/supermetrics-openclawd/agent",
    "manifestUrl": "https://openagent3.xyz/skills/supermetrics-openclawd/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/supermetrics-openclawd/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Supermetrics Marketing Data",
        "body": "Query marketing data from 100+ platforms including Google Analytics, Meta Ads, Google Ads, and LinkedIn."
      },
      {
        "title": "Usage",
        "body": "Import the helper module:\n\nfrom supermetrics import (\n    discover_sources,\n    discover_accounts,\n    discover_fields,\n    query_data,\n    get_results,\n    get_today,\n    search,\n    health,\n)"
      },
      {
        "title": "discover_sources()",
        "body": "List all available marketing platforms.\n\nresult = discover_sources()\nfor src in result['data']['sources']:\n    print(f\"{src['id']}: {src['name']}\")"
      },
      {
        "title": "discover_accounts(ds_id)",
        "body": "Get connected accounts for a data source.\n\nCommon data source IDs:\n\nIDPlatformFAMeta Ads (Facebook)AWGoogle AdsGAWAGoogle AnalyticsGA4Google Analytics 4LILinkedIn AdsACMicrosoft Advertising (Bing)\n\nresult = discover_accounts(\"GAWA\")\nfor acc in result['data']['accounts']:\n    print(f\"{acc['account_id']}: {acc['account_name']}\")"
      },
      {
        "title": "discover_fields(ds_id, field_type=None)",
        "body": "Get available metrics and dimensions.\n\n# Get all fields\nresult = discover_fields(\"GAWA\")\n\n# Get only metrics\nresult = discover_fields(\"GAWA\", \"metric\")\n\n# Get only dimensions\nresult = discover_fields(\"GAWA\", \"dimension\")"
      },
      {
        "title": "query_data(...)",
        "body": "Execute a marketing data query. Returns schedule_id for async retrieval.\n\nresult = query_data(\n    ds_id=\"GAWA\",\n    ds_accounts=\"123456789\",\n    fields=[\"date\", \"sessions\", \"pageviews\", \"users\"],\n    date_range_type=\"last_7_days\"\n)\nschedule_id = result['data']['schedule_id']\n\nParameters:\n\nds_id (required): Data source ID\nds_accounts (required): Account ID(s) from discover_accounts()\nfields (required): Field ID(s) from discover_fields()\ndate_range_type: last_7_days, last_30_days, last_3_months, custom\nstart_date, end_date: For custom date range (YYYY-MM-DD)\nfilters: Filter expression (e.g., \"country == United States\")\ntimezone: IANA timezone (e.g., \"America/New_York\")\n\nFilter operators:\n\n==, != - equals, not equals\n>, >=, <, <= - comparisons\n=@, !@ - contains, does not contain\n=~, !~ - regex match"
      },
      {
        "title": "get_results(schedule_id)",
        "body": "Retrieve query results.\n\nresult = get_results(schedule_id)\nfor row in result['data']['data']:\n    print(row)"
      },
      {
        "title": "get_today()",
        "body": "Get current UTC date for date calculations.\n\nresult = get_today()\nprint(result['data']['date'])  # \"2026-02-03\""
      },
      {
        "title": "search(query)",
        "body": "Search across Supermetrics resources for guidance and suggestions.\n\nresult = search(\"facebook ads metrics\")\nprint(result['data'])"
      },
      {
        "title": "health()",
        "body": "Check Supermetrics server health status.\n\nresult = health()\nprint(result['data']['status'])  # \"healthy\""
      },
      {
        "title": "Workflow Example",
        "body": "from supermetrics import (\n    discover_accounts,\n    discover_fields,\n    query_data,\n    get_results,\n)\n\n# 1. Find accounts\naccounts = discover_accounts(\"GAWA\")\naccount_id = accounts['data']['accounts'][0]['account_id']\n\n# 2. See available fields\nfields = discover_fields(\"GAWA\", \"metric\")\nprint([f['id'] for f in fields['data']['metrics'][:5]])\n\n# 3. Query data\nquery = query_data(\n    ds_id=\"GAWA\",\n    ds_accounts=account_id,\n    fields=[\"date\", \"sessions\", \"users\", \"pageviews\"],\n    date_range_type=\"last_7_days\"\n)\n\n# 4. Get results\ndata = get_results(query['data']['schedule_id'])\nfor row in data['data']['data']:\n    print(row)"
      },
      {
        "title": "Response Format",
        "body": "All functions return:\n\n{\"success\": True, \"data\": {...}}  # Success\n{\"success\": False, \"error\": \"...\"}  # Error"
      }
    ],
    "body": "Supermetrics Marketing Data\n\nQuery marketing data from 100+ platforms including Google Analytics, Meta Ads, Google Ads, and LinkedIn.\n\nUsage\n\nImport the helper module:\n\nfrom supermetrics import (\n    discover_sources,\n    discover_accounts,\n    discover_fields,\n    query_data,\n    get_results,\n    get_today,\n    search,\n    health,\n)\n\nFunctions\ndiscover_sources()\n\nList all available marketing platforms.\n\nresult = discover_sources()\nfor src in result['data']['sources']:\n    print(f\"{src['id']}: {src['name']}\")\n\ndiscover_accounts(ds_id)\n\nGet connected accounts for a data source.\n\nCommon data source IDs:\n\nID\tPlatform\nFA\tMeta Ads (Facebook)\nAW\tGoogle Ads\nGAWA\tGoogle Analytics\nGA4\tGoogle Analytics 4\nLI\tLinkedIn Ads\nAC\tMicrosoft Advertising (Bing)\nresult = discover_accounts(\"GAWA\")\nfor acc in result['data']['accounts']:\n    print(f\"{acc['account_id']}: {acc['account_name']}\")\n\ndiscover_fields(ds_id, field_type=None)\n\nGet available metrics and dimensions.\n\n# Get all fields\nresult = discover_fields(\"GAWA\")\n\n# Get only metrics\nresult = discover_fields(\"GAWA\", \"metric\")\n\n# Get only dimensions\nresult = discover_fields(\"GAWA\", \"dimension\")\n\nquery_data(...)\n\nExecute a marketing data query. Returns schedule_id for async retrieval.\n\nresult = query_data(\n    ds_id=\"GAWA\",\n    ds_accounts=\"123456789\",\n    fields=[\"date\", \"sessions\", \"pageviews\", \"users\"],\n    date_range_type=\"last_7_days\"\n)\nschedule_id = result['data']['schedule_id']\n\n\nParameters:\n\nds_id (required): Data source ID\nds_accounts (required): Account ID(s) from discover_accounts()\nfields (required): Field ID(s) from discover_fields()\ndate_range_type: last_7_days, last_30_days, last_3_months, custom\nstart_date, end_date: For custom date range (YYYY-MM-DD)\nfilters: Filter expression (e.g., \"country == United States\")\ntimezone: IANA timezone (e.g., \"America/New_York\")\n\nFilter operators:\n\n==, != - equals, not equals\n>, >=, <, <= - comparisons\n=@, !@ - contains, does not contain\n=~, !~ - regex match\nget_results(schedule_id)\n\nRetrieve query results.\n\nresult = get_results(schedule_id)\nfor row in result['data']['data']:\n    print(row)\n\nget_today()\n\nGet current UTC date for date calculations.\n\nresult = get_today()\nprint(result['data']['date'])  # \"2026-02-03\"\n\nsearch(query)\n\nSearch across Supermetrics resources for guidance and suggestions.\n\nresult = search(\"facebook ads metrics\")\nprint(result['data'])\n\nhealth()\n\nCheck Supermetrics server health status.\n\nresult = health()\nprint(result['data']['status'])  # \"healthy\"\n\nWorkflow Example\nfrom supermetrics import (\n    discover_accounts,\n    discover_fields,\n    query_data,\n    get_results,\n)\n\n# 1. Find accounts\naccounts = discover_accounts(\"GAWA\")\naccount_id = accounts['data']['accounts'][0]['account_id']\n\n# 2. See available fields\nfields = discover_fields(\"GAWA\", \"metric\")\nprint([f['id'] for f in fields['data']['metrics'][:5]])\n\n# 3. Query data\nquery = query_data(\n    ds_id=\"GAWA\",\n    ds_accounts=account_id,\n    fields=[\"date\", \"sessions\", \"users\", \"pageviews\"],\n    date_range_type=\"last_7_days\"\n)\n\n# 4. Get results\ndata = get_results(query['data']['schedule_id'])\nfor row in data['data']['data']:\n    print(row)\n\nResponse Format\n\nAll functions return:\n\n{\"success\": True, \"data\": {...}}  # Success\n{\"success\": False, \"error\": \"...\"}  # Error"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/bartschneider/supermetrics-openclawd",
    "publisherUrl": "https://clawhub.ai/bartschneider/supermetrics-openclawd",
    "owner": "bartschneider",
    "version": "1.0.1",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/supermetrics-openclawd",
    "downloadUrl": "https://openagent3.xyz/downloads/supermetrics-openclawd",
    "agentUrl": "https://openagent3.xyz/skills/supermetrics-openclawd/agent",
    "manifestUrl": "https://openagent3.xyz/skills/supermetrics-openclawd/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/supermetrics-openclawd/agent.md"
  }
}