get_top_sources
Retrieves top traffic sources from Plausible Analytics by source, referrer, or channel for a chosen date range, helping identify which channels drive website visits.
Instructions
Get top traffic sources. source_type: 'source' = traffic source (e.g. Google), 'referrer' = full referrer URL, 'channel' = channel grouping (Organic Search, Direct, etc.).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"date_range": "<date_range>"
},
"name": "get_top_sources"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of sources to return | |
| filters | No | Optional filters, e.g. [["is", "event:page", ["/blog"]]] | |
| date_range | Yes | Date range: '7d', '30d', 'month', etc. | |
| source_type | No | Type of source breakdown | source |