Tracking Links
Get Tracking Link Stats
Returns cumulative totals plus daily and monthly time-series for a single tracking link. Requires permission api_tracking_links_read.
https://public-api.fansmetric.comAuthorization
defaultAuthorizationBearer <token>Send your FansMetric API key as a Bearer token in the Authorization header.
In: header
Path Parameters
account_id*integerOnlyFans numeric account ID.
link_id*integerTracking link ID.
Query Parameters
date_startstringWindow start (UTC). Absent → unbounded.
date_endstringWindow end (UTC). Absent → unbounded.
Response Fields
data.summary.subs_totalintegerSubscribers claimed inside the requested window.
data.summary.cumulative_subs_totalintegerSubscribers claimed since the link's inception, up to
date_end. Ignoresdate_start.data.summary.revenue_totalstringNet attributed revenue inside the window.
data.summary.cumulative_revenue_totalstringNet attributed revenue since inception, up to
date_end. Ignoresdate_start.data.summary.spenders_totalintegerDistinct spenders inside the window.
data.summary.last_scanned_atstring | nullWhen this link was last refreshed by the scraper.
data.daily_metrics[]arrayPer-day buckets, UTC, sparse — only days with activity are emitted (no zero-filling).
data.daily_metrics[].timestampstringBucket start (
YYYY-MM-DD, midnight UTC).data.daily_metrics[].subsintegerSubscribers claimed in the bucket. Incremental.
data.daily_metrics[].cumulative_subsintegerRunning total of claims from the link's first activity through this bucket — not from the window start.
data.daily_metrics[].revenuestringNet revenue in the bucket. Incremental.
data.daily_metrics[].cumulative_revenuestringRunning total of revenue from the link's first activity through this bucket.
data.daily_metrics[].spendersintegerDistinct spenders in the bucket.
data.monthly_metrics[]arrayPer-month buckets. Same shape as
daily_metrics[], aligned to the 1st of the month UTC.dataobject | arrayEndpoint-specific payload. See the fields below for this route.
_meta._credits.usedintegerCredits consumed by this request (currently always
1)._meta._rate_limits.limit_minuteintegerMaximum requests per minute for the organization.
_meta._rate_limits.remaining_minuteintegerRemaining requests in the current minute window.
_meta._rate_limits.limit_dayintegerMaximum requests per day for the organization.
_meta._rate_limits.remaining_dayintegerRemaining requests in the current day window.
| Field | Type | Description |
|---|---|---|
| data.summary.subs_total | integer | Subscribers claimed inside the requested window. |
| data.summary.cumulative_subs_total | integer | Subscribers claimed since the link's inception, up to date_end. Ignores date_start. |
| data.summary.revenue_total | string | Net attributed revenue inside the window. |
| data.summary.cumulative_revenue_total | string | Net attributed revenue since inception, up to date_end. Ignores date_start. |
| data.summary.spenders_total | integer | Distinct spenders inside the window. |
| data.summary.last_scanned_at | string | null | When this link was last refreshed by the scraper. |
| data.daily_metrics[] | array | Per-day buckets, UTC, sparse — only days with activity are emitted (no zero-filling). |
| data.daily_metrics[].timestamp | string | Bucket start (YYYY-MM-DD, midnight UTC). |
| data.daily_metrics[].subs | integer | Subscribers claimed in the bucket. Incremental. |
| data.daily_metrics[].cumulative_subs | integer | Running total of claims from the link's first activity through this bucket — not from the window start. |
| data.daily_metrics[].revenue | string | Net revenue in the bucket. Incremental. |
| data.daily_metrics[].cumulative_revenue | string | Running total of revenue from the link's first activity through this bucket. |
| data.daily_metrics[].spenders | integer | Distinct spenders in the bucket. |
| data.monthly_metrics[] | array | Per-month buckets. Same shape as daily_metrics[], aligned to the 1st of the month UTC. |
| data | object | array | Endpoint-specific payload. See the fields below for this route. |
| _meta._credits.used | integer | Credits consumed by this request (currently always 1). |
| _meta._rate_limits.limit_minute | integer | Maximum requests per minute for the organization. |
| _meta._rate_limits.remaining_minute | integer | Remaining requests in the current minute window. |
| _meta._rate_limits.limit_day | integer | Maximum requests per day for the organization. |
| _meta._rate_limits.remaining_day | integer | Remaining requests in the current day window. |
curl --request GET "https://public-api.fansmetric.com/v1/100000001/tracking-links/sample_link_id/stats?date_start=sample_date_start&date_end=sample_date_end" \
--header "Authorization: Bearer YOUR_API_KEY"Response
200