Pirsch Analytics MCP by usefulapi

v1.28.0
io.usefulapi/pirsch Checked 1 day ago Published 12 hours ago

Read Pirsch web analytics: visitors, pages, referrers, UTM, events, funnels and sessions.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

pirsch_list_domains List domains (dashboards)

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.

ParameterTypeDescription
searchstringOnly domains whose hostname contains this text.

pirsch_get_domain Get domain

One Pirsch dashboard (domain) by id, with its time zone, hostname, role and subscription state. GET /api/v1/domain?id=.

ParameterTypeDescription
domain_id *stringPirsch domain (dashboard) id. Get it from pirsch_list_domains.

pirsch_get_overview Get overview

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.

ParameterTypeDescription
domain_id *stringPirsch domain (dashboard) id. Get it from pirsch_list_domains.

pirsch_get_totals Get total visitors

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.

ParameterTypeDescription
domain_id *stringPirsch domain (dashboard) id. Get it from pirsch_list_domains.
from *stringFirst day, yyyy-mm-dd (in the dashboard time zone unless tz is set).
to *stringLast day, yyyy-mm-dd, whole day included.
browserstringBrowser.
channelstringTraffic channel such as "Paid Search" or "Organic Search".
citystringCity name.
countrystringISO 3166 alpha-2 country code such as jp.
entry_pathstringEntry page path.
eventstringEvent name.
event_metaobjectEvent metadata key/value pairs; only events with all pairs match.
exit_pathstringExit page path.
hostnamestringHostname (useful for rollup views).
languagestringISO 639-1 language code such as en.
osstringOperating system.
pathstringPage path, for example /pricing.
patternstringRegular expression that filters and groups pages, for example (?i)^/blog/[^/]+$.
platformstringPlatform.
referrerstringReferrer, usually a URL.
referrer_namestringReferrer name, usually the hostname.
screen_classstringScreen class XXL, XL, L, M or S.
tagstringTag key to filter for.
tagsobjectTag key/value pairs; only results with all pairs match.
tzstringIANA time zone such as Europe/Berlin. Default: the dashboard's time zone.
utm_campaignstringUTM campaign.
utm_contentstringUTM content.
utm_mediumstringUTM medium.
utm_sourcestringUTM source.
utm_termstringUTM term.

pirsch_get_visitors_time_series Get visitors time series

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.

ParameterTypeDescription
domain_id *stringPirsch domain (dashboard) id. Get it from pirsch_list_domains.
from *stringFirst day, yyyy-mm-dd (in the dashboard time zone unless tz is set).
to *stringLast day, yyyy-mm-dd, whole day included.
browserstringBrowser.
channelstringTraffic channel such as "Paid Search" or "Organic Search".
citystringCity name.
countrystringISO 3166 alpha-2 country code such as jp.
entry_pathstringEntry page path.
eventstringEvent name.
event_metaobjectEvent metadata key/value pairs; only events with all pairs match.
exit_pathstringExit page path.
hostnamestringHostname (useful for rollup views).
languagestringISO 639-1 language code such as en.
osstringOperating system.
pathstringPage path, for example /pricing.
patternstringRegular expression that filters and groups pages, for example (?i)^/blog/[^/]+$.
platformstringPlatform.
referrerstringReferrer, usually a URL.
referrer_namestringReferrer name, usually the hostname.
scalestringGroup results by day (default), week, month or year.
screen_classstringScreen class XXL, XL, L, M or S.
tagstringTag key to filter for.
tagsobjectTag key/value pairs; only results with all pairs match.
tzstringIANA time zone such as Europe/Berlin. Default: the dashboard's time zone.
utm_campaignstringUTM campaign.
utm_contentstringUTM content.
utm_mediumstringUTM medium.
utm_sourcestringUTM source.
utm_termstringUTM term.

pirsch_get_growth Get growth rates

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.

