---
title: "Get Site Costs Ep"
method: GET
path: "/sites/{site_id}/costs"
tags: ["sites"]
---

# Get Site Costs Ep

`GET /sites/{site_id}/costs`

## 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/sites/{site_id}/costs`
- Auth: API key in header `X-Agent-Key`

Per-brand API cost breakdown.

## Path parameters

- `site_id` string, required

## Query parameters

- `email` string, nullable
- `start_date` string, date, nullable
- `end_date` string, date, nullable

## Response `200`

Successful Response

- SiteCostsResponse
  - `site_id` string, required
  - `domain` string, required
  - `total_microcents` integer
  - `total_dollars` number
  - `by_provider` CostProviderBreakdown[]
    - `provider` string, required
    - `total_microcents` integer
    - `total_dollars` number
    - `call_count` integer
  - `by_operation` CostOperationBreakdown[]
    - `provider` string, required
    - `operation` string, required
    - `total_microcents` integer
    - `total_dollars` number
    - `call_count` integer
  - `daily` CostDailyPoint[]
    - `date` string, required
    - `total_microcents` integer

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