Pirsch Analytics MCP by usefulapi is an MCP server published by io.usefulapi, hosted at pirsch.usefulapi.io. When last checked on 2026-11-23 it was working: it answers and lists its tools. It declares 27 tools, including pirsch_list_domains, pirsch_get_domain, pirsch_get_overview, pirsch_get_totals, pirsch_get_visitors_time_series.
Read Pirsch web analytics: visitors, pages, referrers, UTM, events, funnels and sessions.
4,433 connections through 5 shared values. Tap any node.
List the Pirsch dashboards (domains) the OAuth client can read: id, hostname, display name, time zone and role. Use the id as domain_id in every other tool. A dashboard-level client sees one domain; an account-level client sees all. GET /api/v1/domain.
| Parameter | Type | Description |
|---|---|---|
| search | string | Only domains whose hostname contains this text. |
{
"name": "pirsch_list_domains",
"title": "List domains (dashboards)",
"description": "List the Pirsch dashboards (domains) the OAuth client can read: id, hostname, display name, time zone and role. Use the id as domain_id in every other tool. A dashboard-level client sees one domain; an account-level client sees all. GET /api/v1/domain.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"search": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Only domains whose hostname contains this text."
}
}
},
"annotations": {
"title": "List domains",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}None yet. Changes appear after a server's second daily check.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
Inferred from the host name and headers: what a server runs on, not who runs it.
One Pirsch dashboard (domain) by id, with its time zone, hostname, role and subscription state. GET /api/v1/domain?id=.
| Parameter | Type | Description |
|---|---|---|
| domain_id * | string | Pirsch domain (dashboard) id. Get it from pirsch_list_domains. |
{
"name": "pirsch_get_domain",
"title": "Get domain",
"description": "One Pirsch dashboard (domain) by id, with its time zone, hostname, role and subscription state. GET /api/v1/domain?id=.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"domain_id"
],
"properties": {
"domain_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]+$",
"maxLength": 64,
"minLength": 1,
"description": "Pirsch domain (dashboard) id. Get it from pirsch_list_domains."
}
}
},
"annotations": {
"title": "Get domain",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}Quick overview of a dashboard: visitors, views, growth compared with the previous period, a visitors time series and the number of team members. Cached by Pirsch; takes no date range or filters. GET /api/v1/statistics/overview.
| Parameter | Type | Description |
|---|---|---|
| domain_id * | string | Pirsch domain (dashboard) id. Get it from pirsch_list_domains. |
{
"name": "pirsch_get_overview",
"title": "Get overview",
"description": "Quick overview of a dashboard: visitors, views, growth compared with the previous period, a visitors time series and the number of team members. Cached by Pirsch; takes no date range or filters. GET /api/v1/statistics/overview.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"domain_id"
],
"properties": {
"domain_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]+$",
"maxLength": 64,
"minLength": 1,
"description": "Pirsch domain (dashboard) id. Get it from pirsch_list_domains."
}
}
},
"annotations": {
"title": "Get overview",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}Totals for a period: visitors, views, sessions, bounces, bounce rate and conversion rate. Not grouped by day, so returning visitors are counted once. GET /api/v1/statistics/total. Text filters (hostname, path, entry_path, exit_path, event, language, country, city, referrer, referrer_name, channel, os, browser, screen_class and utm_*): prefixes !, ~ and ^ mean is not, contains and does not contain.
| Parameter | Type | Description |
|---|---|---|
| os | string | Operating system. |
| to * | string | Last day, yyyy-mm-dd, whole day included. |
| tz | string | IANA time zone such as Europe/Berlin. Default: the dashboard's time zone. |
| tag | string | Tag key to filter for. |
| city | string | City name. |
| from * | string | First day, yyyy-mm-dd (in the dashboard time zone unless tz is set). |
| path | string | Page path, for example /pricing. |
| tags | object | Tag key/value pairs; only results with all pairs match. |
| event | string | Event name. |
| browser | string | Browser. |
| channel | string | Traffic channel such as "Paid Search" or "Organic Search". |
| country | string | ISO 3166 alpha-2 country code such as jp. |
| pattern | string | Regular expression that filters and groups pages, for example (?i)^/blog/[^/]+$. |
| hostname | string | Hostname (useful for rollup views). |
| language | string | ISO 639-1 language code such as en. |
| platform | string | Platform. |
| referrer | string | Referrer, usually a URL. |
| utm_term | string | UTM term. |
| domain_id * | string | Pirsch domain (dashboard) id. Get it from pirsch_list_domains. |
| exit_path | string | Exit page path. |
| entry_path | string | Entry page path. |
| event_meta | object | Event metadata key/value pairs; only events with all pairs match. |
| utm_medium | string | UTM medium. |
| utm_source | string | UTM source. |
| utm_content | string | UTM content. |
| screen_class | string | Screen class XXL, XL, L, M or S. |
| utm_campaign | string | UTM campaign. |
| referrer_name | string | Referrer name, usually the hostname. |
{
"name": "pirsch_get_totals",
"title": "Get total visitors",
"description": "Totals for a period: visitors, views, sessions, bounces, bounce rate and conversion rate. Not grouped by day, so returning visitors are counted once. GET /api/v1/statistics/total. Text filters (hostname, path, entry_path, exit_path, event, language, country, city, referrer, referrer_name, channel, os, browser, screen_class and utm_*): prefixes !, ~ and ^ mean is not, contains and does not contain.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"domain_id",
"from",
"to"
],
"properties": {
"os": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Operating system."
},
"to": {
"type": "string",
"pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$",
"description": "Last day, yyyy-mm-dd, whole day included."
},
"tz": {
"type": "string",
"pattern": "^[A-Za-z0-9_+\\-/]+$",
"maxLength": 64,
"minLength": 1,
"description": "IANA time zone such as Europe/Berlin. Default: the dashboard's time zone."
},
"tag": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Tag key to filter for."
},
"city": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "City name."
},
"from": {
"type": "string",
"pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$",
"description": "First day, yyyy-mm-dd (in the dashboard time zone unless tz is set)."
},
"path": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Page path, for example /pricing."
},
"tags": {
"type": "object",
"description": "Tag key/value pairs; only results with all pairs match.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string",
"maxLength": 500
}
},
"event": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Event name."
},
"browser": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Browser."
},
"channel": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Traffic channel such as \"Paid Search\" or \"Organic Search\"."
},
"country": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "ISO 3166 alpha-2 country code such as jp."
},
"pattern": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Regular expression that filters and groups pages, for example (?i)^/blog/[^/]+$."
},
"hostname": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Hostname (useful for rollup views)."
},
"language": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "ISO 639-1 language code such as en."
},
"platform": {
"enum": [
"desktop",
"mobile",
"unknown"
],
"type": "string",
"description": "Platform."
},
"referrer": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Referrer, usually a URL."
},
"utm_term": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM term."
},
"domain_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]+$",
"maxLength": 64,
"minLength": 1,
"description": "Pirsch domain (dashboard) id. Get it from pirsch_list_domains."
},
"exit_path": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Exit page path."
},
"entry_path": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Entry page path."
},
"event_meta": {
"type": "object",
"description": "Event metadata key/value pairs; only events with all pairs match.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string",
"maxLength": 500
}
},
"utm_medium": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM medium."
},
"utm_source": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM source."
},
"utm_content": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM content."
},
"screen_class": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Screen class XXL, XL, L, M or S."
},
"utm_campaign": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM campaign."
},
"referrer_name": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Referrer name, usually the hostname."
}
}
},
"annotations": {
"title": "Get total visitors",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}Visitors, views, sessions, bounces and bounce rate per day, week, month or year (see scale). Use it for traffic charts and trends. GET /api/v1/statistics/visitor. Text filters (hostname, path, entry_path, exit_path, event, language, country, city, referrer, referrer_name, channel, os, browser, screen_class and utm_*): prefixes !, ~ and ^ mean is not, contains and does not contain.
| Parameter | Type | Description |
|---|---|---|
| os | string | Operating system. |
| to * | string | Last day, yyyy-mm-dd, whole day included. |
| tz | string | IANA time zone such as Europe/Berlin. Default: the dashboard's time zone. |
| tag | string | Tag key to filter for. |
| city | string | City name. |
| from * | string | First day, yyyy-mm-dd (in the dashboard time zone unless tz is set). |
| path | string | Page path, for example /pricing. |
| tags | object | Tag key/value pairs; only results with all pairs match. |
| event | string | Event name. |
| scale | string | Group results by day (default), week, month or year. |
| browser | string | Browser. |
| channel | string | Traffic channel such as "Paid Search" or "Organic Search". |
| country | string | ISO 3166 alpha-2 country code such as jp. |
| pattern | string | Regular expression that filters and groups pages, for example (?i)^/blog/[^/]+$. |
| hostname | string | Hostname (useful for rollup views). |
| language | string | ISO 639-1 language code such as en. |
| platform | string | Platform. |
| referrer | string | Referrer, usually a URL. |
| utm_term | string | UTM term. |
| domain_id * | string | Pirsch domain (dashboard) id. Get it from pirsch_list_domains. |
| exit_path | string | Exit page path. |
| entry_path | string | Entry page path. |
| event_meta | object | Event metadata key/value pairs; only events with all pairs match. |
| utm_medium | string | UTM medium. |
| utm_source | string | UTM source. |
| utm_content | string | UTM content. |
| screen_class | string | Screen class XXL, XL, L, M or S. |
| utm_campaign | string | UTM campaign. |
| referrer_name | string | Referrer name, usually the hostname. |
{
"name": "pirsch_get_visitors_time_series",
"title": "Get visitors time series",
"description": "Visitors, views, sessions, bounces and bounce rate per day, week, month or year (see scale). Use it for traffic charts and trends. GET /api/v1/statistics/visitor. Text filters (hostname, path, entry_path, exit_path, event, language, country, city, referrer, referrer_name, channel, os, browser, screen_class and utm_*): prefixes !, ~ and ^ mean is not, contains and does not contain.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"domain_id",
"from",
"to"
],
"properties": {
"os": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Operating system."
},
"to": {
"type": "string",
"pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$",
"description": "Last day, yyyy-mm-dd, whole day included."
},
"tz": {
"type": "string",
"pattern": "^[A-Za-z0-9_+\\-/]+$",
"maxLength": 64,
"minLength": 1,
"description": "IANA time zone such as Europe/Berlin. Default: the dashboard's time zone."
},
"tag": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Tag key to filter for."
},
"city": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "City name."
},
"from": {
"type": "string",
"pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$",
"description": "First day, yyyy-mm-dd (in the dashboard time zone unless tz is set)."
},
"path": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Page path, for example /pricing."
},
"tags": {
"type": "object",
"description": "Tag key/value pairs; only results with all pairs match.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string",
"maxLength": 500
}
},
"event": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Event name."
},
"scale": {
"enum": [
"day",
"week",
"month",
"year"
],
"type": "string",
"description": "Group results by day (default), week, month or year."
},
"browser": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Browser."
},
"channel": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Traffic channel such as \"Paid Search\" or \"Organic Search\"."
},
"country": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "ISO 3166 alpha-2 country code such as jp."
},
"pattern": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Regular expression that filters and groups pages, for example (?i)^/blog/[^/]+$."
},
"hostname": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Hostname (useful for rollup views)."
},
"language": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "ISO 639-1 language code such as en."
},
"platform": {
"enum": [
"desktop",
"mobile",
"unknown"
],
"type": "string",
"description": "Platform."
},
"referrer": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Referrer, usually a URL."
},
"utm_term": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM term."
},
"domain_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]+$",
"maxLength": 64,
"minLength": 1,
"description": "Pirsch domain (dashboard) id. Get it from pirsch_list_domains."
},
"exit_path": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Exit page path."
},
"entry_path": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Entry page path."
},
"event_meta": {
"type": "object",
"description": "Event metadata key/value pairs; only events with all pairs match.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string",
"maxLength": 500
}
},
"utm_medium": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM medium."
},
"utm_source": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM source."
},
"utm_content": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM content."
},
"screen_class": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Screen class XXL, XL, L, M or S."
},
"utm_campaign": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM campaign."
},
"referrer_name": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Referrer name, usually the hostname."
}
}
},
"annotations": {
"title": "Get visitors time series",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}Growth of visitors, views, sessions, bounces, time spent and conversion rate compared with the previous period of the same length. GET /api/v1/statistics/growth. Text filters (hostname, path, entry_path, exit_path, event, language, country, city, referrer, referrer_name, channel, os, browser, screen_class and utm_*): prefixes !, ~ and ^ mean is not, contains and does not contain.
| Parameter | Type | Description |
|---|---|---|
| os | string | Operating system. |
| to * | string | Last day, yyyy-mm-dd, whole day included. |
| tz | string | IANA time zone such as Europe/Berlin. Default: the dashboard's time zone. |
| tag | string | Tag key to filter for. |
| city | string | City name. |
| from * | string | First day, yyyy-mm-dd (in the dashboard time zone unless tz is set). |
| path | string | Page path, for example /pricing. |
| tags | object | Tag key/value pairs; only results with all pairs match. |
| event | string | Event name. |
| browser | string | Browser. |
| channel | string | Traffic channel such as "Paid Search" or "Organic Search". |
| country | string | ISO 3166 alpha-2 country code such as jp. |
| pattern | string | Regular expression that filters and groups pages, for example (?i)^/blog/[^/]+$. |
| hostname | string | Hostname (useful for rollup views). |
| language | string | ISO 639-1 language code such as en. |
| platform | string | Platform. |
| referrer | string | Referrer, usually a URL. |
| utm_term | string | UTM term. |
| domain_id * | string | Pirsch domain (dashboard) id. Get it from pirsch_list_domains. |
| exit_path | string | Exit page path. |
| entry_path | string | Entry page path. |
| event_meta | object | Event metadata key/value pairs; only events with all pairs match. |
| utm_medium | string | UTM medium. |
| utm_source | string | UTM source. |
| utm_content | string | UTM content. |
| screen_class | string | Screen class XXL, XL, L, M or S. |
| utm_campaign | string | UTM campaign. |
| referrer_name | string | Referrer name, usually the hostname. |
{
"name": "pirsch_get_growth",
"title": "Get growth rates",
"description": "Growth of visitors, views, sessions, bounces, time spent and conversion rate compared with the previous period of the same length. GET /api/v1/statistics/growth. Text filters (hostname, path, entry_path, exit_path, event, language, country, city, referrer, referrer_name, channel, os, browser, screen_class and utm_*): prefixes !, ~ and ^ mean is not, contains and does not contain.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"domain_id",
"from",
"to"
],
"properties": {
"os": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Operating system."
},
"to": {
"type": "string",
"pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$",
"description": "Last day, yyyy-mm-dd, whole day included."
},
"tz": {
"type": "string",
"pattern": "^[A-Za-z0-9_+\\-/]+$",
"maxLength": 64,
"minLength": 1,
"description": "IANA time zone such as Europe/Berlin. Default: the dashboard's time zone."
},
"tag": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Tag key to filter for."
},
"city": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "City name."
},
"from": {
"type": "string",
"pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$",
"description": "First day, yyyy-mm-dd (in the dashboard time zone unless tz is set)."
},
"path": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Page path, for example /pricing."
},
"tags": {
"type": "object",
"description": "Tag key/value pairs; only results with all pairs match.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string",
"maxLength": 500
}
},
"event": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Event name."
},
"browser": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Browser."
},
"channel": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Traffic channel such as \"Paid Search\" or \"Organic Search\"."
},
"country": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "ISO 3166 alpha-2 country code such as jp."
},
"pattern": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Regular expression that filters and groups pages, for example (?i)^/blog/[^/]+$."
},
"hostname": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Hostname (useful for rollup views)."
},
"language": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "ISO 639-1 language code such as en."
},
"platform": {
"enum": [
"desktop",
"mobile",
"unknown"
],
"type": "string",
"description": "Platform."
},
"referrer": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Referrer, usually a URL."
},
"utm_term": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM term."
},
"domain_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]+$",
"maxLength": 64,
"minLength": 1,
"description": "Pirsch domain (dashboard) id. Get it from pirsch_list_domains."
},
"exit_path": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Exit page path."
},
"entry_path": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Entry page path."
},
"event_meta": {
"type": "object",
"description": "Event metadata key/value pairs; only events with all pairs match.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string",
"maxLength": 500
}
},
"utm_medium": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM medium."
},
"utm_source": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM source."
},
"utm_content": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM content."
},
"screen_class": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Screen class XXL, XL, L, M or S."
},
"utm_campaign": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM campaign."
},
"referrer_name": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Referrer name, usually the hostname."
}
}
},
"annotations": {
"title": "Get growth rates",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}Visitors on the site right now (or in the past n seconds), with the pages they are on and their countries. GET /api/v1/statistics/active.
| Parameter | Type | Description |
|---|---|---|
| start | integer | Look back this many seconds, 1-3600 (default 600 = 10 minutes). |
| domain_id * | string | Pirsch domain (dashboard) id. Get it from pirsch_list_domains. |
{
"name": "pirsch_get_active_visitors",
"title": "Get active visitors",
"description": "Visitors on the site right now (or in the past n seconds), with the pages they are on and their countries. GET /api/v1/statistics/active.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"domain_id"
],
"properties": {
"start": {
"type": "integer",
"maximum": 3600,
"minimum": 1,
"description": "Look back this many seconds, 1-3600 (default 600 = 10 minutes)."
},
"domain_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]+$",
"maxLength": 64,
"minLength": 1,
"description": "Pirsch domain (dashboard) id. Get it from pirsch_list_domains."
}
}
},
"annotations": {
"title": "Get active visitors",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}Visitors by hour of the day, by minute (only when from and to are the same day), or by weekday and hour (Monday is 0). Shows when traffic peaks. GET /api/v1/statistics/hours, /minutes or /weekdays. Text filters (hostname, path, entry_path, exit_path, event, language, country, city, referrer, referrer_name, channel, os, browser, screen_class and utm_*): prefixes !, ~ and ^ mean is not, contains and does not contain.
| Parameter | Type | Description |
|---|---|---|
| by * | string | hour = per hour of day, minute = per minute (needs a one-day range), weekday = weekday and hour. |
| os | string | Operating system. |
| to * | string | Last day, yyyy-mm-dd, whole day included. |
| tz | string | IANA time zone such as Europe/Berlin. Default: the dashboard's time zone. |
| tag | string | Tag key to filter for. |
| city | string | City name. |
| from * | string | First day, yyyy-mm-dd (in the dashboard time zone unless tz is set). |
| path | string | Page path, for example /pricing. |
| tags | object | Tag key/value pairs; only results with all pairs match. |
| event | string | Event name. |
| browser | string | Browser. |
| channel | string | Traffic channel such as "Paid Search" or "Organic Search". |
| country | string | ISO 3166 alpha-2 country code such as jp. |
| pattern | string | Regular expression that filters and groups pages, for example (?i)^/blog/[^/]+$. |
| hostname | string | Hostname (useful for rollup views). |
| language | string | ISO 639-1 language code such as en. |
| platform | string | Platform. |
| referrer | string | Referrer, usually a URL. |
| utm_term | string | UTM term. |
| domain_id * | string | Pirsch domain (dashboard) id. Get it from pirsch_list_domains. |
| exit_path | string | Exit page path. |
| entry_path | string | Entry page path. |
| event_meta | object | Event metadata key/value pairs; only events with all pairs match. |
| utm_medium | string | UTM medium. |
| utm_source | string | UTM source. |
| utm_content | string | UTM content. |
| screen_class | string | Screen class XXL, XL, L, M or S. |
| utm_campaign | string | UTM campaign. |
| referrer_name | string | Referrer name, usually the hostname. |
{
"name": "pirsch_get_time_distribution",
"title": "Get visitors by time",
"description": "Visitors by hour of the day, by minute (only when from and to are the same day), or by weekday and hour (Monday is 0). Shows when traffic peaks. GET /api/v1/statistics/hours, /minutes or /weekdays. Text filters (hostname, path, entry_path, exit_path, event, language, country, city, referrer, referrer_name, channel, os, browser, screen_class and utm_*): prefixes !, ~ and ^ mean is not, contains and does not contain.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"domain_id",
"from",
"to",
"by"
],
"properties": {
"by": {
"enum": [
"hour",
"minute",
"weekday"
],
"type": "string",
"description": "hour = per hour of day, minute = per minute (needs a one-day range), weekday = weekday and hour."
},
"os": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Operating system."
},
"to": {
"type": "string",
"pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$",
"description": "Last day, yyyy-mm-dd, whole day included."
},
"tz": {
"type": "string",
"pattern": "^[A-Za-z0-9_+\\-/]+$",
"maxLength": 64,
"minLength": 1,
"description": "IANA time zone such as Europe/Berlin. Default: the dashboard's time zone."
},
"tag": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Tag key to filter for."
},
"city": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "City name."
},
"from": {
"type": "string",
"pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$",
"description": "First day, yyyy-mm-dd (in the dashboard time zone unless tz is set)."
},
"path": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Page path, for example /pricing."
},
"tags": {
"type": "object",
"description": "Tag key/value pairs; only results with all pairs match.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string",
"maxLength": 500
}
},
"event": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Event name."
},
"browser": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Browser."
},
"channel": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Traffic channel such as \"Paid Search\" or \"Organic Search\"."
},
"country": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "ISO 3166 alpha-2 country code such as jp."
},
"pattern": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Regular expression that filters and groups pages, for example (?i)^/blog/[^/]+$."
},
"hostname": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Hostname (useful for rollup views)."
},
"language": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "ISO 639-1 language code such as en."
},
"platform": {
"enum": [
"desktop",
"mobile",
"unknown"
],
"type": "string",
"description": "Platform."
},
"referrer": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Referrer, usually a URL."
},
"utm_term": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM term."
},
"domain_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]+$",
"maxLength": 64,
"minLength": 1,
"description": "Pirsch domain (dashboard) id. Get it from pirsch_list_domains."
},
"exit_path": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Exit page path."
},
"entry_path": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Entry page path."
},
"event_meta": {
"type": "object",
"description": "Event metadata key/value pairs; only events with all pairs match.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string",
"maxLength": 500
}
},
"utm_medium": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM medium."
},
"utm_source": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM source."
},
"utm_content": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM content."
},
"screen_class": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Screen class XXL, XL, L, M or S."
},
"utm_campaign": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM campaign."
},
"referrer_name": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Referrer name, usually the hostname."
}
}
},
"annotations": {
"title": "Get visitors by time",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}Average session duration over time, or average time on page over time, in seconds. GET /api/v1/statistics/duration/session or /duration/page. Text filters (hostname, path, entry_path, exit_path, event, language, country, city, referrer, referrer_name, channel, os, browser, screen_class and utm_*): prefixes !, ~ and ^ mean is not, contains and does not contain.
| Parameter | Type | Description |
|---|---|---|
| os | string | Operating system. |
| to * | string | Last day, yyyy-mm-dd, whole day included. |
| tz | string | IANA time zone such as Europe/Berlin. Default: the dashboard's time zone. |
| tag | string | Tag key to filter for. |
| city | string | City name. |
| from * | string | First day, yyyy-mm-dd (in the dashboard time zone unless tz is set). |
| kind * | string | session = average session duration, page = average time on page. |
| path | string | Page path, for example /pricing. |
| tags | object | Tag key/value pairs; only results with all pairs match. |
| event | string | Event name. |
| scale | string | Group results by day (default), week, month or year. |
| browser | string | Browser. |
| channel | string | Traffic channel such as "Paid Search" or "Organic Search". |
| country | string | ISO 3166 alpha-2 country code such as jp. |
| pattern | string | Regular expression that filters and groups pages, for example (?i)^/blog/[^/]+$. |
| hostname | string | Hostname (useful for rollup views). |
| language | string | ISO 639-1 language code such as en. |
| platform | string | Platform. |
| referrer | string | Referrer, usually a URL. |
| utm_term | string | UTM term. |
| domain_id * | string | Pirsch domain (dashboard) id. Get it from pirsch_list_domains. |
| exit_path | string | Exit page path. |
| entry_path | string | Entry page path. |
| event_meta | object | Event metadata key/value pairs; only events with all pairs match. |
| utm_medium | string | UTM medium. |
| utm_source | string | UTM source. |
| utm_content | string | UTM content. |
| screen_class | string | Screen class XXL, XL, L, M or S. |
| utm_campaign | string | UTM campaign. |
| referrer_name | string | Referrer name, usually the hostname. |
{
"name": "pirsch_get_duration",
"title": "Get time spent",
"description": "Average session duration over time, or average time on page over time, in seconds. GET /api/v1/statistics/duration/session or /duration/page. Text filters (hostname, path, entry_path, exit_path, event, language, country, city, referrer, referrer_name, channel, os, browser, screen_class and utm_*): prefixes !, ~ and ^ mean is not, contains and does not contain.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"domain_id",
"from",
"to",
"kind"
],
"properties": {
"os": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Operating system."
},
"to": {
"type": "string",
"pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$",
"description": "Last day, yyyy-mm-dd, whole day included."
},
"tz": {
"type": "string",
"pattern": "^[A-Za-z0-9_+\\-/]+$",
"maxLength": 64,
"minLength": 1,
"description": "IANA time zone such as Europe/Berlin. Default: the dashboard's time zone."
},
"tag": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Tag key to filter for."
},
"city": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "City name."
},
"from": {
"type": "string",
"pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$",
"description": "First day, yyyy-mm-dd (in the dashboard time zone unless tz is set)."
},
"kind": {
"enum": [
"session",
"page"
],
"type": "string",
"description": "session = average session duration, page = average time on page."
},
"path": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Page path, for example /pricing."
},
"tags": {
"type": "object",
"description": "Tag key/value pairs; only results with all pairs match.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string",
"maxLength": 500
}
},
"event": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Event name."
},
"scale": {
"enum": [
"day",
"week",
"month",
"year"
],
"type": "string",
"description": "Group results by day (default), week, month or year."
},
"browser": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Browser."
},
"channel": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Traffic channel such as \"Paid Search\" or \"Organic Search\"."
},
"country": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "ISO 3166 alpha-2 country code such as jp."
},
"pattern": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Regular expression that filters and groups pages, for example (?i)^/blog/[^/]+$."
},
"hostname": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Hostname (useful for rollup views)."
},
"language": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "ISO 639-1 language code such as en."
},
"platform": {
"enum": [
"desktop",
"mobile",
"unknown"
],
"type": "string",
"description": "Platform."
},
"referrer": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Referrer, usually a URL."
},
"utm_term": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM term."
},
"domain_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]+$",
"maxLength": 64,
"minLength": 1,
"description": "Pirsch domain (dashboard) id. Get it from pirsch_list_domains."
},
"exit_path": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Exit page path."
},
"entry_path": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Entry page path."
},
"event_meta": {
"type": "object",
"description": "Event metadata key/value pairs; only events with all pairs match.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string",
"maxLength": 500
}
},
"utm_medium": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM medium."
},
"utm_source": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM source."
},
"utm_content": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM content."
},
"screen_class": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Screen class XXL, XL, L, M or S."
},
"utm_campaign": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM campaign."
},
"referrer_name": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Referrer name, usually the hostname."
}
}
},
"annotations": {
"title": "Get time spent",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}Top pages with visitors, views, sessions, bounces, bounce rate and average time on page. type=entry lists landing pages, type=exit lists exit pages. Filters narrow the data (for example country=de, path=~blog). Results are rows with visitors, views, sessions, bounces and relative shares. GET /api/v1/statistics/page, /page/entry or /page/exit. Text filters (hostname, path, entry_path, exit_path, event, language, country, city, referrer, referrer_name, channel, os, browser, screen_class and utm_*): prefixes !, ~ and ^ mean is not, contains and does not contain.
| Parameter | Type | Description |
|---|---|---|
| os | string | Operating system. |
| to * | string | Last day, yyyy-mm-dd, whole day included. |
| tz | string | IANA time zone such as Europe/Berlin. Default: the dashboard's time zone. |
| tag | string | Tag key to filter for. |
| city | string | City name. |
| from * | string | First day, yyyy-mm-dd (in the dashboard time zone unless tz is set). |
| path | string | Page path, for example /pricing. |
| sort | string | Field to sort by, for example visitors, views, sessions or bounce_rate. |
| tags | object | Tag key/value pairs; only results with all pairs match. |
| type | string | all (default), entry or exit pages. |
| event | string | Event name. |
| limit | integer | Results per page, 1-100 (default 25). |
| offset | integer | Results to skip (default 0). Pass the previous reply's next_offset. |
| search | string | Only rows whose main field contains this text. |
| browser | string | Browser. |
| channel | string | Traffic channel such as "Paid Search" or "Organic Search". |
| country | string | ISO 3166 alpha-2 country code such as jp. |
| pattern | string | Regular expression that filters and groups pages, for example (?i)^/blog/[^/]+$. |
| hostname | string | Hostname (useful for rollup views). |
| language | string | ISO 639-1 language code such as en. |
| platform | string | Platform. |
| referrer | string | Referrer, usually a URL. |
| utm_term | string | UTM term. |
| direction | string | Sort direction. |
| domain_id * | string | Pirsch domain (dashboard) id. Get it from pirsch_list_domains. |
| exit_path | string | Exit page path. |
| entry_path | string | Entry page path. |
| event_meta | object | Event metadata key/value pairs; only events with all pairs match. |
| utm_medium | string | UTM medium. |
| utm_source | string | UTM source. |
| utm_content | string | UTM content. |
| screen_class | string | Screen class XXL, XL, L, M or S. |
| utm_campaign | string | UTM campaign. |
| include_title | boolean | Group by title and path instead of path only. |
| referrer_name | string | Referrer name, usually the hostname. |
{
"name": "pirsch_list_pages",
"title": "List pages",
"description": "Top pages with visitors, views, sessions, bounces, bounce rate and average time on page. type=entry lists landing pages, type=exit lists exit pages. Filters narrow the data (for example country=de, path=~blog). Results are rows with visitors, views, sessions, bounces and relative shares. GET /api/v1/statistics/page, /page/entry or /page/exit. Text filters (hostname, path, entry_path, exit_path, event, language, country, city, referrer, referrer_name, channel, os, browser, screen_class and utm_*): prefixes !, ~ and ^ mean is not, contains and does not contain.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"domain_id",
"from",
"to"
],
"properties": {
"os": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Operating system."
},
"to": {
"type": "string",
"pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$",
"description": "Last day, yyyy-mm-dd, whole day included."
},
"tz": {
"type": "string",
"pattern": "^[A-Za-z0-9_+\\-/]+$",
"maxLength": 64,
"minLength": 1,
"description": "IANA time zone such as Europe/Berlin. Default: the dashboard's time zone."
},
"tag": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Tag key to filter for."
},
"city": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "City name."
},
"from": {
"type": "string",
"pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$",
"description": "First day, yyyy-mm-dd (in the dashboard time zone unless tz is set)."
},
"path": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Page path, for example /pricing."
},
"sort": {
"type": "string",
"pattern": "^[a-z_]{1,40}$",
"description": "Field to sort by, for example visitors, views, sessions or bounce_rate."
},
"tags": {
"type": "object",
"description": "Tag key/value pairs; only results with all pairs match.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string",
"maxLength": 500
}
},
"type": {
"enum": [
"all",
"entry",
"exit"
],
"type": "string",
"description": "all (default), entry or exit pages."
},
"event": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Event name."
},
"limit": {
"type": "integer",
"maximum": 100,
"minimum": 1,
"description": "Results per page, 1-100 (default 25)."
},
"offset": {
"type": "integer",
"maximum": 1000000,
"minimum": 0,
"description": "Results to skip (default 0). Pass the previous reply's next_offset."
},
"search": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Only rows whose main field contains this text."
},
"browser": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Browser."
},
"channel": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Traffic channel such as \"Paid Search\" or \"Organic Search\"."
},
"country": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "ISO 3166 alpha-2 country code such as jp."
},
"pattern": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Regular expression that filters and groups pages, for example (?i)^/blog/[^/]+$."
},
"hostname": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Hostname (useful for rollup views)."
},
"language": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "ISO 639-1 language code such as en."
},
"platform": {
"enum": [
"desktop",
"mobile",
"unknown"
],
"type": "string",
"description": "Platform."
},
"referrer": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Referrer, usually a URL."
},
"utm_term": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM term."
},
"direction": {
"enum": [
"asc",
"desc"
],
"type": "string",
"description": "Sort direction."
},
"domain_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]+$",
"maxLength": 64,
"minLength": 1,
"description": "Pirsch domain (dashboard) id. Get it from pirsch_list_domains."
},
"exit_path": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Exit page path."
},
"entry_path": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Entry page path."
},
"event_meta": {
"type": "object",
"description": "Event metadata key/value pairs; only events with all pairs match.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string",
"maxLength": 500
}
},
"utm_medium": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM medium."
},
"utm_source": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM source."
},
"utm_content": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM content."
},
"screen_class": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Screen class XXL, XL, L, M or S."
},
"utm_campaign": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM campaign."
},
"include_title": {
"type": "boolean",
"description": "Group by title and path instead of path only."
},
"referrer_name": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Referrer name, usually the hostname."
}
}
},
"annotations": {
"title": "List pages",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}Traffic per hostname. Mostly useful for rollup views that combine several hostnames. GET /api/v1/statistics/hostname. Text filters (hostname, path, entry_path, exit_path, event, language, country, city, referrer, referrer_name, channel, os, browser, screen_class and utm_*): prefixes !, ~ and ^ mean is not, contains and does not contain.
| Parameter | Type | Description |
|---|---|---|
| os | string | Operating system. |
| to * | string | Last day, yyyy-mm-dd, whole day included. |
| tz | string | IANA time zone such as Europe/Berlin. Default: the dashboard's time zone. |
| tag | string | Tag key to filter for. |
| city | string | City name. |
| from * | string | First day, yyyy-mm-dd (in the dashboard time zone unless tz is set). |
| path | string | Page path, for example /pricing. |
| sort | string | Field to sort by, for example visitors, views, sessions or bounce_rate. |
| tags | object | Tag key/value pairs; only results with all pairs match. |
| event | string | Event name. |
| limit | integer | Results per page, 1-100 (default 25). |
| offset | integer | Results to skip (default 0). Pass the previous reply's next_offset. |
| search | string | Only rows whose main field contains this text. |
| browser | string | Browser. |
| channel | string | Traffic channel such as "Paid Search" or "Organic Search". |
| country | string | ISO 3166 alpha-2 country code such as jp. |
| pattern | string | Regular expression that filters and groups pages, for example (?i)^/blog/[^/]+$. |
| hostname | string | Hostname (useful for rollup views). |
| language | string | ISO 639-1 language code such as en. |
| platform | string | Platform. |
| referrer | string | Referrer, usually a URL. |
| utm_term | string | UTM term. |
| direction | string | Sort direction. |
| domain_id * | string | Pirsch domain (dashboard) id. Get it from pirsch_list_domains. |
| exit_path | string | Exit page path. |
| entry_path | string | Entry page path. |
| event_meta | object | Event metadata key/value pairs; only events with all pairs match. |
| utm_medium | string | UTM medium. |
| utm_source | string | UTM source. |
| utm_content | string | UTM content. |
| screen_class | string | Screen class XXL, XL, L, M or S. |
| utm_campaign | string | UTM campaign. |
| referrer_name | string | Referrer name, usually the hostname. |
{
"name": "pirsch_list_hostnames",
"title": "List hostnames",
"description": "Traffic per hostname. Mostly useful for rollup views that combine several hostnames. GET /api/v1/statistics/hostname. Text filters (hostname, path, entry_path, exit_path, event, language, country, city, referrer, referrer_name, channel, os, browser, screen_class and utm_*): prefixes !, ~ and ^ mean is not, contains and does not contain.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"domain_id",
"from",
"to"
],
"properties": {
"os": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Operating system."
},
"to": {
"type": "string",
"pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$",
"description": "Last day, yyyy-mm-dd, whole day included."
},
"tz": {
"type": "string",
"pattern": "^[A-Za-z0-9_+\\-/]+$",
"maxLength": 64,
"minLength": 1,
"description": "IANA time zone such as Europe/Berlin. Default: the dashboard's time zone."
},
"tag": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Tag key to filter for."
},
"city": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "City name."
},
"from": {
"type": "string",
"pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$",
"description": "First day, yyyy-mm-dd (in the dashboard time zone unless tz is set)."
},
"path": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Page path, for example /pricing."
},
"sort": {
"type": "string",
"pattern": "^[a-z_]{1,40}$",
"description": "Field to sort by, for example visitors, views, sessions or bounce_rate."
},
"tags": {
"type": "object",
"description": "Tag key/value pairs; only results with all pairs match.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string",
"maxLength": 500
}
},
"event": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Event name."
},
"limit": {
"type": "integer",
"maximum": 100,
"minimum": 1,
"description": "Results per page, 1-100 (default 25)."
},
"offset": {
"type": "integer",
"maximum": 1000000,
"minimum": 0,
"description": "Results to skip (default 0). Pass the previous reply's next_offset."
},
"search": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Only rows whose main field contains this text."
},
"browser": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Browser."
},
"channel": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Traffic channel such as \"Paid Search\" or \"Organic Search\"."
},
"country": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "ISO 3166 alpha-2 country code such as jp."
},
"pattern": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Regular expression that filters and groups pages, for example (?i)^/blog/[^/]+$."
},
"hostname": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Hostname (useful for rollup views)."
},
"language": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "ISO 639-1 language code such as en."
},
"platform": {
"enum": [
"desktop",
"mobile",
"unknown"
],
"type": "string",
"description": "Platform."
},
"referrer": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Referrer, usually a URL."
},
"utm_term": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM term."
},
"direction": {
"enum": [
"asc",
"desc"
],
"type": "string",
"description": "Sort direction."
},
"domain_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]+$",
"maxLength": 64,
"minLength": 1,
"description": "Pirsch domain (dashboard) id. Get it from pirsch_list_domains."
},
"exit_path": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Exit page path."
},
"entry_path": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Entry page path."
},
"event_meta": {
"type": "object",
"description": "Event metadata key/value pairs; only events with all pairs match.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string",
"maxLength": 500
}
},
"utm_medium": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM medium."
},
"utm_source": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM source."
},
"utm_content": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM content."
},
"screen_class": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Screen class XXL, XL, L, M or S."
},
"utm_campaign": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM campaign."
},
"referrer_name": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Referrer name, usually the hostname."
}
}
},
"annotations": {
"title": "List hostnames",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}Where visitors come from: referrers (by=referrer) or traffic channels such as Organic Search and Paid Search (by=channel). Filters narrow the data (for example country=de, path=~blog). Results are rows with visitors, views, sessions, bounces and relative shares. GET /api/v1/statistics/referrer or /channel. Text filters (hostname, path, entry_path, exit_path, event, language, country, city, referrer, referrer_name, channel, os, browser, screen_class and utm_*): prefixes !, ~ and ^ mean is not, contains and does not contain.
| Parameter | Type | Description |
|---|---|---|
| by | string | referrer (default) or channel. |
| os | string | Operating system. |
| to * | string | Last day, yyyy-mm-dd, whole day included. |
| tz | string | IANA time zone such as Europe/Berlin. Default: the dashboard's time zone. |
| tag | string | Tag key to filter for. |
| city | string | City name. |
| from * | string | First day, yyyy-mm-dd (in the dashboard time zone unless tz is set). |
| path | string | Page path, for example /pricing. |
| sort | string | Field to sort by, for example visitors, views, sessions or bounce_rate. |
| tags | object | Tag key/value pairs; only results with all pairs match. |
| event | string | Event name. |
| limit | integer | Results per page, 1-100 (default 25). |
| offset | integer | Results to skip (default 0). Pass the previous reply's next_offset. |
| search | string | Only rows whose main field contains this text. |
| browser | string | Browser. |
| channel | string | Traffic channel such as "Paid Search" or "Organic Search". |
| country | string | ISO 3166 alpha-2 country code such as jp. |
| pattern | string | Regular expression that filters and groups pages, for example (?i)^/blog/[^/]+$. |
| hostname | string | Hostname (useful for rollup views). |
| language | string | ISO 639-1 language code such as en. |
| platform | string | Platform. |
| referrer | string | Referrer, usually a URL. |
| utm_term | string | UTM term. |
| direction | string | Sort direction. |
| domain_id * | string | Pirsch domain (dashboard) id. Get it from pirsch_list_domains. |
| exit_path | string | Exit page path. |
| entry_path | string | Entry page path. |
| event_meta | object | Event metadata key/value pairs; only events with all pairs match. |
| utm_medium | string | UTM medium. |
| utm_source | string | UTM source. |
| utm_content | string | UTM content. |
| screen_class | string | Screen class XXL, XL, L, M or S. |
| utm_campaign | string | UTM campaign. |
| referrer_name | string | Referrer name, usually the hostname. |
{
"name": "pirsch_list_referrers",
"title": "List referrers",
"description": "Where visitors come from: referrers (by=referrer) or traffic channels such as Organic Search and Paid Search (by=channel). Filters narrow the data (for example country=de, path=~blog). Results are rows with visitors, views, sessions, bounces and relative shares. GET /api/v1/statistics/referrer or /channel. Text filters (hostname, path, entry_path, exit_path, event, language, country, city, referrer, referrer_name, channel, os, browser, screen_class and utm_*): prefixes !, ~ and ^ mean is not, contains and does not contain.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"domain_id",
"from",
"to"
],
"properties": {
"by": {
"enum": [
"referrer",
"channel"
],
"type": "string",
"description": "referrer (default) or channel."
},
"os": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Operating system."
},
"to": {
"type": "string",
"pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$",
"description": "Last day, yyyy-mm-dd, whole day included."
},
"tz": {
"type": "string",
"pattern": "^[A-Za-z0-9_+\\-/]+$",
"maxLength": 64,
"minLength": 1,
"description": "IANA time zone such as Europe/Berlin. Default: the dashboard's time zone."
},
"tag": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Tag key to filter for."
},
"city": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "City name."
},
"from": {
"type": "string",
"pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$",
"description": "First day, yyyy-mm-dd (in the dashboard time zone unless tz is set)."
},
"path": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Page path, for example /pricing."
},
"sort": {
"type": "string",
"pattern": "^[a-z_]{1,40}$",
"description": "Field to sort by, for example visitors, views, sessions or bounce_rate."
},
"tags": {
"type": "object",
"description": "Tag key/value pairs; only results with all pairs match.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string",
"maxLength": 500
}
},
"event": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Event name."
},
"limit": {
"type": "integer",
"maximum": 100,
"minimum": 1,
"description": "Results per page, 1-100 (default 25)."
},
"offset": {
"type": "integer",
"maximum": 1000000,
"minimum": 0,
"description": "Results to skip (default 0). Pass the previous reply's next_offset."
},
"search": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Only rows whose main field contains this text."
},
"browser": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Browser."
},
"channel": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Traffic channel such as \"Paid Search\" or \"Organic Search\"."
},
"country": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "ISO 3166 alpha-2 country code such as jp."
},
"pattern": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Regular expression that filters and groups pages, for example (?i)^/blog/[^/]+$."
},
"hostname": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Hostname (useful for rollup views)."
},
"language": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "ISO 639-1 language code such as en."
},
"platform": {
"enum": [
"desktop",
"mobile",
"unknown"
],
"type": "string",
"description": "Platform."
},
"referrer": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Referrer, usually a URL."
},
"utm_term": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM term."
},
"direction": {
"enum": [
"asc",
"desc"
],
"type": "string",
"description": "Sort direction."
},
"domain_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]+$",
"maxLength": 64,
"minLength": 1,
"description": "Pirsch domain (dashboard) id. Get it from pirsch_list_domains."
},
"exit_path": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Exit page path."
},
"entry_path": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Entry page path."
},
"event_meta": {
"type": "object",
"description": "Event metadata key/value pairs; only events with all pairs match.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string",
"maxLength": 500
}
},
"utm_medium": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM medium."
},
"utm_source": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM source."
},
"utm_content": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM content."
},
"screen_class": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Screen class XXL, XL, L, M or S."
},
"utm_campaign": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM campaign."
},
"referrer_name": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Referrer name, usually the hostname."
}
}
},
"annotations": {
"title": "List referrers",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}Visitors per UTM source, medium, campaign, content or term. Filters narrow the data (for example country=de, path=~blog). Results are rows with visitors, views, sessions, bounces and relative shares. GET /api/v1/statistics/utm/{dimension}. Text filters (hostname, path, entry_path, exit_path, event, language, country, city, referrer, referrer_name, channel, os, browser, screen_class and utm_*): prefixes !, ~ and ^ mean is not, contains and does not contain.
| Parameter | Type | Description |
|---|---|---|
| os | string | Operating system. |
| to * | string | Last day, yyyy-mm-dd, whole day included. |
| tz | string | IANA time zone such as Europe/Berlin. Default: the dashboard's time zone. |
| tag | string | Tag key to filter for. |
| city | string | City name. |
| from * | string | First day, yyyy-mm-dd (in the dashboard time zone unless tz is set). |
| path | string | Page path, for example /pricing. |
| sort | string | Field to sort by, for example visitors, views, sessions or bounce_rate. |
| tags | object | Tag key/value pairs; only results with all pairs match. |
| event | string | Event name. |
| limit | integer | Results per page, 1-100 (default 25). |
| offset | integer | Results to skip (default 0). Pass the previous reply's next_offset. |
| search | string | Only rows whose main field contains this text. |
| browser | string | Browser. |
| channel | string | Traffic channel such as "Paid Search" or "Organic Search". |
| country | string | ISO 3166 alpha-2 country code such as jp. |
| pattern | string | Regular expression that filters and groups pages, for example (?i)^/blog/[^/]+$. |
| hostname | string | Hostname (useful for rollup views). |
| language | string | ISO 639-1 language code such as en. |
| platform | string | Platform. |
| referrer | string | Referrer, usually a URL. |
| utm_term | string | UTM term. |
| dimension * | string | Which UTM parameter to break down. |
| direction | string | Sort direction. |
| domain_id * | string | Pirsch domain (dashboard) id. Get it from pirsch_list_domains. |
| exit_path | string | Exit page path. |
| entry_path | string | Entry page path. |
| event_meta | object | Event metadata key/value pairs; only events with all pairs match. |
| utm_medium | string | UTM medium. |
| utm_source | string | UTM source. |
| utm_content | string | UTM content. |
| screen_class | string | Screen class XXL, XL, L, M or S. |
| utm_campaign | string | UTM campaign. |
| referrer_name | string | Referrer name, usually the hostname. |
{
"name": "pirsch_list_utm",
"title": "List UTM parameters",
"description": "Visitors per UTM source, medium, campaign, content or term. Filters narrow the data (for example country=de, path=~blog). Results are rows with visitors, views, sessions, bounces and relative shares. GET /api/v1/statistics/utm/{dimension}. Text filters (hostname, path, entry_path, exit_path, event, language, country, city, referrer, referrer_name, channel, os, browser, screen_class and utm_*): prefixes !, ~ and ^ mean is not, contains and does not contain.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"domain_id",
"from",
"to",
"dimension"
],
"properties": {
"os": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Operating system."
},
"to": {
"type": "string",
"pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$",
"description": "Last day, yyyy-mm-dd, whole day included."
},
"tz": {
"type": "string",
"pattern": "^[A-Za-z0-9_+\\-/]+$",
"maxLength": 64,
"minLength": 1,
"description": "IANA time zone such as Europe/Berlin. Default: the dashboard's time zone."
},
"tag": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Tag key to filter for."
},
"city": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "City name."
},
"from": {
"type": "string",
"pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$",
"description": "First day, yyyy-mm-dd (in the dashboard time zone unless tz is set)."
},
"path": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Page path, for example /pricing."
},
"sort": {
"type": "string",
"pattern": "^[a-z_]{1,40}$",
"description": "Field to sort by, for example visitors, views, sessions or bounce_rate."
},
"tags": {
"type": "object",
"description": "Tag key/value pairs; only results with all pairs match.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string",
"maxLength": 500
}
},
"event": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Event name."
},
"limit": {
"type": "integer",
"maximum": 100,
"minimum": 1,
"description": "Results per page, 1-100 (default 25)."
},
"offset": {
"type": "integer",
"maximum": 1000000,
"minimum": 0,
"description": "Results to skip (default 0). Pass the previous reply's next_offset."
},
"search": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Only rows whose main field contains this text."
},
"browser": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Browser."
},
"channel": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Traffic channel such as \"Paid Search\" or \"Organic Search\"."
},
"country": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "ISO 3166 alpha-2 country code such as jp."
},
"pattern": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Regular expression that filters and groups pages, for example (?i)^/blog/[^/]+$."
},
"hostname": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Hostname (useful for rollup views)."
},
"language": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "ISO 639-1 language code such as en."
},
"platform": {
"enum": [
"desktop",
"mobile",
"unknown"
],
"type": "string",
"description": "Platform."
},
"referrer": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Referrer, usually a URL."
},
"utm_term": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM term."
},
"dimension": {
"enum": [
"source",
"medium",
"campaign",
"content",
"term"
],
"type": "string",
"description": "Which UTM parameter to break down."
},
"direction": {
"enum": [
"asc",
"desc"
],
"type": "string",
"description": "Sort direction."
},
"domain_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]+$",
"maxLength": 64,
"minLength": 1,
"description": "Pirsch domain (dashboard) id. Get it from pirsch_list_domains."
},
"exit_path": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Exit page path."
},
"entry_path": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Entry page path."
},
"event_meta": {
"type": "object",
"description": "Event metadata key/value pairs; only events with all pairs match.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string",
"maxLength": 500
}
},
"utm_medium": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM medium."
},
"utm_source": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM source."
},
"utm_content": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM content."
},
"screen_class": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Screen class XXL, XL, L, M or S."
},
"utm_campaign": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM campaign."
},
"referrer_name": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Referrer name, usually the hostname."
}
}
},
"annotations": {
"title": "List UTM parameters",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}Visitors per country, region, city or language. Filters narrow the data (for example country=de, path=~blog). Results are rows with visitors, views, sessions, bounces and relative shares. GET /api/v1/statistics/country, /region, /city or /language. Text filters (hostname, path, entry_path, exit_path, event, language, country, city, referrer, referrer_name, channel, os, browser, screen_class and utm_*): prefixes !, ~ and ^ mean is not, contains and does not contain.
| Parameter | Type | Description |
|---|---|---|
| os | string | Operating system. |
| to * | string | Last day, yyyy-mm-dd, whole day included. |
| tz | string | IANA time zone such as Europe/Berlin. Default: the dashboard's time zone. |
| tag | string | Tag key to filter for. |
| city | string | City name. |
| from * | string | First day, yyyy-mm-dd (in the dashboard time zone unless tz is set). |
| path | string | Page path, for example /pricing. |
| sort | string | Field to sort by, for example visitors, views, sessions or bounce_rate. |
| tags | object | Tag key/value pairs; only results with all pairs match. |
| event | string | Event name. |
| limit | integer | Results per page, 1-100 (default 25). |
| offset | integer | Results to skip (default 0). Pass the previous reply's next_offset. |
| search | string | Only rows whose main field contains this text. |
| browser | string | Browser. |
| channel | string | Traffic channel such as "Paid Search" or "Organic Search". |
| country | string | ISO 3166 alpha-2 country code such as jp. |
| pattern | string | Regular expression that filters and groups pages, for example (?i)^/blog/[^/]+$. |
| hostname | string | Hostname (useful for rollup views). |
| language | string | ISO 639-1 language code such as en. |
| platform | string | Platform. |
| referrer | string | Referrer, usually a URL. |
| utm_term | string | UTM term. |
| dimension * | string | Which breakdown. |
| direction | string | Sort direction. |
| domain_id * | string | Pirsch domain (dashboard) id. Get it from pirsch_list_domains. |
| exit_path | string | Exit page path. |
| entry_path | string | Entry page path. |
| event_meta | object | Event metadata key/value pairs; only events with all pairs match. |
| utm_medium | string | UTM medium. |
| utm_source | string | UTM source. |
| utm_content | string | UTM content. |
| screen_class | string | Screen class XXL, XL, L, M or S. |
| utm_campaign | string | UTM campaign. |
| referrer_name | string | Referrer name, usually the hostname. |
{
"name": "pirsch_list_geography",
"title": "List countries, regions, cities and languages",
"description": "Visitors per country, region, city or language. Filters narrow the data (for example country=de, path=~blog). Results are rows with visitors, views, sessions, bounces and relative shares. GET /api/v1/statistics/country, /region, /city or /language. Text filters (hostname, path, entry_path, exit_path, event, language, country, city, referrer, referrer_name, channel, os, browser, screen_class and utm_*): prefixes !, ~ and ^ mean is not, contains and does not contain.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"domain_id",
"from",
"to",
"dimension"
],
"properties": {
"os": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Operating system."
},
"to": {
"type": "string",
"pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$",
"description": "Last day, yyyy-mm-dd, whole day included."
},
"tz": {
"type": "string",
"pattern": "^[A-Za-z0-9_+\\-/]+$",
"maxLength": 64,
"minLength": 1,
"description": "IANA time zone such as Europe/Berlin. Default: the dashboard's time zone."
},
"tag": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Tag key to filter for."
},
"city": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "City name."
},
"from": {
"type": "string",
"pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$",
"description": "First day, yyyy-mm-dd (in the dashboard time zone unless tz is set)."
},
"path": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Page path, for example /pricing."
},
"sort": {
"type": "string",
"pattern": "^[a-z_]{1,40}$",
"description": "Field to sort by, for example visitors, views, sessions or bounce_rate."
},
"tags": {
"type": "object",
"description": "Tag key/value pairs; only results with all pairs match.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string",
"maxLength": 500
}
},
"event": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Event name."
},
"limit": {
"type": "integer",
"maximum": 100,
"minimum": 1,
"description": "Results per page, 1-100 (default 25)."
},
"offset": {
"type": "integer",
"maximum": 1000000,
"minimum": 0,
"description": "Results to skip (default 0). Pass the previous reply's next_offset."
},
"search": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Only rows whose main field contains this text."
},
"browser": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Browser."
},
"channel": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Traffic channel such as \"Paid Search\" or \"Organic Search\"."
},
"country": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "ISO 3166 alpha-2 country code such as jp."
},
"pattern": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Regular expression that filters and groups pages, for example (?i)^/blog/[^/]+$."
},
"hostname": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Hostname (useful for rollup views)."
},
"language": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "ISO 639-1 language code such as en."
},
"platform": {
"enum": [
"desktop",
"mobile",
"unknown"
],
"type": "string",
"description": "Platform."
},
"referrer": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Referrer, usually a URL."
},
"utm_term": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM term."
},
"dimension": {
"enum": [
"country",
"region",
"city",
"language"
],
"type": "string",
"description": "Which breakdown."
},
"direction": {
"enum": [
"asc",
"desc"
],
"type": "string",
"description": "Sort direction."
},
"domain_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]+$",
"maxLength": 64,
"minLength": 1,
"description": "Pirsch domain (dashboard) id. Get it from pirsch_list_domains."
},
"exit_path": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Exit page path."
},
"entry_path": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Entry page path."
},
"event_meta": {
"type": "object",
"description": "Event metadata key/value pairs; only events with all pairs match.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string",
"maxLength": 500
}
},
"utm_medium": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM medium."
},
"utm_source": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM source."
},
"utm_content": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM content."
},
"screen_class": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Screen class XXL, XL, L, M or S."
},
"utm_campaign": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM campaign."
},
"referrer_name": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Referrer name, usually the hostname."
}
}
},
"annotations": {
"title": "List countries, regions, cities and languages",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}Visitors per browser, browser version, operating system or screen class (XXL to S). Filters narrow the data (for example country=de, path=~blog). Results are rows with visitors, views, sessions, bounces and relative shares. GET /api/v1/statistics/browser, /browser/version, /os or /screen. Text filters (hostname, path, entry_path, exit_path, event, language, country, city, referrer, referrer_name, channel, os, browser, screen_class and utm_*): prefixes !, ~ and ^ mean is not, contains and does not contain.
| Parameter | Type | Description |
|---|---|---|
| os | string | Operating system. |
| to * | string | Last day, yyyy-mm-dd, whole day included. |
| tz | string | IANA time zone such as Europe/Berlin. Default: the dashboard's time zone. |
| tag | string | Tag key to filter for. |
| city | string | City name. |
| from * | string | First day, yyyy-mm-dd (in the dashboard time zone unless tz is set). |
| path | string | Page path, for example /pricing. |
| sort | string | Field to sort by, for example visitors, views, sessions or bounce_rate. |
| tags | object | Tag key/value pairs; only results with all pairs match. |
| event | string | Event name. |
| limit | integer | Results per page, 1-100 (default 25). |
| offset | integer | Results to skip (default 0). Pass the previous reply's next_offset. |
| search | string | Only rows whose main field contains this text. |
| browser | string | Browser. |
| channel | string | Traffic channel such as "Paid Search" or "Organic Search". |
| country | string | ISO 3166 alpha-2 country code such as jp. |
| pattern | string | Regular expression that filters and groups pages, for example (?i)^/blog/[^/]+$. |
| hostname | string | Hostname (useful for rollup views). |
| language | string | ISO 639-1 language code such as en. |
| platform | string | Platform. |
| referrer | string | Referrer, usually a URL. |
| utm_term | string | UTM term. |
| dimension * | string | Which breakdown. |
| direction | string | Sort direction. |
| domain_id * | string | Pirsch domain (dashboard) id. Get it from pirsch_list_domains. |
| exit_path | string | Exit page path. |
| entry_path | string | Entry page path. |
| event_meta | object | Event metadata key/value pairs; only events with all pairs match. |
| utm_medium | string | UTM medium. |
| utm_source | string | UTM source. |
| utm_content | string | UTM content. |
| screen_class | string | Screen class XXL, XL, L, M or S. |
| utm_campaign | string | UTM campaign. |
| referrer_name | string | Referrer name, usually the hostname. |
{
"name": "pirsch_list_devices",
"title": "List browsers, operating systems and screens",
"description": "Visitors per browser, browser version, operating system or screen class (XXL to S). Filters narrow the data (for example country=de, path=~blog). Results are rows with visitors, views, sessions, bounces and relative shares. GET /api/v1/statistics/browser, /browser/version, /os or /screen. Text filters (hostname, path, entry_path, exit_path, event, language, country, city, referrer, referrer_name, channel, os, browser, screen_class and utm_*): prefixes !, ~ and ^ mean is not, contains and does not contain.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"domain_id",
"from",
"to",
"dimension"
],
"properties": {
"os": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Operating system."
},
"to": {
"type": "string",
"pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$",
"description": "Last day, yyyy-mm-dd, whole day included."
},
"tz": {
"type": "string",
"pattern": "^[A-Za-z0-9_+\\-/]+$",
"maxLength": 64,
"minLength": 1,
"description": "IANA time zone such as Europe/Berlin. Default: the dashboard's time zone."
},
"tag": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Tag key to filter for."
},
"city": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "City name."
},
"from": {
"type": "string",
"pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$",
"description": "First day, yyyy-mm-dd (in the dashboard time zone unless tz is set)."
},
"path": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Page path, for example /pricing."
},
"sort": {
"type": "string",
"pattern": "^[a-z_]{1,40}$",
"description": "Field to sort by, for example visitors, views, sessions or bounce_rate."
},
"tags": {
"type": "object",
"description": "Tag key/value pairs; only results with all pairs match.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string",
"maxLength": 500
}
},
"event": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Event name."
},
"limit": {
"type": "integer",
"maximum": 100,
"minimum": 1,
"description": "Results per page, 1-100 (default 25)."
},
"offset": {
"type": "integer",
"maximum": 1000000,
"minimum": 0,
"description": "Results to skip (default 0). Pass the previous reply's next_offset."
},
"search": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Only rows whose main field contains this text."
},
"browser": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Browser."
},
"channel": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Traffic channel such as \"Paid Search\" or \"Organic Search\"."
},
"country": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "ISO 3166 alpha-2 country code such as jp."
},
"pattern": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Regular expression that filters and groups pages, for example (?i)^/blog/[^/]+$."
},
"hostname": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Hostname (useful for rollup views)."
},
"language": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "ISO 639-1 language code such as en."
},
"platform": {
"enum": [
"desktop",
"mobile",
"unknown"
],
"type": "string",
"description": "Platform."
},
"referrer": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Referrer, usually a URL."
},
"utm_term": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM term."
},
"dimension": {
"enum": [
"browser",
"browser_version",
"os",
"screen"
],
"type": "string",
"description": "Which breakdown."
},
"direction": {
"enum": [
"asc",
"desc"
],
"type": "string",
"description": "Sort direction."
},
"domain_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]+$",
"maxLength": 64,
"minLength": 1,
"description": "Pirsch domain (dashboard) id. Get it from pirsch_list_domains."
},
"exit_path": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Exit page path."
},
"entry_path": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Entry page path."
},
"event_meta": {
"type": "object",
"description": "Event metadata key/value pairs; only events with all pairs match.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string",
"maxLength": 500
}
},
"utm_medium": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM medium."
},
"utm_source": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM source."
},
"utm_content": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM content."
},
"screen_class": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Screen class XXL, XL, L, M or S."
},
"utm_campaign": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM campaign."
},
"referrer_name": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Referrer name, usually the hostname."
}
}
},
"annotations": {
"title": "List browsers, operating systems and screens",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}Visitors on desktop, mobile and unknown platforms, as counts and shares. GET /api/v1/statistics/platform. Text filters (hostname, path, entry_path, exit_path, event, language, country, city, referrer, referrer_name, channel, os, browser, screen_class and utm_*): prefixes !, ~ and ^ mean is not, contains and does not contain.
| Parameter | Type | Description |
|---|---|---|
| os | string | Operating system. |
| to * | string | Last day, yyyy-mm-dd, whole day included. |
| tz | string | IANA time zone such as Europe/Berlin. Default: the dashboard's time zone. |
| tag | string | Tag key to filter for. |
| city | string | City name. |
| from * | string | First day, yyyy-mm-dd (in the dashboard time zone unless tz is set). |
| path | string | Page path, for example /pricing. |
| tags | object | Tag key/value pairs; only results with all pairs match. |
| event | string | Event name. |
| browser | string | Browser. |
| channel | string | Traffic channel such as "Paid Search" or "Organic Search". |
| country | string | ISO 3166 alpha-2 country code such as jp. |
| pattern | string | Regular expression that filters and groups pages, for example (?i)^/blog/[^/]+$. |
| hostname | string | Hostname (useful for rollup views). |
| language | string | ISO 639-1 language code such as en. |
| platform | string | Platform. |
| referrer | string | Referrer, usually a URL. |
| utm_term | string | UTM term. |
| domain_id * | string | Pirsch domain (dashboard) id. Get it from pirsch_list_domains. |
| exit_path | string | Exit page path. |
| entry_path | string | Entry page path. |
| event_meta | object | Event metadata key/value pairs; only events with all pairs match. |
| utm_medium | string | UTM medium. |
| utm_source | string | UTM source. |
| utm_content | string | UTM content. |
| screen_class | string | Screen class XXL, XL, L, M or S. |
| utm_campaign | string | UTM campaign. |
| referrer_name | string | Referrer name, usually the hostname. |
{
"name": "pirsch_get_platforms",
"title": "Get platform split",
"description": "Visitors on desktop, mobile and unknown platforms, as counts and shares. GET /api/v1/statistics/platform. Text filters (hostname, path, entry_path, exit_path, event, language, country, city, referrer, referrer_name, channel, os, browser, screen_class and utm_*): prefixes !, ~ and ^ mean is not, contains and does not contain.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"domain_id",
"from",
"to"
],
"properties": {
"os": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Operating system."
},
"to": {
"type": "string",
"pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$",
"description": "Last day, yyyy-mm-dd, whole day included."
},
"tz": {
"type": "string",
"pattern": "^[A-Za-z0-9_+\\-/]+$",
"maxLength": 64,
"minLength": 1,
"description": "IANA time zone such as Europe/Berlin. Default: the dashboard's time zone."
},
"tag": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Tag key to filter for."
},
"city": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "City name."
},
"from": {
"type": "string",
"pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$",
"description": "First day, yyyy-mm-dd (in the dashboard time zone unless tz is set)."
},
"path": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Page path, for example /pricing."
},
"tags": {
"type": "object",
"description": "Tag key/value pairs; only results with all pairs match.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string",
"maxLength": 500
}
},
"event": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Event name."
},
"browser": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Browser."
},
"channel": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Traffic channel such as \"Paid Search\" or \"Organic Search\"."
},
"country": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "ISO 3166 alpha-2 country code such as jp."
},
"pattern": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Regular expression that filters and groups pages, for example (?i)^/blog/[^/]+$."
},
"hostname": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Hostname (useful for rollup views)."
},
"language": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "ISO 639-1 language code such as en."
},
"platform": {
"enum": [
"desktop",
"mobile",
"unknown"
],
"type": "string",
"description": "Platform."
},
"referrer": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Referrer, usually a URL."
},
"utm_term": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM term."
},
"domain_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]+$",
"maxLength": 64,
"minLength": 1,
"description": "Pirsch domain (dashboard) id. Get it from pirsch_list_domains."
},
"exit_path": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Exit page path."
},
"entry_path": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Entry page path."
},
"event_meta": {
"type": "object",
"description": "Event metadata key/value pairs; only events with all pairs match.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string",
"maxLength": 500
}
},
"utm_medium": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM medium."
},
"utm_source": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM source."
},
"utm_content": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM content."
},
"screen_class": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Screen class XXL, XL, L, M or S."
},
"utm_campaign": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM campaign."
},
"referrer_name": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Referrer name, usually the hostname."
}
}
},
"annotations": {
"title": "Get platform split",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}Custom events with count, visitors, views, conversion rate, average duration and their metadata keys. Use pirsch_get_event_breakdown for the values of one metadata key. GET /api/v1/statistics/events. Text filters (hostname, path, entry_path, exit_path, event, language, country, city, referrer, referrer_name, channel, os, browser, screen_class and utm_*): prefixes !, ~ and ^ mean is not, contains and does not contain.
| Parameter | Type | Description |
|---|---|---|
| os | string | Operating system. |
| to * | string | Last day, yyyy-mm-dd, whole day included. |
| tz | string | IANA time zone such as Europe/Berlin. Default: the dashboard's time zone. |
| tag | string | Tag key to filter for. |
| city | string | City name. |
| from * | string | First day, yyyy-mm-dd (in the dashboard time zone unless tz is set). |
| path | string | Page path, for example /pricing. |
| sort | string | Field to sort by, for example visitors, views, sessions or bounce_rate. |
| tags | object | Tag key/value pairs; only results with all pairs match. |
| event | string | Event name. |
| limit | integer | Results per page, 1-100 (default 25). |
| offset | integer | Results to skip (default 0). Pass the previous reply's next_offset. |
| search | string | Only rows whose main field contains this text. |
| browser | string | Browser. |
| channel | string | Traffic channel such as "Paid Search" or "Organic Search". |
| country | string | ISO 3166 alpha-2 country code such as jp. |
| pattern | string | Regular expression that filters and groups pages, for example (?i)^/blog/[^/]+$. |
| hostname | string | Hostname (useful for rollup views). |
| language | string | ISO 639-1 language code such as en. |
| platform | string | Platform. |
| referrer | string | Referrer, usually a URL. |
| utm_term | string | UTM term. |
| direction | string | Sort direction. |
| domain_id * | string | Pirsch domain (dashboard) id. Get it from pirsch_list_domains. |
| exit_path | string | Exit page path. |
| entry_path | string | Entry page path. |
| event_meta | object | Event metadata key/value pairs; only events with all pairs match. |
| utm_medium | string | UTM medium. |
| utm_source | string | UTM source. |
| utm_content | string | UTM content. |
| screen_class | string | Screen class XXL, XL, L, M or S. |
| utm_campaign | string | UTM campaign. |
| referrer_name | string | Referrer name, usually the hostname. |
{
"name": "pirsch_list_events",
"title": "List events",
"description": "Custom events with count, visitors, views, conversion rate, average duration and their metadata keys. Use pirsch_get_event_breakdown for the values of one metadata key. GET /api/v1/statistics/events. Text filters (hostname, path, entry_path, exit_path, event, language, country, city, referrer, referrer_name, channel, os, browser, screen_class and utm_*): prefixes !, ~ and ^ mean is not, contains and does not contain.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"domain_id",
"from",
"to"
],
"properties": {
"os": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Operating system."
},
"to": {
"type": "string",
"pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$",
"description": "Last day, yyyy-mm-dd, whole day included."
},
"tz": {
"type": "string",
"pattern": "^[A-Za-z0-9_+\\-/]+$",
"maxLength": 64,
"minLength": 1,
"description": "IANA time zone such as Europe/Berlin. Default: the dashboard's time zone."
},
"tag": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Tag key to filter for."
},
"city": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "City name."
},
"from": {
"type": "string",
"pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$",
"description": "First day, yyyy-mm-dd (in the dashboard time zone unless tz is set)."
},
"path": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Page path, for example /pricing."
},
"sort": {
"type": "string",
"pattern": "^[a-z_]{1,40}$",
"description": "Field to sort by, for example visitors, views, sessions or bounce_rate."
},
"tags": {
"type": "object",
"description": "Tag key/value pairs; only results with all pairs match.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string",
"maxLength": 500
}
},
"event": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Event name."
},
"limit": {
"type": "integer",
"maximum": 100,
"minimum": 1,
"description": "Results per page, 1-100 (default 25)."
},
"offset": {
"type": "integer",
"maximum": 1000000,
"minimum": 0,
"description": "Results to skip (default 0). Pass the previous reply's next_offset."
},
"search": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Only rows whose main field contains this text."
},
"browser": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Browser."
},
"channel": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Traffic channel such as \"Paid Search\" or \"Organic Search\"."
},
"country": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "ISO 3166 alpha-2 country code such as jp."
},
"pattern": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Regular expression that filters and groups pages, for example (?i)^/blog/[^/]+$."
},
"hostname": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Hostname (useful for rollup views)."
},
"language": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "ISO 639-1 language code such as en."
},
"platform": {
"enum": [
"desktop",
"mobile",
"unknown"
],
"type": "string",
"description": "Platform."
},
"referrer": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Referrer, usually a URL."
},
"utm_term": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM term."
},
"direction": {
"enum": [
"asc",
"desc"
],
"type": "string",
"description": "Sort direction."
},
"domain_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]+$",
"maxLength": 64,
"minLength": 1,
"description": "Pirsch domain (dashboard) id. Get it from pirsch_list_domains."
},
"exit_path": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Exit page path."
},
"entry_path": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Entry page path."
},
"event_meta": {
"type": "object",
"description": "Event metadata key/value pairs; only events with all pairs match.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string",
"maxLength": 500
}
},
"utm_medium": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM medium."
},
"utm_source": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM source."
},
"utm_content": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM content."
},
"screen_class": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Screen class XXL, XL, L, M or S."
},
"utm_campaign": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM campaign."
},
"referrer_name": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Referrer name, usually the hostname."
}
}
},
"annotations": {
"title": "List events",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}The values of one metadata key of one event, with count, visitors and conversion rate. Both event and event_meta_key are required. GET /api/v1/statistics/event/meta.
| Parameter | Type | Description |
|---|---|---|
| to * | string | Last day, yyyy-mm-dd, whole day included. |
| tz | string | IANA time zone such as Europe/Berlin. Default: the dashboard's time zone. |
| from * | string | First day, yyyy-mm-dd (in the dashboard time zone unless tz is set). |
| sort | string | Field to sort by, for example visitors, views, sessions or bounce_rate. |
| event * | string | Event name. |
| limit | integer | Results per page, 1-100 (default 25). |
| offset | integer | Results to skip (default 0). Pass the previous reply's next_offset. |
| search | string | Only rows whose main field contains this text. |
| direction | string | Sort direction. |
| domain_id * | string | Pirsch domain (dashboard) id. Get it from pirsch_list_domains. |
| event_meta_key * | string | Metadata key to break down. |
{
"name": "pirsch_get_event_breakdown",
"title": "Get event metadata breakdown",
"description": "The values of one metadata key of one event, with count, visitors and conversion rate. Both event and event_meta_key are required. GET /api/v1/statistics/event/meta.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"domain_id",
"from",
"to",
"event",
"event_meta_key"
],
"properties": {
"to": {
"type": "string",
"pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$",
"description": "Last day, yyyy-mm-dd, whole day included."
},
"tz": {
"type": "string",
"pattern": "^[A-Za-z0-9_+\\-/]+$",
"maxLength": 64,
"minLength": 1,
"description": "IANA time zone such as Europe/Berlin. Default: the dashboard's time zone."
},
"from": {
"type": "string",
"pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$",
"description": "First day, yyyy-mm-dd (in the dashboard time zone unless tz is set)."
},
"sort": {
"type": "string",
"pattern": "^[a-z_]{1,40}$",
"description": "Field to sort by, for example visitors, views, sessions or bounce_rate."
},
"event": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Event name."
},
"limit": {
"type": "integer",
"maximum": 100,
"minimum": 1,
"description": "Results per page, 1-100 (default 25)."
},
"offset": {
"type": "integer",
"maximum": 1000000,
"minimum": 0,
"description": "Results to skip (default 0). Pass the previous reply's next_offset."
},
"search": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Only rows whose main field contains this text."
},
"direction": {
"enum": [
"asc",
"desc"
],
"type": "string",
"description": "Sort direction."
},
"domain_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]+$",
"maxLength": 64,
"minLength": 1,
"description": "Pirsch domain (dashboard) id. Get it from pirsch_list_domains."
},
"event_meta_key": {
"type": "string",
"maxLength": 200,
"minLength": 1,
"description": "Metadata key to break down."
}
}
},
"annotations": {
"title": "Get event metadata breakdown",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}The pages on which an event was triggered, with visitors and views. The event name is required. GET /api/v1/statistics/event/page.
| Parameter | Type | Description |
|---|---|---|
| to * | string | Last day, yyyy-mm-dd, whole day included. |
| tz | string | IANA time zone such as Europe/Berlin. Default: the dashboard's time zone. |
| from * | string | First day, yyyy-mm-dd (in the dashboard time zone unless tz is set). |
| sort | string | Field to sort by, for example visitors, views, sessions or bounce_rate. |
| event * | string | Event name. |
| limit | integer | Results per page, 1-100 (default 25). |
| offset | integer | Results to skip (default 0). Pass the previous reply's next_offset. |
| search | string | Only rows whose main field contains this text. |
| direction | string | Sort direction. |
| domain_id * | string | Pirsch domain (dashboard) id. Get it from pirsch_list_domains. |
{
"name": "pirsch_list_event_pages",
"title": "List pages of an event",
"description": "The pages on which an event was triggered, with visitors and views. The event name is required. GET /api/v1/statistics/event/page.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"domain_id",
"from",
"to",
"event"
],
"properties": {
"to": {
"type": "string",
"pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$",
"description": "Last day, yyyy-mm-dd, whole day included."
},
"tz": {
"type": "string",
"pattern": "^[A-Za-z0-9_+\\-/]+$",
"maxLength": 64,
"minLength": 1,
"description": "IANA time zone such as Europe/Berlin. Default: the dashboard's time zone."
},
"from": {
"type": "string",
"pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$",
"description": "First day, yyyy-mm-dd (in the dashboard time zone unless tz is set)."
},
"sort": {
"type": "string",
"pattern": "^[a-z_]{1,40}$",
"description": "Field to sort by, for example visitors, views, sessions or bounce_rate."
},
"event": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Event name."
},
"limit": {
"type": "integer",
"maximum": 100,
"minimum": 1,
"description": "Results per page, 1-100 (default 25)."
},
"offset": {
"type": "integer",
"maximum": 1000000,
"minimum": 0,
"description": "Results to skip (default 0). Pass the previous reply's next_offset."
},
"search": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Only rows whose main field contains this text."
},
"direction": {
"enum": [
"asc",
"desc"
],
"type": "string",
"description": "Sort direction."
},
"domain_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]+$",
"maxLength": 64,
"minLength": 1,
"description": "Pirsch domain (dashboard) id. Get it from pirsch_list_domains."
}
}
},
"annotations": {
"title": "List pages of an event",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}Conversion goals with their definition (page pattern, event, targets) and the visitors, views and conversion rate for the period. GET /api/v1/statistics/goals. Text filters (hostname, path, entry_path, exit_path, event, language, country, city, referrer, referrer_name, channel, os, browser, screen_class and utm_*): prefixes !, ~ and ^ mean is not, contains and does not contain.
| Parameter | Type | Description |
|---|---|---|
| os | string | Operating system. |
| to * | string | Last day, yyyy-mm-dd, whole day included. |
| tz | string | IANA time zone such as Europe/Berlin. Default: the dashboard's time zone. |
| tag | string | Tag key to filter for. |
| city | string | City name. |
| from * | string | First day, yyyy-mm-dd (in the dashboard time zone unless tz is set). |
| path | string | Page path, for example /pricing. |
| sort | string | Field to sort by, for example visitors, views, sessions or bounce_rate. |
| tags | object | Tag key/value pairs; only results with all pairs match. |
| event | string | Event name. |
| limit | integer | Results per page, 1-100 (default 25). |
| offset | integer | Results to skip (default 0). Pass the previous reply's next_offset. |
| search | string | Only rows whose main field contains this text. |
| browser | string | Browser. |
| channel | string | Traffic channel such as "Paid Search" or "Organic Search". |
| country | string | ISO 3166 alpha-2 country code such as jp. |
| pattern | string | Regular expression that filters and groups pages, for example (?i)^/blog/[^/]+$. |
| hostname | string | Hostname (useful for rollup views). |
| language | string | ISO 639-1 language code such as en. |
| platform | string | Platform. |
| referrer | string | Referrer, usually a URL. |
| utm_term | string | UTM term. |
| direction | string | Sort direction. |
| domain_id * | string | Pirsch domain (dashboard) id. Get it from pirsch_list_domains. |
| exit_path | string | Exit page path. |
| entry_path | string | Entry page path. |
| event_meta | object | Event metadata key/value pairs; only events with all pairs match. |
| utm_medium | string | UTM medium. |
| utm_source | string | UTM source. |
| utm_content | string | UTM content. |
| screen_class | string | Screen class XXL, XL, L, M or S. |
| utm_campaign | string | UTM campaign. |
| referrer_name | string | Referrer name, usually the hostname. |
{
"name": "pirsch_list_goals",
"title": "List conversion goals",
"description": "Conversion goals with their definition (page pattern, event, targets) and the visitors, views and conversion rate for the period. GET /api/v1/statistics/goals. Text filters (hostname, path, entry_path, exit_path, event, language, country, city, referrer, referrer_name, channel, os, browser, screen_class and utm_*): prefixes !, ~ and ^ mean is not, contains and does not contain.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"domain_id",
"from",
"to"
],
"properties": {
"os": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Operating system."
},
"to": {
"type": "string",
"pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$",
"description": "Last day, yyyy-mm-dd, whole day included."
},
"tz": {
"type": "string",
"pattern": "^[A-Za-z0-9_+\\-/]+$",
"maxLength": 64,
"minLength": 1,
"description": "IANA time zone such as Europe/Berlin. Default: the dashboard's time zone."
},
"tag": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Tag key to filter for."
},
"city": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "City name."
},
"from": {
"type": "string",
"pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$",
"description": "First day, yyyy-mm-dd (in the dashboard time zone unless tz is set)."
},
"path": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Page path, for example /pricing."
},
"sort": {
"type": "string",
"pattern": "^[a-z_]{1,40}$",
"description": "Field to sort by, for example visitors, views, sessions or bounce_rate."
},
"tags": {
"type": "object",
"description": "Tag key/value pairs; only results with all pairs match.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string",
"maxLength": 500
}
},
"event": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Event name."
},
"limit": {
"type": "integer",
"maximum": 100,
"minimum": 1,
"description": "Results per page, 1-100 (default 25)."
},
"offset": {
"type": "integer",
"maximum": 1000000,
"minimum": 0,
"description": "Results to skip (default 0). Pass the previous reply's next_offset."
},
"search": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Only rows whose main field contains this text."
},
"browser": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Browser."
},
"channel": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Traffic channel such as \"Paid Search\" or \"Organic Search\"."
},
"country": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "ISO 3166 alpha-2 country code such as jp."
},
"pattern": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Regular expression that filters and groups pages, for example (?i)^/blog/[^/]+$."
},
"hostname": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Hostname (useful for rollup views)."
},
"language": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "ISO 639-1 language code such as en."
},
"platform": {
"enum": [
"desktop",
"mobile",
"unknown"
],
"type": "string",
"description": "Platform."
},
"referrer": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Referrer, usually a URL."
},
"utm_term": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM term."
},
"direction": {
"enum": [
"asc",
"desc"
],
"type": "string",
"description": "Sort direction."
},
"domain_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]+$",
"maxLength": 64,
"minLength": 1,
"description": "Pirsch domain (dashboard) id. Get it from pirsch_list_domains."
},
"exit_path": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Exit page path."
},
"entry_path": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Entry page path."
},
"event_meta": {
"type": "object",
"description": "Event metadata key/value pairs; only events with all pairs match.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string",
"maxLength": 500
}
},
"utm_medium": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM medium."
},
"utm_source": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM source."
},
"utm_content": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM content."
},
"screen_class": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Screen class XXL, XL, L, M or S."
},
"utm_campaign": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM campaign."
},
"referrer_name": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Referrer name, usually the hostname."
}
}
},
"annotations": {
"title": "List conversion goals",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}The funnels defined for a dashboard, with their steps and step filters. Use a funnel id in pirsch_get_funnel. GET /api/v1/funnel.
| Parameter | Type | Description |
|---|---|---|
| search | string | Only funnels whose name contains this text. |
| domain_id * | string | Pirsch domain (dashboard) id. Get it from pirsch_list_domains. |
{
"name": "pirsch_list_funnels",
"title": "List funnels",
"description": "The funnels defined for a dashboard, with their steps and step filters. Use a funnel id in pirsch_get_funnel. GET /api/v1/funnel.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"domain_id"
],
"properties": {
"search": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Only funnels whose name contains this text."
},
"domain_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]+$",
"maxLength": 64,
"minLength": 1,
"description": "Pirsch domain (dashboard) id. Get it from pirsch_list_domains."
}
}
},
"annotations": {
"title": "List funnels",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}Visitors per funnel step for a period: visitors, share of the first step, drop-off between steps. The filter applies to the first step. GET /api/v1/statistics/funnel. Text filters (hostname, path, entry_path, exit_path, event, language, country, city, referrer, referrer_name, channel, os, browser, screen_class and utm_*): prefixes !, ~ and ^ mean is not, contains and does not contain.
| Parameter | Type | Description |
|---|---|---|
| os | string | Operating system. |
| to * | string | Last day, yyyy-mm-dd, whole day included. |
| tz | string | IANA time zone such as Europe/Berlin. Default: the dashboard's time zone. |
| tag | string | Tag key to filter for. |
| city | string | City name. |
| from * | string | First day, yyyy-mm-dd (in the dashboard time zone unless tz is set). |
| path | string | Page path, for example /pricing. |
| tags | object | Tag key/value pairs; only results with all pairs match. |
| event | string | Event name. |
| browser | string | Browser. |
| channel | string | Traffic channel such as "Paid Search" or "Organic Search". |
| country | string | ISO 3166 alpha-2 country code such as jp. |
| pattern | string | Regular expression that filters and groups pages, for example (?i)^/blog/[^/]+$. |
| hostname | string | Hostname (useful for rollup views). |
| language | string | ISO 639-1 language code such as en. |
| platform | string | Platform. |
| referrer | string | Referrer, usually a URL. |
| utm_term | string | UTM term. |
| domain_id * | string | Pirsch domain (dashboard) id. Get it from pirsch_list_domains. |
| exit_path | string | Exit page path. |
| funnel_id * | string | Funnel id from pirsch_list_funnels. |
| entry_path | string | Entry page path. |
| event_meta | object | Event metadata key/value pairs; only events with all pairs match. |
| utm_medium | string | UTM medium. |
| utm_source | string | UTM source. |
| utm_content | string | UTM content. |
| screen_class | string | Screen class XXL, XL, L, M or S. |
| utm_campaign | string | UTM campaign. |
| referrer_name | string | Referrer name, usually the hostname. |
{
"name": "pirsch_get_funnel",
"title": "Get funnel statistics",
"description": "Visitors per funnel step for a period: visitors, share of the first step, drop-off between steps. The filter applies to the first step. GET /api/v1/statistics/funnel. Text filters (hostname, path, entry_path, exit_path, event, language, country, city, referrer, referrer_name, channel, os, browser, screen_class and utm_*): prefixes !, ~ and ^ mean is not, contains and does not contain.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"domain_id",
"from",
"to",
"funnel_id"
],
"properties": {
"os": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Operating system."
},
"to": {
"type": "string",
"pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$",
"description": "Last day, yyyy-mm-dd, whole day included."
},
"tz": {
"type": "string",
"pattern": "^[A-Za-z0-9_+\\-/]+$",
"maxLength": 64,
"minLength": 1,
"description": "IANA time zone such as Europe/Berlin. Default: the dashboard's time zone."
},
"tag": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Tag key to filter for."
},
"city": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "City name."
},
"from": {
"type": "string",
"pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$",
"description": "First day, yyyy-mm-dd (in the dashboard time zone unless tz is set)."
},
"path": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Page path, for example /pricing."
},
"tags": {
"type": "object",
"description": "Tag key/value pairs; only results with all pairs match.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string",
"maxLength": 500
}
},
"event": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Event name."
},
"browser": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Browser."
},
"channel": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Traffic channel such as \"Paid Search\" or \"Organic Search\"."
},
"country": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "ISO 3166 alpha-2 country code such as jp."
},
"pattern": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Regular expression that filters and groups pages, for example (?i)^/blog/[^/]+$."
},
"hostname": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Hostname (useful for rollup views)."
},
"language": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "ISO 639-1 language code such as en."
},
"platform": {
"enum": [
"desktop",
"mobile",
"unknown"
],
"type": "string",
"description": "Platform."
},
"referrer": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Referrer, usually a URL."
},
"utm_term": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM term."
},
"domain_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]+$",
"maxLength": 64,
"minLength": 1,
"description": "Pirsch domain (dashboard) id. Get it from pirsch_list_domains."
},
"exit_path": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Exit page path."
},
"funnel_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]+$",
"maxLength": 64,
"minLength": 1,
"description": "Funnel id from pirsch_list_funnels."
},
"entry_path": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Entry page path."
},
"event_meta": {
"type": "object",
"description": "Event metadata key/value pairs; only events with all pairs match.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string",
"maxLength": 500
}
},
"utm_medium": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM medium."
},
"utm_source": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM source."
},
"utm_content": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM content."
},
"screen_class": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Screen class XXL, XL, L, M or S."
},
"utm_campaign": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM campaign."
},
"referrer_name": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Referrer name, usually the hostname."
}
}
},
"annotations": {
"title": "Get funnel statistics",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}Tag keys with views and share. Use pirsch_get_tag_breakdown to see the values of one key. GET /api/v1/statistics/tags. Text filters (hostname, path, entry_path, exit_path, event, language, country, city, referrer, referrer_name, channel, os, browser, screen_class and utm_*): prefixes !, ~ and ^ mean is not, contains and does not contain.
| Parameter | Type | Description |
|---|---|---|
| os | string | Operating system. |
| to * | string | Last day, yyyy-mm-dd, whole day included. |
| tz | string | IANA time zone such as Europe/Berlin. Default: the dashboard's time zone. |
| tag | string | Tag key to filter for. |
| city | string | City name. |
| from * | string | First day, yyyy-mm-dd (in the dashboard time zone unless tz is set). |
| path | string | Page path, for example /pricing. |
| sort | string | Field to sort by, for example visitors, views, sessions or bounce_rate. |
| tags | object | Tag key/value pairs; only results with all pairs match. |
| event | string | Event name. |
| limit | integer | Results per page, 1-100 (default 25). |
| offset | integer | Results to skip (default 0). Pass the previous reply's next_offset. |
| search | string | Only rows whose main field contains this text. |
| browser | string | Browser. |
| channel | string | Traffic channel such as "Paid Search" or "Organic Search". |
| country | string | ISO 3166 alpha-2 country code such as jp. |
| pattern | string | Regular expression that filters and groups pages, for example (?i)^/blog/[^/]+$. |
| hostname | string | Hostname (useful for rollup views). |
| language | string | ISO 639-1 language code such as en. |
| platform | string | Platform. |
| referrer | string | Referrer, usually a URL. |
| utm_term | string | UTM term. |
| direction | string | Sort direction. |
| domain_id * | string | Pirsch domain (dashboard) id. Get it from pirsch_list_domains. |
| exit_path | string | Exit page path. |
| entry_path | string | Entry page path. |
| event_meta | object | Event metadata key/value pairs; only events with all pairs match. |
| utm_medium | string | UTM medium. |
| utm_source | string | UTM source. |
| utm_content | string | UTM content. |
| screen_class | string | Screen class XXL, XL, L, M or S. |
| utm_campaign | string | UTM campaign. |
| referrer_name | string | Referrer name, usually the hostname. |
{
"name": "pirsch_list_tags",
"title": "List tags",
"description": "Tag keys with views and share. Use pirsch_get_tag_breakdown to see the values of one key. GET /api/v1/statistics/tags. Text filters (hostname, path, entry_path, exit_path, event, language, country, city, referrer, referrer_name, channel, os, browser, screen_class and utm_*): prefixes !, ~ and ^ mean is not, contains and does not contain.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"domain_id",
"from",
"to"
],
"properties": {
"os": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Operating system."
},
"to": {
"type": "string",
"pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$",
"description": "Last day, yyyy-mm-dd, whole day included."
},
"tz": {
"type": "string",
"pattern": "^[A-Za-z0-9_+\\-/]+$",
"maxLength": 64,
"minLength": 1,
"description": "IANA time zone such as Europe/Berlin. Default: the dashboard's time zone."
},
"tag": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Tag key to filter for."
},
"city": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "City name."
},
"from": {
"type": "string",
"pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$",
"description": "First day, yyyy-mm-dd (in the dashboard time zone unless tz is set)."
},
"path": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Page path, for example /pricing."
},
"sort": {
"type": "string",
"pattern": "^[a-z_]{1,40}$",
"description": "Field to sort by, for example visitors, views, sessions or bounce_rate."
},
"tags": {
"type": "object",
"description": "Tag key/value pairs; only results with all pairs match.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string",
"maxLength": 500
}
},
"event": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Event name."
},
"limit": {
"type": "integer",
"maximum": 100,
"minimum": 1,
"description": "Results per page, 1-100 (default 25)."
},
"offset": {
"type": "integer",
"maximum": 1000000,
"minimum": 0,
"description": "Results to skip (default 0). Pass the previous reply's next_offset."
},
"search": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Only rows whose main field contains this text."
},
"browser": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Browser."
},
"channel": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Traffic channel such as \"Paid Search\" or \"Organic Search\"."
},
"country": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "ISO 3166 alpha-2 country code such as jp."
},
"pattern": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Regular expression that filters and groups pages, for example (?i)^/blog/[^/]+$."
},
"hostname": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Hostname (useful for rollup views)."
},
"language": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "ISO 639-1 language code such as en."
},
"platform": {
"enum": [
"desktop",
"mobile",
"unknown"
],
"type": "string",
"description": "Platform."
},
"referrer": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Referrer, usually a URL."
},
"utm_term": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM term."
},
"direction": {
"enum": [
"asc",
"desc"
],
"type": "string",
"description": "Sort direction."
},
"domain_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]+$",
"maxLength": 64,
"minLength": 1,
"description": "Pirsch domain (dashboard) id. Get it from pirsch_list_domains."
},
"exit_path": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Exit page path."
},
"entry_path": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Entry page path."
},
"event_meta": {
"type": "object",
"description": "Event metadata key/value pairs; only events with all pairs match.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string",
"maxLength": 500
}
},
"utm_medium": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM medium."
},
"utm_source": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM source."
},
"utm_content": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM content."
},
"screen_class": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Screen class XXL, XL, L, M or S."
},
"utm_campaign": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM campaign."
},
"referrer_name": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Referrer name, usually the hostname."
}
}
},
"annotations": {
"title": "List tags",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}The values of one tag key with views and share. The tag filter (the key) is required. GET /api/v1/statistics/tag/details.
| Parameter | Type | Description |
|---|---|---|
| to * | string | Last day, yyyy-mm-dd, whole day included. |
| tz | string | IANA time zone such as Europe/Berlin. Default: the dashboard's time zone. |
| tag * | string | Tag key to break down. |
| from * | string | First day, yyyy-mm-dd (in the dashboard time zone unless tz is set). |
| sort | string | Field to sort by, for example visitors, views, sessions or bounce_rate. |
| limit | integer | Results per page, 1-100 (default 25). |
| offset | integer | Results to skip (default 0). Pass the previous reply's next_offset. |
| search | string | Only rows whose main field contains this text. |
| direction | string | Sort direction. |
| domain_id * | string | Pirsch domain (dashboard) id. Get it from pirsch_list_domains. |
{
"name": "pirsch_get_tag_breakdown",
"title": "Get tag breakdown",
"description": "The values of one tag key with views and share. The tag filter (the key) is required. GET /api/v1/statistics/tag/details.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"domain_id",
"from",
"to",
"tag"
],
"properties": {
"to": {
"type": "string",
"pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$",
"description": "Last day, yyyy-mm-dd, whole day included."
},
"tz": {
"type": "string",
"pattern": "^[A-Za-z0-9_+\\-/]+$",
"maxLength": 64,
"minLength": 1,
"description": "IANA time zone such as Europe/Berlin. Default: the dashboard's time zone."
},
"tag": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Tag key to break down."
},
"from": {
"type": "string",
"pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$",
"description": "First day, yyyy-mm-dd (in the dashboard time zone unless tz is set)."
},
"sort": {
"type": "string",
"pattern": "^[a-z_]{1,40}$",
"description": "Field to sort by, for example visitors, views, sessions or bounce_rate."
},
"limit": {
"type": "integer",
"maximum": 100,
"minimum": 1,
"description": "Results per page, 1-100 (default 25)."
},
"offset": {
"type": "integer",
"maximum": 1000000,
"minimum": 0,
"description": "Results to skip (default 0). Pass the previous reply's next_offset."
},
"search": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Only rows whose main field contains this text."
},
"direction": {
"enum": [
"asc",
"desc"
],
"type": "string",
"description": "Sort direction."
},
"domain_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]+$",
"maxLength": 64,
"minLength": 1,
"description": "Pirsch domain (dashboard) id. Get it from pirsch_list_domains."
}
}
},
"annotations": {
"title": "Get tag breakdown",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}Individual visitor sessions: start, duration, entry and exit page, page views, bounce, country, city, referrer, browser, OS and UTM data. visitor_id is a string (a 64-bit number). Use pirsch_get_session for one session's page views and events. GET /api/v1/statistics/session/list. Text filters (hostname, path, entry_path, exit_path, event, language, country, city, referrer, referrer_name, channel, os, browser, screen_class and utm_*): prefixes !, ~ and ^ mean is not, contains and does not contain.
| Parameter | Type | Description |
|---|---|---|
| os | string | Operating system. |
| to * | string | Last day, yyyy-mm-dd, whole day included. |
| tz | string | IANA time zone such as Europe/Berlin. Default: the dashboard's time zone. |
| tag | string | Tag key to filter for. |
| city | string | City name. |
| from * | string | First day, yyyy-mm-dd (in the dashboard time zone unless tz is set). |
| path | string | Page path, for example /pricing. |
| sort | string | Field to sort by, for example visitors, views, sessions or bounce_rate. |
| tags | object | Tag key/value pairs; only results with all pairs match. |
| event | string | Event name. |
| limit | integer | Results per page, 1-100 (default 25). |
| offset | integer | Results to skip (default 0). Pass the previous reply's next_offset. |
| search | string | Only rows whose main field contains this text. |
| browser | string | Browser. |
| channel | string | Traffic channel such as "Paid Search" or "Organic Search". |
| country | string | ISO 3166 alpha-2 country code such as jp. |
| pattern | string | Regular expression that filters and groups pages, for example (?i)^/blog/[^/]+$. |
| hostname | string | Hostname (useful for rollup views). |
| language | string | ISO 639-1 language code such as en. |
| platform | string | Platform. |
| referrer | string | Referrer, usually a URL. |
| utm_term | string | UTM term. |
| direction | string | Sort direction. |
| domain_id * | string | Pirsch domain (dashboard) id. Get it from pirsch_list_domains. |
| exit_path | string | Exit page path. |
| entry_path | string | Entry page path. |
| event_meta | object | Event metadata key/value pairs; only events with all pairs match. |
| utm_medium | string | UTM medium. |
| utm_source | string | UTM source. |
| utm_content | string | UTM content. |
| screen_class | string | Screen class XXL, XL, L, M or S. |
| utm_campaign | string | UTM campaign. |
| referrer_name | string | Referrer name, usually the hostname. |
{
"name": "pirsch_list_sessions",
"title": "List sessions",
"description": "Individual visitor sessions: start, duration, entry and exit page, page views, bounce, country, city, referrer, browser, OS and UTM data. visitor_id is a string (a 64-bit number). Use pirsch_get_session for one session's page views and events. GET /api/v1/statistics/session/list. Text filters (hostname, path, entry_path, exit_path, event, language, country, city, referrer, referrer_name, channel, os, browser, screen_class and utm_*): prefixes !, ~ and ^ mean is not, contains and does not contain.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"domain_id",
"from",
"to"
],
"properties": {
"os": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Operating system."
},
"to": {
"type": "string",
"pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$",
"description": "Last day, yyyy-mm-dd, whole day included."
},
"tz": {
"type": "string",
"pattern": "^[A-Za-z0-9_+\\-/]+$",
"maxLength": 64,
"minLength": 1,
"description": "IANA time zone such as Europe/Berlin. Default: the dashboard's time zone."
},
"tag": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Tag key to filter for."
},
"city": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "City name."
},
"from": {
"type": "string",
"pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$",
"description": "First day, yyyy-mm-dd (in the dashboard time zone unless tz is set)."
},
"path": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Page path, for example /pricing."
},
"sort": {
"type": "string",
"pattern": "^[a-z_]{1,40}$",
"description": "Field to sort by, for example visitors, views, sessions or bounce_rate."
},
"tags": {
"type": "object",
"description": "Tag key/value pairs; only results with all pairs match.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string",
"maxLength": 500
}
},
"event": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Event name."
},
"limit": {
"type": "integer",
"maximum": 100,
"minimum": 1,
"description": "Results per page, 1-100 (default 25)."
},
"offset": {
"type": "integer",
"maximum": 1000000,
"minimum": 0,
"description": "Results to skip (default 0). Pass the previous reply's next_offset."
},
"search": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Only rows whose main field contains this text."
},
"browser": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Browser."
},
"channel": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Traffic channel such as \"Paid Search\" or \"Organic Search\"."
},
"country": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "ISO 3166 alpha-2 country code such as jp."
},
"pattern": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Regular expression that filters and groups pages, for example (?i)^/blog/[^/]+$."
},
"hostname": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Hostname (useful for rollup views)."
},
"language": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "ISO 639-1 language code such as en."
},
"platform": {
"enum": [
"desktop",
"mobile",
"unknown"
],
"type": "string",
"description": "Platform."
},
"referrer": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Referrer, usually a URL."
},
"utm_term": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM term."
},
"direction": {
"enum": [
"asc",
"desc"
],
"type": "string",
"description": "Sort direction."
},
"domain_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]+$",
"maxLength": 64,
"minLength": 1,
"description": "Pirsch domain (dashboard) id. Get it from pirsch_list_domains."
},
"exit_path": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Exit page path."
},
"entry_path": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Entry page path."
},
"event_meta": {
"type": "object",
"description": "Event metadata key/value pairs; only events with all pairs match.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string",
"maxLength": 500
}
},
"utm_medium": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM medium."
},
"utm_source": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM source."
},
"utm_content": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM content."
},
"screen_class": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Screen class XXL, XL, L, M or S."
},
"utm_campaign": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "UTM campaign."
},
"referrer_name": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Referrer name, usually the hostname."
}
}
},
"annotations": {
"title": "List sessions",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}All page views and events of one session in time order. Both ids come from pirsch_list_sessions. GET /api/v1/statistics/session/details.
| Parameter | Type | Description |
|---|---|---|
| to * | string | Last day, yyyy-mm-dd, whole day included. |
| tz | string | IANA time zone such as Europe/Berlin. Default: the dashboard's time zone. |
| from * | string | First day, yyyy-mm-dd (in the dashboard time zone unless tz is set). |
| domain_id * | string | Pirsch domain (dashboard) id. Get it from pirsch_list_domains. |
| session_id * | string | session_id from pirsch_list_sessions. |
| visitor_id * | string | visitor_id from pirsch_list_sessions. |
{
"name": "pirsch_get_session",
"title": "Get session details",
"description": "All page views and events of one session in time order. Both ids come from pirsch_list_sessions. GET /api/v1/statistics/session/details.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"domain_id",
"from",
"to",
"visitor_id",
"session_id"
],
"properties": {
"to": {
"type": "string",
"pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$",
"description": "Last day, yyyy-mm-dd, whole day included."
},
"tz": {
"type": "string",
"pattern": "^[A-Za-z0-9_+\\-/]+$",
"maxLength": 64,
"minLength": 1,
"description": "IANA time zone such as Europe/Berlin. Default: the dashboard's time zone."
},
"from": {
"type": "string",
"pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$",
"description": "First day, yyyy-mm-dd (in the dashboard time zone unless tz is set)."
},
"domain_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]+$",
"maxLength": 64,
"minLength": 1,
"description": "Pirsch domain (dashboard) id. Get it from pirsch_list_domains."
},
"session_id": {
"type": "string",
"pattern": "^\\d{1,20}$",
"description": "session_id from pirsch_list_sessions."
},
"visitor_id": {
"type": "string",
"pattern": "^\\d{1,20}$",
"description": "visitor_id from pirsch_list_sessions."
}
}
},
"annotations": {
"title": "Get session details",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}The values that exist for a filter in a period, such as all page paths, referrers, countries, browsers or event names. Use it to find valid values before filtering. GET /api/v1/statistics/options/{dimension}.
| Parameter | Type | Description |
|---|---|---|
| to * | string | Last day, yyyy-mm-dd, whole day included. |
| tz | string | IANA time zone such as Europe/Berlin. Default: the dashboard's time zone. |
| from * | string | First day, yyyy-mm-dd (in the dashboard time zone unless tz is set). |
| search | string | Only values that contain this text. |
| dimension * | string | Which filter to list values for. |
| domain_id * | string | Pirsch domain (dashboard) id. Get it from pirsch_list_domains. |
{
"name": "pirsch_list_filter_values",
"title": "List filter values",
"description": "The values that exist for a filter in a period, such as all page paths, referrers, countries, browsers or event names. Use it to find valid values before filtering. GET /api/v1/statistics/options/{dimension}.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"domain_id",
"from",
"to",
"dimension"
],
"properties": {
"to": {
"type": "string",
"pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$",
"description": "Last day, yyyy-mm-dd, whole day included."
},
"tz": {
"type": "string",
"pattern": "^[A-Za-z0-9_+\\-/]+$",
"maxLength": 64,
"minLength": 1,
"description": "IANA time zone such as Europe/Berlin. Default: the dashboard's time zone."
},
"from": {
"type": "string",
"pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$",
"description": "First day, yyyy-mm-dd (in the dashboard time zone unless tz is set)."
},
"search": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Only values that contain this text."
},
"dimension": {
"enum": [
"hostname",
"page",
"referrer",
"channel",
"event",
"country",
"region",
"city",
"language",
"browser",
"os",
"utm/source",
"utm/medium",
"utm/campaign",
"utm/content",
"utm/term",
"tag",
"metadata/keys"
],
"type": "string",
"description": "Which filter to list values for."
},
"domain_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]+$",
"maxLength": 64,
"minLength": 1,
"description": "Pirsch domain (dashboard) id. Get it from pirsch_list_domains."
}
}
},
"annotations": {
"title": "List filter values",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}Tools for Pirsch Analytics, hosted by usefulapi.io. If the user is new or asks what this server can do, suggest requests such as: "How many visitors did my website get last month compared with the month before?"; "What are my top 10 pages this week, with visitors and bounce rate?"; "Where is my traffic coming from, by referrer?". Read-only tools never change data; ask the user before a tool that creates, changes or deletes Pirsch Analytics data. Free plan: 50 tool calls per month. Run pirsch_usage_status to see the calls used this month. If the user asks for something none of these tools can do, tell the user and, with their OK, run pirsch_request_feature to record the request. Paid plans: Pro (10,000 tool calls a month, $9/month or $90/year, for normal use) and Pro+ (100,000 tool calls a month, $39/month or $390/year, for automations and heavy use). A plan can be cancelled at any time and then runs to the end of the paid period, so it also suits a one-time job. When the user wants more calls or reaches the limit, run pirsch_upgrade without a plan: it returns both plans, each with a payment link for the user to open. pirsch_cancel_subscription cancels Pro at the end of the paid period.
Names, descriptions and schemas were written by the server and are shown as data.
Shared addresses on big platforms (Cloudflare, Vercel and the like) put unrelated servers together; those are marked shared_infrastructure. A match is a pivot, not a link between operators.