ParameterTypeDescription
domain_id *stringPirsch domain (dashboard) id. Get it from pirsch_list_domains.
from *stringFirst day, yyyy-mm-dd (in the dashboard time zone unless tz is set).
to *stringLast day, yyyy-mm-dd, whole day included.
browserstringBrowser.
channelstringTraffic channel such as "Paid Search" or "Organic Search".
citystringCity name.
countrystringISO 3166 alpha-2 country code such as jp.
entry_pathstringEntry page path.
eventstringEvent name.
event_metaobjectEvent metadata key/value pairs; only events with all pairs match.
exit_pathstringExit page path.
hostnamestringHostname (useful for rollup views).
languagestringISO 639-1 language code such as en.
osstringOperating system.
pathstringPage path, for example /pricing.
patternstringRegular expression that filters and groups pages, for example (?i)^/blog/[^/]+$.
platformstringPlatform.
referrerstringReferrer, usually a URL.
referrer_namestringReferrer name, usually the hostname.
screen_classstringScreen class XXL, XL, L, M or S.
tagstringTag key to filter for.
tagsobjectTag key/value pairs; only results with all pairs match.
tzstringIANA time zone such as Europe/Berlin. Default: the dashboard's time zone.
utm_campaignstringUTM campaign.
utm_contentstringUTM content.
utm_mediumstringUTM medium.
utm_sourcestringUTM source.
utm_termstringUTM term.

pirsch_get_active_visitors Get active visitors

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.

ParameterTypeDescription
domain_id *stringPirsch domain (dashboard) id. Get it from pirsch_list_domains.
startintegerLook back this many seconds, 1-3600 (default 600 = 10 minutes).

pirsch_get_time_distribution Get visitors by time

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.

ParameterTypeDescription
by *stringhour = per hour of day, minute = per minute (needs a one-day range), weekday = weekday and hour.
domain_id *stringPirsch domain (dashboard) id. Get it from pirsch_list_domains.
from *stringFirst day, yyyy-mm-dd (in the dashboard time zone unless tz is set).
to *stringLast day, yyyy-mm-dd, whole day included.
browserstringBrowser.
channelstringTraffic channel such as "Paid Search" or "Organic Search".
citystringCity name.
countrystringISO 3166 alpha-2 country code such as jp.
entry_pathstringEntry page path.
eventstringEvent name.
event_metaobjectEvent metadata key/value pairs; only events with all pairs match.
exit_pathstringExit page path.
hostnamestringHostname (useful for rollup views).
languagestringISO 639-1 language code such as en.
osstringOperating system.
pathstringPage path, for example /pricing.
patternstringRegular expression that filters and groups pages, for example (?i)^/blog/[^/]+$.
platformstringPlatform.
referrerstringReferrer, usually a URL.
referrer_namestringReferrer name, usually the hostname.
screen_classstringScreen class XXL, XL, L, M or S.
tagstringTag key to filter for.
tagsobjectTag key/value pairs; only results with all pairs match.
tzstringIANA time zone such as Europe/Berlin. Default: the dashboard's time zone.
utm_campaignstringUTM campaign.
utm_contentstringUTM content.
utm_mediumstringUTM medium.
utm_sourcestringUTM source.
utm_termstringUTM term.

pirsch_get_duration Get time spent

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.

ParameterTypeDescription
domain_id *stringPirsch domain (dashboard) id. Get it from pirsch_list_domains.
from *stringFirst day, yyyy-mm-dd (in the dashboard time zone unless tz is set).
kind *stringsession = average session duration, page = average time on page.
to *stringLast day, yyyy-mm-dd, whole day included.
browserstringBrowser.
channelstringTraffic channel such as "Paid Search" or "Organic Search".
citystringCity name.
countrystringISO 3166 alpha-2 country code such as jp.
entry_pathstringEntry page path.
eventstringEvent name.
event_metaobjectEvent metadata key/value pairs; only events with all pairs match.
exit_pathstringExit page path.
hostnamestringHostname (useful for rollup views).
languagestringISO 639-1 language code such as en.
osstringOperating system.
pathstringPage path, for example /pricing.
patternstringRegular expression that filters and groups pages, for example (?i)^/blog/[^/]+$.
platformstringPlatform.
referrerstringReferrer, usually a URL.
referrer_namestringReferrer name, usually the hostname.
scalestringGroup results by day (default), week, month or year.
screen_classstringScreen class XXL, XL, L, M or S.
tagstringTag key to filter for.
tagsobjectTag key/value pairs; only results with all pairs match.
tzstringIANA time zone such as Europe/Berlin. Default: the dashboard's time zone.
utm_campaignstringUTM campaign.
utm_contentstringUTM content.
utm_mediumstringUTM medium.
utm_sourcestringUTM source.
utm_termstringUTM term.

