> ## Documentation Index
> Fetch the complete documentation index at: https://docs.iqrush.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# List AI traffic sources — HTTP

> Read the reference list of tracked AI traffic sources.

Read the reference list of tracked AI traffic sources.

**Method:** `GET`

**Path:** `/projects/{project_id}/ga4/ai-sources`

Use the HTTP base for your authorized environment and an `Authorization: Bearer` header. See [authentication](/developers/guides/04-authentication) and [HTTP setup](/developers/guides/06-http-quickstart).

## Parameters

This table covers the standard read profile. It excludes internal application routes and advanced analysis controls.

| Name | Location | Type | Required | Default | Meaning |
| - | - | - | - | - | - |
| `project_id` | path | string | Yes | — | Project ID from list\_projects. Select the project in the intended workspace and environment. |
| `active_only` | query | boolean | No | `true` | True returns active entries from the AI-source reference; false includes inactive entries. This is a reference list, not traffic totals. |

## Request example

Set `IQRUSH_API_BASE` and `IQRUSH_ACCESS_TOKEN` through secure configuration. Replace project/run IDs and sample selections with values returned by your account. JSON objects and arrays are encoded as query strings.

```bash theme={null}
curl --fail-with-body --silent --show-error --get \
  --header "Authorization: Bearer ${IQRUSH_ACCESS_TOKEN}" \
  --header "Accept: application/json" \
  --data-urlencode active_only=true \
  "${IQRUSH_API_BASE%/}/projects/${IQRUSH_PROJECT_ID}/ga4/ai-sources"
```

## Read the response

Returns reference source information, such as names and categories.

This is a source reference list, not proof that the project received traffic from every listed source. Use it to choose a source filter.

### Fields to use

These selected fields explain the example and the result to preserve. Field presence depends on the response; this is not a complete response schema.

| Field | Meaning and use |
| - | - |
| `sources` | AI-source reference entries, not measured traffic rows for this project. |
| `count` | Number of reference entries returned. Zero is not a traffic count. |

Selected response fields from IQRush Dev. Lists are shortened and project/run IDs are placeholders; this is not the full response.

```json theme={null}
{
  "project_id": "PROJECT_ID",
  "sources": [],
  "count": 0
}
```

The observed active-source list was empty. An empty reference list is not a count of the project’s traffic.

MCP equivalent: [`get_ai_traffic_sources`](/developers/tools/get_ai_traffic_sources). Use the parameters and defaults on this page for HTTP.

## If the result is unavailable

Check HTTP status and the response’s `error` field before using data. A successful empty response does not establish a zero value. Preserve `not_available`, `not_available_reason`, `unavailable_reason`, and `linked` where returned. [Errors and recovery](/developers/guides/13-errors) shows observed examples.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.