---
title: "Retrieve campaign analytics"
method: GET
path: "/campaign/{id}/analytics"
tags: ["Analytics"]
---

# Retrieve campaign analytics

`GET /campaign/{id}/analytics`

Retrieves analytics for a program.

## Path parameters

- `id` string, required

## Query parameters

- `days` integer
- `startDate` integer
- `endDate` integer

## Response `200`

Campaign analytics returned.

- CampaignAnalyticsResponse
  - `analytics` CampaignAnalytics, required
    - `invites` integer
    - `impressions` integer
    - `uniqueImpressions` integer
    - `participants` integer
    - `referrals` integer
    - `referralCreditPendings` integer
    - `referralCreditExpireds` integer
    - `emailShares` integer
    - `facebookShares` integer
    - `twitterShares` integer
    - `threadsShares` integer
    - `blueskyShares` integer
    - `pinterestShares` integer
    - `linkedInShares` integer
    - `smsShares` integer
    - `messengerShares` integer
    - `whatsAppShares` integer
    - `wechatShares` integer
    - `telegramShares` integer
    - `qrcodeShares` integer
    - `redditShares` integer
    - `tumblrShares` integer
    - `copyRefLinkShares` integer
    - `iosNativeShares` integer
    - `androidNativeShares` integer
    - `totalRevenue` integer — Affiliate programs only. Revenue in the smallest unit of the program currency.
    - `totalCommissions` integer — Affiliate programs only. Commissions in the smallest unit of the program currency.
    - `totalCommissionCount` integer — Affiliate programs only. Number of commission records.
  - `startDate` integer, required
  - `endDate` integer, required

## Other responses

- `400` — Invalid request.
- `401` — Authorization is missing or invalid.
- `403` — The API key is not allowed to perform this action.
- `404` — Resource not found.
- `429` — Too many requests.

---

[API](https://skmtc.net/growsurf/apis/growsurf-rest-api.md) · [All operations](https://skmtc.net/growsurf/apis/growsurf-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/growsurf/growsurf-rest-api/revisions/26f06e273394/schema)
