---
title: "Ga Metrics By Domain"
method: GET
path: "/ga/metrics-by-domain"
tags: ["google-analytics"]
---

# Ga Metrics By Domain

`GET /ga/metrics-by-domain`

## 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/metrics-by-domain`
- Auth: API key in header `X-Agent-Key`

Fetch GA4 metrics by domain (for CLI usage).

## Query parameters

- `email` string, required: Signed-in user email
- `domain` string, required: Site domain
- `days` integer: Number of days to look back

## 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)
