---
title: "Get affiliate link visits distribution by referer"
method: GET
path: "/v2/affiliation/{userId}/distributions/referers"
tags: ["Affiliations"]
---

# Get affiliate link visits distribution by referer

`GET /v2/affiliation/{userId}/distributions/referers`

## Request

- Base URL: `https://app.metricool.com/api`
- URL: `https://app.metricool.com/api/v2/affiliation/{userId}/distributions/referers`
- Auth: none declared

Returns the distribution of affiliate link visitors grouped by referring source within a date range.

## Path parameters

- `userId` integer, required

## Query parameters

- `from` string, required
- `to` string, required
- `timezone` string

## Response `200`

Referer distribution retrieved successfully

- JsonOkListResponseDistributionItem
  - `metadata` object
  - `page` JsonPaging
    - `next` string
  - `data` DistributionItem[]
    - `key` string
    - `value` number, double

## Other responses

- `403`: User not authorized or affiliate is banned

---

[API](https://skmtc.dev/metricool/apis/metricool-api.md) · [All operations](https://skmtc.dev/metricool/apis/metricool-api/llms.txt) · [OpenAPI document](https://skmtc.dev/metricool/apis/metricool-api/revisions/aea9d9a8415a?raw)
