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
200Behavior
Breaking change: summary.clicks_total and the per-bucket clicks field have been removed. There was never per-day click data; lifetime clicks are countTransitions on the list and get endpoints.
Added: cumulative_subs_total, cumulative_revenue_total, and per-bucket cumulative_subs / cumulative_revenue.
Bucket values (subs, revenue, spenders) are incremental; cumulative_subs and cumulative_revenue are running totals since the link's first activity. The first returned bucket's cumulative_revenue can therefore exceed its own revenue, because it includes pre-window activity.
summary.subs_total / revenue_total / spenders_total respect the requested window exactly. The cumulative_*_total pair runs from the link's inception to date_end and ignores date_start — a running total restarted at the window edge would not be a cumulative.
Buckets are sliced on whole boundaries: a date_start in the middle of a day returns that entire day's bucket value, not a partial one.
On an unwindowed call subs_total == cumulative_subs_total, revenue_total == cumulative_revenue_total, and the last daily bucket's cumulative_revenue equals cumulative_revenue_total — useful as a sanity check.
Buckets are UTC day/month boundaries and sparse: only buckets with activity are emitted, with no zero-filling. The FansMetric web app buckets in the viewer's timezone and zero-fills empty days, so cross-checking against the web app across a timezone boundary can appear to shift by a day.
Bucket coverage is bounded by sync history — claims and transactions older than the connection's first sync do not appear.