pirsch_list_pages List pages

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.

ParameterTypeDescription
domain_id *stringPirsch domain (dashboard) id. Get it from pirsch_list_domains.
from *stringFirst day, yyyy-mm-dd (in the dashboard time zone unless tz is set).
to *stringLast day, yyyy-mm-dd, whole day included.
browserstringBrowser.
channelstringTraffic channel such as "Paid Search" or "Organic Search".
citystringCity name.
countrystringISO 3166 alpha-2 country code such as jp.
directionstringSort direction.
entry_pathstringEntry page path.
eventstringEvent name.
event_metaobjectEvent metadata key/value pairs; only events with all pairs match.
exit_pathstringExit page path.
hostnamestringHostname (useful for rollup views).
include_titlebooleanGroup by title and path instead of path only.
languagestringISO 639-1 language code such as en.
limitintegerResults per page, 1-100 (default 25).
offsetintegerResults to skip (default 0). Pass the previous reply's next_offset.
osstringOperating system.
pathstringPage path, for example /pricing.
patternstringRegular expression that filters and groups pages, for example (?i)^/blog/[^/]+$.
platformstringPlatform.
referrerstringReferrer, usually a URL.
referrer_namestringReferrer name, usually the hostname.
screen_classstringScreen class XXL, XL, L, M or S.
searchstringOnly rows whose main field contains this text.
sortstringField to sort by, for example visitors, views, sessions or bounce_rate.
tagstringTag key to filter for.
tagsobjectTag key/value pairs; only results with all pairs match.
typestringall (default), entry or exit pages.
tzstringIANA time zone such as Europe/Berlin. Default: the dashboard's time zone.
utm_campaignstringUTM campaign.
utm_contentstringUTM content.
utm_mediumstringUTM medium.
utm_sourcestringUTM source.
utm_termstringUTM term.

pirsch_list_hostnames List hostnames

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.

ParameterTypeDescription
domain_id *stringPirsch domain (dashboard) id. Get it from pirsch_list_domains.
from *stringFirst day, yyyy-mm-dd (in the dashboard time zone unless tz is set).
to *stringLast day, yyyy-mm-dd, whole day included.
browserstringBrowser.
channelstringTraffic channel such as "Paid Search" or "Organic Search".
citystringCity name.
countrystringISO 3166 alpha-2 country code such as jp.
directionstringSort direction.
entry_pathstringEntry page path.
eventstringEvent name.
event_metaobjectEvent metadata key/value pairs; only events with all pairs match.
exit_pathstringExit page path.
hostnamestringHostname (useful for rollup views).
languagestringISO 639-1 language code such as en.
limitintegerResults per page, 1-100 (default 25).
offsetintegerResults to skip (default 0). Pass the previous reply's next_offset.
osstringOperating system.
pathstringPage path, for example /pricing.
patternstringRegular expression that filters and groups pages, for example (?i)^/blog/[^/]+$.
platformstringPlatform.
referrerstringReferrer, usually a URL.
referrer_namestringReferrer name, usually the hostname.
screen_classstringScreen class XXL, XL, L, M or S.
searchstringOnly rows whose main field contains this text.
sortstringField to sort by, for example visitors, views, sessions or bounce_rate.
tagstringTag key to filter for.
tagsobjectTag key/value pairs; only results with all pairs match.
tzstringIANA time zone such as Europe/Berlin. Default: the dashboard's time zone.
utm_campaignstringUTM campaign.
utm_contentstringUTM content.
utm_mediumstringUTM medium.
utm_sourcestringUTM source.
utm_termstringUTM term.

pirsch_list_referrers List referrers

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.

