Docs

Link Metrics

Retrieve the lifetime metrics of a single link — views, opens, installs, reinstalls, time spent, reactivations, referrals, and revenue.

GEThttps://sdk.sqd.link/api/v1/sdk/metrics_for_link/:link_path

Fetch the lifetime metrics of a link using its unique path identifier.

Replace :link_path with the link's unique path (e.g., 2c1e79, or 2c1e79-test in the test environment). The path is looked up within the environment named by the ENVIRONMENT header.

Headers

PROJECT-KEYstringrequired

Your SDK project key. Found in Dashboard → Developer → API Key.

ENVIRONMENTstringrequired

Target environment. Use production or test. Any other value returns 400.

Example request

Bash
curl -X GET "https://sdk.sqd.link/api/v1/sdk/metrics_for_link/2c1e79" \
  -H "PROJECT-KEY: your-api-key" \
  -H "ENVIRONMENT: production"

Response

JSON
{
  "metrics": {
    "id": 4821,
    "name": "Summer sale",
    "path": "2c1e79",
    "title": "Summer Sale",
    "subtitle": "50% off everything",
    "active": true,
    "sdk_generated": true,
    "data": { "promo": "summer25" },
    "tags": ["campaign", "summer"],
    "updated_at": "2026-09-14T10:21:33.000Z",
    "show_preview_ios": null,
    "show_preview_android": null,
    "copy_to_clipboard_ios": null,
    "copy_to_clipboard_android": null,
    "ads_platform": null,
    "generated_from_platform": "API",
    "tracking_source": "instagram",
    "tracking_medium": "social",
    "tracking_campaign": "summer_2025",
    "visitor_id": null,
    "campaign_id": null,
    "total_views": 1250,
    "total_opens": 840,
    "total_installs": 312,
    "total_reinstalls": 18,
    "total_time_spent": 96420,
    "total_reactivations": 41,
    "total_app_opens": 2210,
    "total_user_referred": 7,
    "total_revenue": 149900
  }
}

The metrics object contains the link's descriptive fields (the same ones Link Details returns, without the image and custom redirects) plus the lifetime totals below.

Totals
total_viewsinteger

Times the link was opened in a browser.

total_opensinteger

Times the link opened the app, including deferred opens after install.

total_installsinteger

Installs attributed to the link.

total_reinstallsinteger

Reinstalls attributed to the link.

total_time_spentinteger

Total engagement time of users attributed to the link, in seconds.

total_reactivationsinteger

Users attributed to the link who returned after at least seven days of inactivity.

total_app_opensinteger

App opens by users attributed to the link.

total_user_referredinteger

Installs referred by the link's creator, for links created by a user in your app.

total_revenueinteger

Revenue attributed to the link, in cents. 0 unless revenue tracking is enabled.

Totals cover the link's whole lifetime, subject to your project's analytics retention window. On the Grovs cloud, events older than the retention period are not included.

Errors

StatusMeaning
404No link with that path exists in the given environment. Body: {"error": "Link not found"}.

See Errors for the shared status codes.

Edit this page on GitHubLast updated 2026-09-15