pieowlDocs
Insights

Insights

Query Pieowl analytics data with the Insights API, including metrics, pages, referrers, devices and location.

Authentication

Requires a read or root client. The default write client does not have access. See the Authentication guide.

Base URL

plaintext
https://api.pieowl.com/insights/{projectId}

{projectId} is your site ID.

Example

bash
curl 'https://api.pieowl.com/insights/YOUR_PROJECT_ID/metrics?range=30d' \
  -H 'pieowl-client-id: YOUR_CLIENT_ID' \
  -H 'pieowl-client-secret: YOUR_CLIENT_SECRET'

Common endpoints

EndpointWhat it returns
GET /metricsSessions, pageviews, bounce rate and other totals
GET /liveThe number of visitors on your site right now
GET /pagesTop pages
GET /referrer, /referrer_name, /referrer_typeTraffic sources
GET /country, /region, /cityLocation breakdown
GET /device, /browser, /osDevice and technology breakdown
GET /utm_source, /utm_medium, /utm_campaign, …UTM parameter breakdown
GET /funnelConversion for a sequence of events
GET /retentionRetention over time

There are more endpoints for events, profiles, sessions, groups, saved reports and Google Search Console data. The API Reference lists them all.

Query parameters

Most endpoints accept:

  • range: a preset such as today, 7d, 30d, 3m, 6m or 12m. The default is 7d.
  • startDate and endDate: a custom date range.
  • filters: a JSON array of filters.
  • cursor and limit: paging for list endpoints.

For full schemas, see the API Reference.

On this page

Need a hand?

Questions, issues or feature requests: email the Pieowl team.

hello@pieowl.com