# AI Traffic

POST /api/v2/projects/{projectId}/analytics/ai-traffic

AI traffic for the dashboard: visits from AI assistants over time, a human comparison, landing pages, events by channel, and automated agents and crawlers. Existing session and event reports stay human-only; this is the view that includes automated traffic, kept separate from people.

## Request

- projectId: string, path, required — ID of the project to query.
- aiTool: chatgpt | claude | gemini | copilot | perplexity | grok | meta | deepseek | mistral — Limit the visits chart, landing pages, and the main reports to this AI assistant. The human comparison and the channel table stay unfiltered so search, social, and direct remain visible.
- dateFrom: string — Start of the window as a `YYYY-MM-DD` date, inclusive.
- dateTo: string — End of the window as a `YYYY-MM-DD` date, inclusive.
- timeZone: string — IANA timezone for calendar dates. The dashboard sends the signed-in user's local zone.

## Response

- 200: Successful response
  - automated: object[], required
    - company: string, required
    - kind: agent | crawler | bot, required
    - sessions: number, required
    - verification: verified | impersonator | unchecked, required
  - browsers: object[], required
    - browser: string, required
    - sessions: number, required
  - buckets: string[], required
  - byTool: object[], required
    - id: chatgpt | claude | gemini | copilot | perplexity | grok | meta | deepseek | mistral, required
    - sessions: number[], required
  - comparison: object, required
    - ai: number[], required
    - human: number[], required
  - conversions: object[], required
    - action: string, required
    - channel: ai | search | social | direct | referral, required
    - events: number, required
    - users: number, required
  - countries: object[], required
    - countryCode: string, required
    - sessions: number, required
  - landingPages: object[], required
    - pathname: string, required
    - sessions: number, required
  - sources: object[], required
    - id: chatgpt | claude | gemini | copilot | perplexity | grok | meta | deepseek | mistral, required
    - sessions: number, required
  - statistics: object, required
    - elapsed: number, required
- 400: Invalid input data
- 401: Authorization not provided
- 403: Insufficient access
- 500: Internal server error