ParameterTypeDescription
domain_id *stringPirsch domain (dashboard) id. Get it from pirsch_list_domains.
from *stringFirst day, yyyy-mm-dd (in the dashboard time zone unless tz is set).
to *stringLast day, yyyy-mm-dd, whole day included.
browserstringBrowser.
bystringreferrer (default) or channel.
channelstringTraffic channel such as "Paid Search" or "Organic Search".
citystringCity name.
countrystringISO 3166 alpha-2 country code such as jp.
directionstringSort direction.
entry_pathstringEntry page path.
eventstringEvent name.
event_metaobjectEvent metadata key/value pairs; only events with all pairs match.
exit_pathstringExit page path.
hostnamestringHostname (useful for rollup views).
languagestringISO 639-1 language code such as en.
limitintegerResults per page, 1-100 (default 25).
offsetintegerResults to skip (default 0). Pass the previous reply's next_offset.
osstringOperating system.
pathstringPage path, for example /pricing.
patternstringRegular expression that filters and groups pages, for example (?i)^/blog/[^/]+$.
platformstringPlatform.
referrerstringReferrer, usually a URL.
referrer_namestringReferrer name, usually the hostname.
screen_classstringScreen class XXL, XL, L, M or S.
searchstringOnly rows whose main field contains this text.
sortstringField to sort by, for example visitors, views, sessions or bounce_rate.
tagstringTag key to filter for.
tagsobjectTag key/value pairs; only results with all pairs match.
tzstringIANA time zone such as Europe/Berlin. Default: the dashboard's time zone.
utm_campaignstringUTM campaign.
utm_contentstringUTM content.
utm_mediumstringUTM medium.
utm_sourcestringUTM source.
utm_termstringUTM term.

pirsch_list_utm List UTM parameters

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.

ParameterTypeDescription
dimension *stringWhich UTM parameter to break down.
domain_id *stringPirsch domain (dashboard) id. Get it from pirsch_list_domains.
from *stringFirst day, yyyy-mm-dd (in the dashboard time zone unless tz is set).
to *stringLast day, yyyy-mm-dd, whole day included.
browserstringBrowser.
channelstringTraffic channel such as "Paid Search" or "Organic Search".
citystringCity name.
countrystringISO 3166 alpha-2 country code such as jp.
directionstringSort direction.
entry_pathstringEntry page path.
eventstringEvent name.
event_metaobjectEvent metadata key/value pairs; only events with all pairs match.
exit_pathstringExit page path.
hostnamestringHostname (useful for rollup views).
languagestringISO 639-1 language code such as en.
limitintegerResults per page, 1-100 (default 25).
offsetintegerResults to skip (default 0). Pass the previous reply's next_offset.
osstringOperating system.
pathstringPage path, for example /pricing.
patternstringRegular expression that filters and groups pages, for example (?i)^/blog/[^/]+$.
platformstringPlatform.
referrerstringReferrer, usually a URL.
referrer_namestringReferrer name, usually the hostname.
screen_classstringScreen class XXL, XL, L, M or S.
searchstringOnly rows whose main field contains this text.
sortstringField to sort by, for example visitors, views, sessions or bounce_rate.
tagstringTag key to filter for.
tagsobjectTag key/value pairs; only results with all pairs match.
tzstringIANA time zone such as Europe/Berlin. Default: the dashboard's time zone.
utm_campaignstringUTM campaign.
utm_contentstringUTM content.
utm_mediumstringUTM medium.
utm_sourcestringUTM source.
utm_termstringUTM term.

pirsch_list_geography List countries, regions, cities and languages

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.

