---
title: "List the affiliate per-source performance"
method: GET
path: "/affiliate/sources/"
tags: ["affiliate"]
---

# List the affiliate per-source performance

`GET /affiliate/sources/`

## Request

- Base URL: `https://api.getoneprofile.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.getoneprofile.ai/affiliate/sources/`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer

How each traffic source the affiliate tagged has performed. A source is the affiliate's own `s=` parameter on a link they shared; untagged traffic comes back under an empty source.

## Query parameters

- `days` integer: How many days back to include.

## Response `200`

Successful Response

- AffiliateSourceStatReadSchema[]
  - `clicks` integer, required
  - `earned_cents` integer, required
  - `paying` integer, required
  - `signups` integer, required
  - `source` string, required: The affiliate's own link tag; empty string for untagged traffic.

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `422`: Invalid request made to the API.
- `500`: Internal server error.
- `502`: Bad gateway error.
- `503`: Service unavailable.

---

[API](https://skmtc.dev/getoneprofile/apis/api-reference-oneprofile.md) · [All operations](https://skmtc.dev/getoneprofile/apis/api-reference-oneprofile/llms.txt) · [OpenAPI document](https://skmtc.dev/getoneprofile/apis/api-reference-oneprofile/revisions/4a6bd71e3f02?raw)
