---
title: "Get top traffic sources (referrers / utm)"
method: GET
path: "/v0/top_sources"
tags: ["Query"]
---

# Get top traffic sources (referrers / utm)

`GET /v0/top_sources`

## Request

- Base URL: `https://api.formo.so`
- URL: `https://api.formo.so/v0/top_sources`
- Auth: HTTP bearer

## Query parameters

- `date_from` string, date
- `date_to` string, date
- `filters` string
- `page_scope` 'page' | 'session'
- `metric_column` 'referrer' | 'referrer_url' | 'ref' | 'utm_source' | 'utm_medium' | 'utm_campaign' | 'utm_term' | 'utm_content' | 'origin' | 'device' | 'browser' | 'os' | 'channel' | 'paid_source'
- `limit` integer
- `offset` integer

## Response `200`

Top sources

- AnalyticsResponse: Analytics endpoint response. The `data` array contains the rows; the exact row shape depends on the endpoint. `meta` carries column type information for rendering, `rows` is the row count, and `statistics` holds query timing metadata.
  - `data` object[]
  - `meta` object[]
    - `name` string
    - `type` string
  - `rows` integer
  - `rows_before_limit_at_least` integer
  - `statistics` object

## Other responses

- `401`: Invalid API key
- `403`: Insufficient permissions

---

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