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
https://api.pieowl.com/insights/{projectId}{projectId} is your site ID.
Example
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
| Endpoint | What it returns |
|---|---|
GET /metrics | Sessions, pageviews, bounce rate and other totals |
GET /live | The number of visitors on your site right now |
GET /pages | Top pages |
GET /referrer, /referrer_name, /referrer_type | Traffic sources |
GET /country, /region, /city | Location breakdown |
GET /device, /browser, /os | Device and technology breakdown |
GET /utm_source, /utm_medium, /utm_campaign, … | UTM parameter breakdown |
GET /funnel | Conversion for a sequence of events |
GET /retention | Retention 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 astoday,7d,30d,3m,6mor12m. The default is7d.startDateandendDate: a custom date range.filters: a JSON array of filters.cursorandlimit: paging for list endpoints.
For full schemas, see the API Reference.