ParameterTypeDescription
dimension *stringWhich breakdown.
domain_id *stringPirsch domain (dashboard) id. Get it from pirsch_list_domains.
from *stringFirst day, yyyy-mm-dd (in the dashboard time zone unless tz is set).
to *stringLast day, yyyy-mm-dd, whole day included.
browserstringBrowser.
channelstringTraffic channel such as "Paid Search" or "Organic Search".
citystringCity name.
countrystringISO 3166 alpha-2 country code such as jp.
directionstringSort direction.
entry_pathstringEntry page path.
eventstringEvent name.
event_metaobjectEvent metadata key/value pairs; only events with all pairs match.
exit_pathstringExit page path.
hostnamestringHostname (useful for rollup views).
languagestringISO 639-1 language code such as en.
limitintegerResults per page, 1-100 (default 25).
offsetintegerResults to skip (default 0). Pass the previous reply's next_offset.
osstringOperating system.
pathstringPage path, for example /pricing.
patternstringRegular expression that filters and groups pages, for example (?i)^/blog/[^/]+$.
platformstringPlatform.
referrerstringReferrer, usually a URL.
referrer_namestringReferrer name, usually the hostname.
screen_classstringScreen class XXL, XL, L, M or S.
searchstringOnly rows whose main field contains this text.
sortstringField to sort by, for example visitors, views, sessions or bounce_rate.
tagstringTag key to filter for.
tagsobjectTag key/value pairs; only results with all pairs match.
tzstringIANA time zone such as Europe/Berlin. Default: the dashboard's time zone.
utm_campaignstringUTM campaign.
utm_contentstringUTM content.
utm_mediumstringUTM medium.
utm_sourcestringUTM source.
utm_termstringUTM term.

pirsch_list_devices List browsers, operating systems and screens

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.

ParameterTypeDescription
dimension *stringWhich breakdown.
domain_id *stringPirsch domain (dashboard) id. Get it from pirsch_list_domains.
from *stringFirst day, yyyy-mm-dd (in the dashboard time zone unless tz is set).
to *stringLast day, yyyy-mm-dd, whole day included.
browserstringBrowser.
channelstringTraffic channel such as "Paid Search" or "Organic Search".
citystringCity name.
countrystringISO 3166 alpha-2 country code such as jp.
directionstringSort direction.
entry_pathstringEntry page path.
eventstringEvent name.
event_metaobjectEvent metadata key/value pairs; only events with all pairs match.
exit_pathstringExit page path.
hostnamestringHostname (useful for rollup views).
languagestringISO 639-1 language code such as en.
limitintegerResults per page, 1-100 (default 25).
offsetintegerResults to skip (default 0). Pass the previous reply's next_offset.
osstringOperating system.
pathstringPage path, for example /pricing.
patternstringRegular expression that filters and groups pages, for example (?i)^/blog/[^/]+$.
platformstringPlatform.
referrerstringReferrer, usually a URL.
referrer_namestringReferrer name, usually the hostname.
screen_classstringScreen class XXL, XL, L, M or S.
searchstringOnly rows whose main field contains this text.
sortstringField to sort by, for example visitors, views, sessions or bounce_rate.
tagstringTag key to filter for.
tagsobjectTag key/value pairs; only results with all pairs match.
tzstringIANA time zone such as Europe/Berlin. Default: the dashboard's time zone.
utm_campaignstringUTM campaign.
utm_contentstringUTM content.
utm_mediumstringUTM medium.
utm_sourcestringUTM source.
utm_termstringUTM term.

pirsch_get_platforms Get platform split

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.

ParameterTypeDescription
domain_id *stringPirsch domain (dashboard) id. Get it from pirsch_list_domains.
from *stringFirst day, yyyy-mm-dd (in the dashboard time zone unless tz is set).
to *stringLast day, yyyy-mm-dd, whole day included.
browserstringBrowser.
channelstringTraffic channel such as "Paid Search" or "Organic Search".
citystringCity name.
countrystringISO 3166 alpha-2 country code such as jp.
entry_pathstringEntry page path.
eventstringEvent name.
event_metaobjectEvent metadata key/value pairs; only events with all pairs match.
exit_pathstringExit page path.
hostnamestringHostname (useful for rollup views).
languagestringISO 639-1 language code such as en.
osstringOperating system.
pathstringPage path, for example /pricing.
patternstringRegular expression that filters and groups pages, for example (?i)^/blog/[^/]+$.
platformstringPlatform.
referrerstringReferrer, usually a URL.
referrer_namestringReferrer name, usually the hostname.
screen_classstringScreen class XXL, XL, L, M or S.
tagstringTag key to filter for.
tagsobjectTag key/value pairs; only results with all pairs match.
tzstringIANA time zone such as Europe/Berlin. Default: the dashboard's time zone.
utm_campaignstringUTM campaign.
utm_contentstringUTM content.
utm_mediumstringUTM medium.
utm_sourcestringUTM source.
utm_termstringUTM term.

