---
title: "Get traffic attribution"
method: GET
path: "/api/mcp/projects/{projectId}/traffic/attribution"
tags: ["Traffic"]
---

# Get traffic attribution

`GET /api/mcp/projects/{projectId}/traffic/attribution`

## Request

- Base URL: `https://app.searchable.com`
- URL: `https://app.searchable.com/api/mcp/projects/{projectId}/traffic/attribution`
- Auth: HTTP bearer

Traffic attribution by UTM tuple (source / medium / campaign) plus referrer domain and bot category, ranked by request count. `limit` defaults to 50, max 200.

## Path parameters

- `projectId` string, uuid, required

## Query parameters

- `days` integer
- `from` string
- `to` string
- `host` string
- `limit` integer

## Response `200`

Attribution rows ranked by request count.

- TrafficAttributionResponse: Requests grouped by UTM tuple, referrer, and bot category.
  - `rows` object[], required
    - `source` string, required
    - `medium` string, required
    - `campaign` string, required
    - `referrerDomain` string, required
    - `botCategory` string, required
    - `requests` number, required
    - `sessions` number, required
    - `pages` number, required
  - `totalRows` number, required
  - `truncated` boolean, required: True when the source aggregate's 100-row cap was hit — totalRows is then a floor.
  - `dateRange` object, required
    - `from` string, date-time, required
    - `to` string, date-time, required

## Other responses

- `400`: Error response. `code` is the machine-readable reason — see the [error reference](/api/errors) for the full catalog and remediation per code.
- `401`: Error response. `code` is the machine-readable reason — see the [error reference](/api/errors) for the full catalog and remediation per code.
- `403`: Error response. `code` is the machine-readable reason — see the [error reference](/api/errors) for the full catalog and remediation per code.
- `404`: Error response. `code` is the machine-readable reason — see the [error reference](/api/errors) for the full catalog and remediation per code.
- `409`: Error response. `code` is the machine-readable reason — see the [error reference](/api/errors) for the full catalog and remediation per code.
- `429`: Rate limited. Usually the per-API-key REST limit (600 requests/minute); on Google-backed endpoints it can also relay an upstream Google rate limit. `Retry-After` (seconds) is present when the limit was applied by Searchable's own rate limiter; it may be absent when an upstream provider rate-limits.
- `504`: Error response. `code` is the machine-readable reason — see the [error reference](/api/errors) for the full catalog and remediation per code.

## Changes

- **2026-11-03** `28a5e2a65cd3`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/searchable/apis/searchable-rest-api/changes/api/mcp/projects/:projectId/traffic/attribution/get.md)

---

[API](https://skmtc.dev/searchable/apis/searchable-rest-api.md) - [All operations](https://skmtc.dev/searchable/apis/searchable-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/searchable/apis/searchable-rest-api/revisions/a1cc70e46e73?raw)
