---
title: "Org-wide revenue attribution analytics"
method: GET
path: "/api/analytics"
---

# Org-wide revenue attribution analytics

`GET /api/analytics`

## Request

- Base URL: `https://api.seenpaid.com`
- URL: `https://api.seenpaid.com/api/analytics`
- Auth: one of:
  - HTTP bearer
  - OAuth 2 (authorization code, authorization URL `https://api.seenpaid.com/authorize`, token URL `https://api.seenpaid.com/token`, scopes: `posts:read`)

Clicks → sales → revenue for the org, with per-platform, per-country, per-device, per-referrer, per-OS, per-browser, per-page and per-UTM breakdowns, a daily time-series, and the change vs. the previous equal-length period. Requires an active plan (402 if the org is not on an active/trialing plan).

## Query parameters

- `days` 1 | 7 | 30 | 90
- `to` string, date
- `platform` 'x' | 'bluesky' | 'linkedin' | 'instagram' | 'facebook' | 'tiktok' | 'discord' | 'telegram' | 'mastodon' | 'nostr' | 'devto' | 'hashnode' | 'medium' | 'reddit' | 'threads' | 'tumblr' | 'pinterest' | 'vk' | 'slack' | 'wordpress' | 'ghost' | 'lemmy' | 'webhook' | 'microblog' | 'matrix'

## Response `200`

OK

- object
  - `success` true
  - `data` object: Totals, previous-period totals, byPlatform/byCountry/byDevice/byReferrer/byOS/byBrowser/byPage/byUtmSource/byUtmMedium/byUtmCampaign breakdown arrays, liveVisitors, goals, timeseries and funnel.

## Other responses

- `401`: Missing or invalid credential (API key or OAuth token).
- `402`: Org is not on an active plan.

---

[API](https://skmtc.dev/seenpaid/apis/seenpaid-api.md) · [All operations](https://skmtc.dev/seenpaid/apis/seenpaid-api/llms.txt) · [OpenAPI document](https://skmtc.dev/seenpaid/apis/seenpaid-api/revisions/7b3f72ed82e9?raw)