pirsch_list_events List events

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.

ParameterTypeDescription
domain_id *stringPirsch domain (dashboard) id. Get it from pirsch_list_domains.
from *stringFirst day, yyyy-mm-dd (in the dashboard time zone unless tz is set).
to *stringLast day, yyyy-mm-dd, whole day included.
browserstringBrowser.
channelstringTraffic channel such as "Paid Search" or "Organic Search".
citystringCity name.
countrystringISO 3166 alpha-2 country code such as jp.
directionstringSort direction.
entry_pathstringEntry page path.
eventstringEvent name.
event_metaobjectEvent metadata key/value pairs; only events with all pairs match.
exit_pathstringExit page path.
hostnamestringHostname (useful for rollup views).
languagestringISO 639-1 language code such as en.
limitintegerResults per page, 1-100 (default 25).
offsetintegerResults to skip (default 0). Pass the previous reply's next_offset.
osstringOperating system.
pathstringPage path, for example /pricing.
patternstringRegular expression that filters and groups pages, for example (?i)^/blog/[^/]+$.
platformstringPlatform.
referrerstringReferrer, usually a URL.
referrer_namestringReferrer name, usually the hostname.
screen_classstringScreen class XXL, XL, L, M or S.
searchstringOnly rows whose main field contains this text.
sortstringField to sort by, for example visitors, views, sessions or bounce_rate.
tagstringTag key to filter for.
tagsobjectTag key/value pairs; only results with all pairs match.
tzstringIANA time zone such as Europe/Berlin. Default: the dashboard's time zone.
utm_campaignstringUTM campaign.
utm_contentstringUTM content.
utm_mediumstringUTM medium.
utm_sourcestringUTM source.
utm_termstringUTM term.

pirsch_get_event_breakdown Get event metadata breakdown

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.

ParameterTypeDescription
domain_id *stringPirsch domain (dashboard) id. Get it from pirsch_list_domains.
event *stringEvent name.
event_meta_key *stringMetadata key to break down.
from *stringFirst day, yyyy-mm-dd (in the dashboard time zone unless tz is set).
to *stringLast day, yyyy-mm-dd, whole day included.
directionstringSort direction.
limitintegerResults per page, 1-100 (default 25).
offsetintegerResults to skip (default 0). Pass the previous reply's next_offset.
searchstringOnly rows whose main field contains this text.
sortstringField to sort by, for example visitors, views, sessions or bounce_rate.
tzstringIANA time zone such as Europe/Berlin. Default: the dashboard's time zone.

pirsch_list_event_pages List pages of an event

The pages on which an event was triggered, with visitors and views. The event name is required. GET /api/v1/statistics/event/page.

ParameterTypeDescription
domain_id *stringPirsch domain (dashboard) id. Get it from pirsch_list_domains.
event *stringEvent name.
from *stringFirst day, yyyy-mm-dd (in the dashboard time zone unless tz is set).
to *stringLast day, yyyy-mm-dd, whole day included.
directionstringSort direction.
limitintegerResults per page, 1-100 (default 25).
offsetintegerResults to skip (default 0). Pass the previous reply's next_offset.
searchstringOnly rows whose main field contains this text.
sortstringField to sort by, for example visitors, views, sessions or bounce_rate.
tzstringIANA time zone such as Europe/Berlin. Default: the dashboard's time zone.

pirsch_list_goals List conversion goals

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.

