Campaigns
List Campaigns
Returns the creator's tracking campaigns. Same handler and same response shape as [GET /v1/{account_id}/tracking-links](/api-reference/tracking-links/list) — exposed here under the OF webapp's Campaigns-tab URL for callers that prefer OF terminology. Requires permission api_campaigns_list.
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.
Query Parameters
limitintegerPage size. Default 100. Min 1, max 200.
offsetintegerRows to skip. Default 0.
fieldstringSort and stats column. One of
created_date(default),subscribers_counts,transitions_counts,clicks_count,name,shared.sortstringdesc(default) orasc.with_deletedstringtrue(default) includes soft-deleted campaigns;falsereturns only active ones.sorting_deletedstringWhen
true, soft-deleted campaigns are sorted to the bottom even when included. Defaultfalse.statsstringWhen
true, OF computes windowedcountSubscribersandcountTransitions. Defaultfalse.start_datestringOnly forwarded when
stats=true.YYYY-MM-DD HH:MM:SSUTC. Default: 2 years ago.end_datestringOnly forwarded when
stats=true.YYYY-MM-DD HH:MM:SSUTC. Default: end of today UTC.
curl --request GET "https://public-api.fansmetric.com/v1/acct_XXXXX/campaigns?limit=20&offset=0&field=sample_field" \
--header "Authorization: Bearer YOUR_API_KEY"Response
200