# links.of_campaigns: The OnlyFans tracking links of one account, with their lifetime clicks and subscribers.

> **API v1 is being retired.** [API v2](/v2/) was published on 2026-11-09. v1 stops answering on 2026-12-07 (2026-12-21 if your agency asks for the extension), earlier only if no key uses it and announced at least 7 days before ([Versioning](/versioning/)); the `Sunset` header of each v1 response is the date that applies to your key. [Migrate from v1 to v2](/v2/migrate/).

`GET /v1/accounts/{accountId}/links/tracking` · MCP tool `links_of_campaigns` · [Tracking and trial links](/reference/links/)

## What it does

The OnlyFans tracking links of one account, with their lifetime clicks and subscribers.

## When to use it

Returns the tracking links of one OnlyFans account (the links a creator shares on social media to see where subscribers come from): name, share link, lifetime clicks and subscribers, creation and end date. Checked now on the account, 10 links per call: a page of limit links costs up to limit/10 calls, so keep limit small and follow next_cursor only when you need more. It never creates or deletes a link. Pass include_deleted=true to go on, after the last page, with the links deleted on OnlyFans that VENUZ kept (deleted: true, deleted_detected_at), at no OnlyFans cost. For clicks, subscribers and money over a period use links.analytics, or links.traffic without money (both read from what VENUZ keeps, no OnlyFans call).

## Permission and cost

| | |
| --- | --- |
| Permission | `links:read` or `links:read_traffic` |
| Effect | Read only: it never changes anything. |
| Cost class | `realtime` — costs 2 units (realtime call to the account on OnlyFans; also shows the account queue) |
| Scope | One account the key can use. |
| Page size | Up to 100 per page (`x-venuz-page-max`). |

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `accountId` | path | string (uuid) | yes | Id of the account, from `accounts.list` or `api.whoami`. |
| `cursor` | query | string, up to 512 characters | no | Opaque cursor from next_cursor of the previous page. Omit it for the first page. |
| `limit` | query | integer, 1 to 100, default 50 | no | Links per page, 1 to 100, rounded up to a multiple of 10 (OnlyFans returns links 10 at a time; limit 11 gives 20). limit in the response says the page size applied. Each 10 links is one OnlyFans call. |
| `include_deleted` | query | one of "true", "false", default "false" | no | true: when the links on OnlyFans end (next_cursor would be null), next_cursor goes on with the tracking links deleted on OnlyFans that VENUZ kept, most recently deleted first, read from the copy VENUZ keeps (no OnlyFans call). Every link then says deleted and deleted_detected_at. Default false: only the links on OnlyFans now. |

## Example request (test mode)

With a test key in `VENUZ_API_KEY` (`export VENUZ_API_KEY=vzk_test_…`), this request changes nothing: test keys answer from a sample dataset.

```bash
curl -X GET "https://open.venuz.ai/v1/accounts/3a9e1c7b-2d4f-4b8a-9c6e-1f0d2b3a4c5e/links/tracking" \
  -H "Authorization: Bearer $VENUZ_API_KEY"
```

## Example response (200)

```json
{
  "account": {
    "id": "3a9e1c7b-2d4f-4b8a-9c6e-1f0d2b3a4c5e",
    "name": "Sample Creator",
    "connection": {
      "state": "connected",
      "as_of": "2026-09-28T12:00:00.000Z"
    }
  },
  "data": [
    {
      "id": "9101",
      "name": "Instagram bio",
      "code": 51001,
      "share_url": null,
      "clicks": 320,
      "subscribers": 41,
      "created_at": "2026-08-01T12:00:00.000Z",
      "ends_at": null
    }
  ],
  "next_cursor": null,
  "limit": 50,
  "source": "onlyfans",
  "as_of": "2026-09-28T12:00:00.000Z"
}
```

## Response fields

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `account` | object | yes | The OnlyFans account this data belongs to, with its connection state. |
| `account.id` | string (uuid) | yes |  |
| `account.name` | string | yes | Display name of the account in VENUZ, set by the agency. |
| `account.connection` | object | yes |  |
| `account.connection.state` | one of "connected", "connecting", "disconnected" | yes | Connection state of the OnlyFans account in VENUZ, from our stored record. Some accounts not yet moved to the new connection may read disconnected here; checks on the account are not available for them yet. |
| `account.connection.as_of` | string (date-time), or null | yes | When VENUZ last saw the account connected. Null if never. |
| `data` | array of object | yes | Tracking links of the account, as the OnlyFans tracking links screen orders them. |
| `data[].id` | string | yes | OnlyFans id of the tracking link (the link_id of links.analytics). |
| `data[].name` | string, or null | yes | Name of the tracking link, set by the creator or the agency. |
| `data[].code` | integer, at least 0, or null | yes | Code OnlyFans puts in the link. |
| `data[].share_url` | string (uri), or null | yes | Public link to share (opens the creator profile on OnlyFans with this link attributed). Null when OnlyFans did not give what builds it. |
| `data[].clicks` | integer, at least 0, or null | yes | Clicks on the link since it was created, as OnlyFans counts them. |
| `data[].subscribers` | integer, at least 0, or null | yes | Fans who subscribed through the link since it was created. |
| `data[].created_at` | string (date-time), or null | yes |  |
| `data[].ends_at` | string (date-time), or null | yes | When the link stops working. Null: no end date. |
| `data[].deleted` | boolean | no | Only with include_deleted=true. true: the link was deleted on OnlyFans; it comes from the copy VENUZ keeps, with the last clicks and subscribers VENUZ read, and share_url and ends_at null. |
| `data[].deleted_detected_at` | string (date-time), or null | no | Only with include_deleted=true: when VENUZ saw the link was gone from OnlyFans, up to about an hour after it was deleted (OnlyFans does not give the date). Null for a link still on OnlyFans, or when VENUZ did not record it. |
| `next_cursor` | string, or null | yes | Pass it as cursor, with the same filters, to get the next page. Null when there are no more results. |
| `source` | one of "store", "onlyfans" | yes | store: read from the copy VENUZ keeps (fast, no load on the OnlyFans account). onlyfans: a live check on the account during this call. |
| `as_of` | string (date-time) | yes | When this data was true. For source=store it is when VENUZ last updated its copy (or read it, if the record carries no update time); for source=onlyfans it is the moment OnlyFans answered. |
| `limit` | integer, at least 1, or null | yes | The page size this response applied. It can differ from the limit you asked when the source pages in fixed steps. Null when this request does not page. |

