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.buffmetrics.com
GET/v1/{account_id}/campaigns
Bearer

Authorization

default
AuthorizationBearer <token>

Send your FansMetric API key as a Bearer token in the Authorization header.

In: header

Path Parameters

  • account_id*integer

    OnlyFans numeric account ID.

Query Parameters

  • limitinteger

    Page size. Default 100. Min 1, max 200.

  • offsetinteger

    Rows to skip. Default 0.

  • fieldstring

    Sort and stats column. One of created_date (default), subscribers_counts, transitions_counts, clicks_count, name, shared.

  • sortstring

    desc (default) or asc.

  • with_deletedstring

    true (default) includes soft-deleted campaigns; false returns only active ones.

  • sorting_deletedstring

    When true, soft-deleted campaigns are sorted to the bottom even when included. Default false.

  • statsstring

    When true, OF computes windowed countSubscribers and countTransitions. Default false.

  • start_datestring

    Only forwarded when stats=true. YYYY-MM-DD HH:MM:SS UTC. Default: 2 years ago.

  • end_datestring

    Only forwarded when stats=true. YYYY-MM-DD HH:MM:SS UTC. Default: end of today UTC.

curl --request GET "https://public-api.buffmetrics.com/v1/acct_XXXXX/campaigns?limit=20&offset=0&field=sample_field" \
  --header "Authorization: Bearer YOUR_API_KEY"

Response

200
{
"data":{
"list":[
0:{
"id":3161729
"campaignName":"Reddit June"
"campaignCode":"reddit-june"
"countTransitions":245
"countSubscribers":18
"createdAt":"2026-05-01T12:00:00+00:00"
"endDate":"2026-07-01T12:00:00+00:00"
"deletedAt":null
}
]
"hasMore":true
}
"_pagination":{
"next_page":"/v1/12345678/campaigns?limit=100&offset=100"
}
"_meta":{
"_credits":{
"used":1
}
"_rate_limits":{
"limit_minute":1000
"remaining_minute":999
"limit_day":50000
"remaining_day":49999
}
}
}