---
title: "Ga Traffic Sources"
method: GET
path: "/ga/traffic-sources"
tags: ["google-analytics"]
---

# Ga Traffic Sources

`GET /ga/traffic-sources`

## Request

- Base URL: `https://api.xeorank.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.xeorank.com/ga/traffic-sources`
- Auth: API key in header `X-Agent-Key`

Traffic by source/channel with AI-assistant referral detection.

Compares the last `days` window to the prior one and surfaces sessions
from ChatGPT / Perplexity / Claude / Gemini / Copilot etc.

## Query parameters

- `email` string, required: Signed-in user email
- `site_id` string, required: Site UUID
- `days` integer: Window length in days (compared to the prior window)
- `start_date` string, nullable: Start date (YYYY-MM-DD)
- `end_date` string, nullable: End date (YYYY-MM-DD)

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/xeorank/apis/seo-intelligence-engine.md) · [All operations](https://skmtc.dev/xeorank/apis/seo-intelligence-engine/llms.txt) · [OpenAPI document](https://skmtc.dev/xeorank/apis/seo-intelligence-engine/revisions/449a3fd73454?raw)