## Errors and what to do

Every error is `{ "error", "message", "fix", "docs_url", "request_id" }`. Branch on `error`; do what `fix` says.

| Error | HTTP | What to do |
| --- | --- | --- |
| [`invalid_request`](/errors/#invalid_request) | 400 | Check limit (1 to 100) and the cursor; a cursor only works with this list and the same include_deleted: start again without cursor. |
| [`invalid_request`](/errors/#invalid_request) | 400 | Correct the request, then retry. When details.invalid_fields is present, each entry names a field and what it needs (its message); when details.reason is present, it says what is wrong. The parameters and body of every operation are in the specification. |
| [`invalid_api_key`](/errors/#invalid_api_key) | 401 | Send a valid key as "Authorization: Bearer vzk_live_..." (or vzk_test_...). If you lost the key, ask the agency to create a new one. |
| [`api_key_expired`](/errors/#api_key_expired) | 401 | Ask the agency to rotate the key or create a new one. Keys last at most 366 days. |
| [`api_key_revoked`](/errors/#api_key_revoked) | 401 | Stop using this key. Ask the agency for a new one if you still need access. |
| [`api_key_suspended`](/errors/#api_key_suspended) | 403 | If details.reason is creator_withdrawn, ask the agency owner to create a new key from an active member of the team. If it is suspended_by_venuz, contact VENUZ support: the same key works again as soon as the suspension is lifted, so do not delete it. |
| [`agency_inactive`](/errors/#agency_inactive) | 403 | The agency's VENUZ account is suspended or closed; access resumes when it is active again. Do not delete the key. |
| [`api_not_enabled`](/errors/#api_not_enabled) | 403 | Ask VENUZ support to enable API access for the agency. Keep the key: it works as soon as access is enabled. |
| [`ip_not_allowed`](/errors/#ip_not_allowed) | 403 | Send the request from one of the addresses allowed on the key, or ask the agency to update the allowed addresses. |
| [`insufficient_scope`](/errors/#insufficient_scope) | 403 | Call GET /v1/whoami to see what this key can do. Ask the agency to grant the missing permission (listed in details.missing_scopes) or to use a key that has it. If details.withheld_by_creator is true, the key has the permission but the person who created it cannot do this in VENUZ today: they need the role permissions in details.creator_missing_permissions (when details.creator_needs is any_of, any one of them is enough), or the agency must use a key created by someone who has them. |
| [`of_rejected`](/errors/#of_rejected) | 409 | Nothing was changed. Do not retry the same request: check that the item still exists on OnlyFans and that the account can see it on OnlyFans, then read again with a corrected request. |
| [`rate_limited`](/errors/#rate_limited) | 429 | Wait for the number of seconds in the Retry-After header, then retry. Spread requests out instead of retrying in a loop. Each request costs the units of its cost class (header X-Request-Cost: 1 for stored data, 2 for a realtime call to the OnlyFans account or a heavy query), and the RateLimit-* headers show how many units are left for this key and its agency in the current minute. |
| [`internal_error`](/errors/#internal_error) | 500 | Retry once after a few seconds; do not retry in a loop. If the request was a write, retry with the SAME Idempotency-Key, never a new one. If it keeps failing, contact VENUZ support and include the request_id. |
| [`api_halted`](/errors/#api_halted) | 503 | Wait for the number of seconds in the Retry-After header, then retry. Your key is still valid. |
| [`stored_data_unavailable`](/errors/#stored_data_unavailable) | 503 | Nothing was changed. Wait for the number of seconds in the Retry-After header, then retry once; do not retry in a loop. Narrowing the request (account_id or chat_id, a smaller limit) makes it lighter. If it keeps failing, contact VENUZ support with the request_id. |

VENUZ is independent software for agencies. It is not affiliated with, endorsed or sponsored by OnlyFans. OnlyFans is a trademark of its owner.