ParameterTypeDescription
domain_id *stringPirsch domain (dashboard) id. Get it from pirsch_list_domains.
from *stringFirst day, yyyy-mm-dd (in the dashboard time zone unless tz is set).
to *stringLast day, yyyy-mm-dd, whole day included.
browserstringBrowser.
channelstringTraffic channel such as "Paid Search" or "Organic Search".
citystringCity name.
countrystringISO 3166 alpha-2 country code such as jp.
directionstringSort direction.
entry_pathstringEntry page path.
eventstringEvent name.
event_metaobjectEvent metadata key/value pairs; only events with all pairs match.
exit_pathstringExit page path.
hostnamestringHostname (useful for rollup views).
languagestringISO 639-1 language code such as en.
limitintegerResults per page, 1-100 (default 25).
offsetintegerResults to skip (default 0). Pass the previous reply's next_offset.
osstringOperating system.
pathstringPage path, for example /pricing.
patternstringRegular expression that filters and groups pages, for example (?i)^/blog/[^/]+$.
platformstringPlatform.
referrerstringReferrer, usually a URL.
referrer_namestringReferrer name, usually the hostname.
screen_classstringScreen class XXL, XL, L, M or S.
searchstringOnly rows whose main field contains this text.
sortstringField to sort by, for example visitors, views, sessions or bounce_rate.
tagstringTag key to filter for.
tagsobjectTag key/value pairs; only results with all pairs match.
tzstringIANA time zone such as Europe/Berlin. Default: the dashboard's time zone.
utm_campaignstringUTM campaign.
utm_contentstringUTM content.
utm_mediumstringUTM medium.
utm_sourcestringUTM source.
utm_termstringUTM term.

pirsch_list_funnels List funnels

The funnels defined for a dashboard, with their steps and step filters. Use a funnel id in pirsch_get_funnel. GET /api/v1/funnel.

ParameterTypeDescription
domain_id *stringPirsch domain (dashboard) id. Get it from pirsch_list_domains.
searchstringOnly funnels whose name contains this text.

pirsch_get_funnel Get funnel statistics

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.

ParameterTypeDescription
domain_id *stringPirsch domain (dashboard) id. Get it from pirsch_list_domains.
from *stringFirst day, yyyy-mm-dd (in the dashboard time zone unless tz is set).
funnel_id *stringFunnel id from pirsch_list_funnels.
to *stringLast day, yyyy-mm-dd, whole day included.
browserstringBrowser.
channelstringTraffic channel such as "Paid Search" or "Organic Search".
citystringCity name.
countrystringISO 3166 alpha-2 country code such as jp.
entry_pathstringEntry page path.
eventstringEvent name.
event_metaobjectEvent metadata key/value pairs; only events with all pairs match.
exit_pathstringExit page path.
hostnamestringHostname (useful for rollup views).
languagestringISO 639-1 language code such as en.
osstringOperating system.
pathstringPage path, for example /pricing.
patternstringRegular expression that filters and groups pages, for example (?i)^/blog/[^/]+$.
platformstringPlatform.
referrerstringReferrer, usually a URL.
referrer_namestringReferrer name, usually the hostname.
screen_classstringScreen class XXL, XL, L, M or S.
tagstringTag key to filter for.
tagsobjectTag key/value pairs; only results with all pairs match.
tzstringIANA time zone such as Europe/Berlin. Default: the dashboard's time zone.
utm_campaignstringUTM campaign.
utm_contentstringUTM content.
utm_mediumstringUTM medium.
utm_sourcestringUTM source.
utm_termstringUTM term.

pirsch_list_tags List tags

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.

ParameterTypeDescription
domain_id *stringPirsch domain (dashboard) id. Get it from pirsch_list_domains.
from *stringFirst day, yyyy-mm-dd (in the dashboard time zone unless tz is set).
to *stringLast day, yyyy-mm-dd, whole day included.
browserstringBrowser.
channelstringTraffic channel such as "Paid Search" or "Organic Search".
citystringCity name.
countrystringISO 3166 alpha-2 country code such as jp.
directionstringSort direction.
entry_pathstringEntry page path.
eventstringEvent name.
event_metaobjectEvent metadata key/value pairs; only events with all pairs match.
exit_pathstringExit page path.
hostnamestringHostname (useful for rollup views).
languagestringISO 639-1 language code such as en.
limitintegerResults per page, 1-100 (default 25).
offsetintegerResults to skip (default 0). Pass the previous reply's next_offset.
osstringOperating system.
pathstringPage path, for example /pricing.
patternstringRegular expression that filters and groups pages, for example (?i)^/blog/[^/]+$.
platformstringPlatform.
referrerstringReferrer, usually a URL.
referrer_namestringReferrer name, usually the hostname.
screen_classstringScreen class XXL, XL, L, M or S.
searchstringOnly rows whose main field contains this text.
sortstringField to sort by, for example visitors, views, sessions or bounce_rate.
tagstringTag key to filter for.
tagsobjectTag key/value pairs; only results with all pairs match.
tzstringIANA time zone such as Europe/Berlin. Default: the dashboard's time zone.
utm_campaignstringUTM campaign.
utm_contentstringUTM content.
utm_mediumstringUTM medium.
utm_sourcestringUTM source.
utm_termstringUTM term.

