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

# Get Bot Activity Report

> Report AI crawler and bot traffic from Microsoft Clarity AI Visibility: requests per crawler such as GPTBot or ClaudeBot, paths crawled, status codes, robots.txt violations, daily trends and crawls...

Report AI crawler and bot traffic from Microsoft Clarity AI Visibility: requests per crawler such as GPTBot or ClaudeBot, paths crawled, status codes, robots.txt violations, daily trends and crawls per referral visit. Needs a CDN connected to the Clarity project under Bot Activity; without one every report is empty (check with report\_type cdn\_providers).

| | |
| - | - |
| **App** | Microsoft Clarity |
| **Operation ID** | `microsoft_clarity_get_bot_activity_report` |
| **Type** | Action |
| **Connection** | `microsoft_clarity` (required) |
| **Credits per run** | 1 |
| **Agent / MCP tool** | Yes |

## Inputs

| Field | Type | Required | Default | Description |
| - | - | - | - | - |
| `report_type` | enum (`overview`, `crawlers`, `paths`, `content_type_distribution`, `page_type_distribution`, `status_code_distribution`, `requests_trend`, `pages_crawled_trend`, ...) | No | `overview` | Which report to return. overview: bot requests, share of all traffic, pages crawled, robots.txt violations and the connected CDN. crawlers: requests per crawler, grouped by group\_by and break\_down\_by. paths: most requested paths. content\_type\_distribution, page\_type\_distribution, status\_code\_distribution: request split. requests\_trend, pages\_crawled\_trend, violations\_trend: daily project values. path\_trend, status\_code\_trend, content\_type\_trend, crawler\_trend: daily values for the items in trend\_values. scrape\_to\_referral: crawls per visit each AI operator sends back. cdn\_providers: CDNs connected to the project. |
| `date_range` | DateRange | No | - | Request dates to include, as days in `timezone`, both ends inclusive. Use preset='FIXED' with start/end dates (YYYY-MM-DD), or a preset such as LAST\_30\_DAYS. Default: the last 7 days. |
| `timezone` | string | No | `UTC` | IANA timezone used to read dates and relative periods, e.g. 'Europe/London' or 'America/New\_York'. Defaults to UTC. |
| `bot_type` | enum (`AIBots`, `AllBots`, `AllTraffic`) | No | - | Traffic to report on: AIBots (AI crawlers only, the default), AllBots (every known bot) or AllTraffic (bots and humans). |
| `filters` | object or string | No | - | More Clarity bot filters, sent as-is (all optional; values inside one filter are ORed): botOperator (e.g. \["OpenAI", "Anthropic"]), botAgent (e.g. \["GPTBot", "ClaudeBot"]), botActivity (e.g. \["AI Crawler", "AI Assistant", "AI Search"]), violation ("Violation" or "NoViolation" of robots.txt), cdnProvider (Azure, Akamai, Fastly, Cloudflare, WordPress, CloudFront), statusCode (e.g. \["200", "404"]), domain, path (\[\{"operator", "value"}] with operator Equals, Contains, StarstWith, EndsWith or RegexMatch), contentType (HTML, JSON, XML, PDF, Image, Video, Audio, JavaScript, CSS, Markdown, Text, Font, Unknown), pageType (e.g. \["Product", "Blog"]). Use the listed spellings exactly. The date and bot type come from date\_range and bot\_type. Example: \{"botOperator": \["OpenAI"], "statusCode": \["404"]} |
| `group_by` | enum (`BotOperator`, `BotAgent`, `BotCategory`) | No | `BotOperator` | crawlers and crawler\_trend: column for the top-level rows, BotOperator (company), BotAgent (user agent) or BotCategory. |
| `break_down_by` | enum (`BotOperator`, `BotAgent`, `BotCategory`) | No | `BotAgent` | crawlers and crawler\_trend: column for the items nested under each row, BotOperator, BotAgent or BotCategory. |
| `trend_values` | string or array of any | No | - | Required for path\_trend, status\_code\_trend, content\_type\_trend and crawler\_trend: up to 5 exact values from the matching report. path\_trend takes the full `url` from the paths report; status\_code\_trend and content\_type\_trend take values from the distribution reports. crawler\_trend takes \[\{"label", "item"}] from the crawlers report run with the same group\_by and break\_down\_by (omit item to trend the row total). Example: \["`https://example.com/pricing`"] or \[\{"label": "OpenAI", "item": "GPTBot"}] |
| `limit` | integer | No | `100` | Rows to return for crawlers and paths, 1 to 100. |
| `offset` | integer | No | `0` | Rows to skip for crawlers and paths, to read further pages. |
| `sort_ascending` | boolean | No | - | crawlers and paths: true to sort by request count ascending. Default: descending. |
| `group_by_content_type` | boolean | No | - | paths: true to group the paths by response content type. |

