Get top pages
Read the Top Pages report: pages, entry pages or exit pages.
GET https://cotlet.dev/api/v1/plausible/top-pages
read
Returns the rows of the report tab you pick, most visited first, with visitors and pageviews per page path. Each row is a page path, not a full URL. The report has no filter by goal or source in this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| site string required | string | Domain of the site as the Sites page lists it, e.g. acme-shop.example. |
| view string | string | pages (default), entry_pages or exit_pages. |
| from string | string | First day of the date range, YYYY-MM-DD. Default: the last 30 days. |
| to string | string | Last day of the date range, YYYY-MM-DD. Default: today. |
| limit integer | integer | Rows to return, most visited first. Default 10. |
Request
curl "https://cotlet.dev/api/v1/plausible/top-pages?site=site" \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("plausible", "get_top_pages", {"site":"site"}) const result = await cotlet.call('plausible', 'get_top_pages', {"site":"site"}); cotlet call plausible get_top_pages --data '{"site":"site"}' Example response
{
"site": "acme-shop.example",
"view": "pages",
"rows": [
{
"page": "/pricing",
"visitors": 1180,
"pageviews": 1640
},
{
"page": "/blog/launch-notes",
"visitors": 902,
"pageviews": 960
},
{
"page": "/signup",
"visitors": 455,
"pageviews": 520
}
]
}