pirsch_get_tag_breakdown Get tag breakdown

The values of one tag key with views and share. The tag filter (the key) is required. GET /api/v1/statistics/tag/details.

ParameterTypeDescription
domain_id *stringPirsch domain (dashboard) id. Get it from pirsch_list_domains.
from *stringFirst day, yyyy-mm-dd (in the dashboard time zone unless tz is set).
tag *stringTag key to break down.
to *stringLast day, yyyy-mm-dd, whole day included.
directionstringSort direction.
limitintegerResults per page, 1-100 (default 25).
offsetintegerResults to skip (default 0). Pass the previous reply's next_offset.
searchstringOnly rows whose main field contains this text.
sortstringField to sort by, for example visitors, views, sessions or bounce_rate.
tzstringIANA time zone such as Europe/Berlin. Default: the dashboard's time zone.

pirsch_list_sessions List sessions

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.

ParameterTypeDescription
domain_id *stringPirsch domain (dashboard) id. Get it from pirsch_list_domains.
from *stringFirst day, yyyy-mm-dd (in the dashboard time zone unless tz is set).
to *stringLast day, yyyy-mm-dd, whole day included.
browserstringBrowser.
channelstringTraffic channel such as "Paid Search" or "Organic Search".
citystringCity name.
countrystringISO 3166 alpha-2 country code such as jp.
directionstringSort direction.
entry_pathstringEntry page path.
eventstringEvent name.
event_metaobjectEvent metadata key/value pairs; only events with all pairs match.
exit_pathstringExit page path.
hostnamestringHostname (useful for rollup views).
languagestringISO 639-1 language code such as en.
limitintegerResults per page, 1-100 (default 25).
offsetintegerResults to skip (default 0). Pass the previous reply's next_offset.
osstringOperating system.
pathstringPage path, for example /pricing.
patternstringRegular expression that filters and groups pages, for example (?i)^/blog/[^/]+$.
platformstringPlatform.
referrerstringReferrer, usually a URL.
referrer_namestringReferrer name, usually the hostname.
screen_classstringScreen class XXL, XL, L, M or S.
searchstringOnly rows whose main field contains this text.
sortstringField to sort by, for example visitors, views, sessions or bounce_rate.
tagstringTag key to filter for.
tagsobjectTag key/value pairs; only results with all pairs match.
tzstringIANA time zone such as Europe/Berlin. Default: the dashboard's time zone.
utm_campaignstringUTM campaign.
utm_contentstringUTM content.
utm_mediumstringUTM medium.
utm_sourcestringUTM source.
utm_termstringUTM term.

pirsch_get_session Get session details

All page views and events of one session in time order. Both ids come from pirsch_list_sessions. GET /api/v1/statistics/session/details.

ParameterTypeDescription
domain_id *stringPirsch domain (dashboard) id. Get it from pirsch_list_domains.
from *stringFirst day, yyyy-mm-dd (in the dashboard time zone unless tz is set).
session_id *stringsession_id from pirsch_list_sessions.
to *stringLast day, yyyy-mm-dd, whole day included.
visitor_id *stringvisitor_id from pirsch_list_sessions.
tzstringIANA time zone such as Europe/Berlin. Default: the dashboard's time zone.

pirsch_list_filter_values List filter values

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}.

ParameterTypeDescription
dimension *stringWhich filter to list values for.
domain_id *stringPirsch domain (dashboard) id. Get it from pirsch_list_domains.
from *stringFirst day, yyyy-mm-dd (in the dashboard time zone unless tz is set).
to *stringLast day, yyyy-mm-dd, whole day included.
searchstringOnly values that contain this text.
tzstringIANA time zone such as Europe/Berlin. Default: the dashboard's time zone.