### DateRange

| Field | Type | Required | Default | Description |
| - | - | - | - | - |
| `start` | string | No | - | The start date of the date range to query, format: YYYY-MM-DD or dynamic node reference like \{\{nodeId\_\_data.start\_date}}. Required when preset is 'FIXED' or 'CUSTOM'. |
| `end` | string | No | - | The end date of the date range to query, format: YYYY-MM-DD or dynamic node reference like \{\{nodeId\_\_data.end\_date}}. Required when preset is 'FIXED' or 'CUSTOM'. |
| `preset` | string | No | - | Predefined date ranges or input modes: - Use 'FIXED' or leave empty when you want to specify exact dates (YYYY-MM-DD format) in start/end fields - Use 'CUSTOM' when you want to use dynamic values from other nodes (\{\{nodeId\_\_data.start\_date}} format) in start/end fields - Use other presets (TODAY, YESTERDAY, LAST\_7\_DAYS, etc.) for predefined date ranges (start/end will be ignored) LAST\_N\_MONTHS and LAST\_N\_WEEKS are complete calendar periods ending with last month or last week, so they exclude the current month or week; for a rolling window up to yesterday use LAST\_N\_DAYS (for example LAST\_90\_DAYS) or a FIXED range. When using 'FIXED' or 'CUSTOM', both start and end fields are required. |
| `compare` | CompareOptions | No | - | Optional comparison date range settings. ALWAYS use this field for comparisons; DO NOT create additional requests or nodes, as the backend returns current, comparison, and delta metrics in a single call. If one period has no data at all, only the period with data is returned and no delta row; treat the missing period as zero. |

### CompareOptions

| Field | Type | Required | Default | Description |
| - | - | - | - | - |
| `start` | string | No | - | The start date of the comparison range, format: YYYY-MM-DD. Optional if preset is provided. |
| `end` | string | No | - | The end date of the comparison range, format: YYYY-MM-DD. Optional if preset is provided. |
| `preset` | string | No | - | Predefined comparison ranges. When provided, start and end will be ignored. |
| `comparison_format` | string | No | `rows` | Comparison output layout: 'rows' returns separate rows for current, comparison, and delta along with date ranges; 'columns' returns a single row with delta values only as additional \*\_pct or \*\_change columns depending on comparison\_value\_type. |
| `comparison_value_type` | string | No | `percentage` | Value type: 'percentage' or 'absolute' |

## Output

**Type**: `Dict or List[Dict]`

Depends on report\_type. overview: one object with scopedRequests, allTrafficRequests, shareOfTotalTrafficPercent, uniqueScopedHtmlPaths, robotsViolationRequests, violationsSharePercent, selectedCdnProvider ("None" when no CDN is connected) and cdnProviders. Distributions: label, value, percent, children. scrape\_to\_referral: averageRatio, totalScrapes, totalReferrals, providers, coverageState and the domains seen in the CDN logs and in Clarity. crawlers, paths and the trends return lists of rows.

**Fields**: dynamic (depend on the inputs)


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