List sites
List the sites on the Sites page with their visitors in the last 24 hours.
GET https://cotlet.dev/api/v1/plausible/sites
read
Returns one row per site on the Sites page, in the order the page shows them, with the visitor count for the last 24 hours that Plausible prints next to each site. Sites you only see as a guest are listed too. Use it first: every other tool takes a site domain from this list.
Parameters
| Name | Type | Description |
|---|---|---|
| team string | string | Team name. Only needed when your account belongs to more than one team; default is the team you last used. |
Request
curl https://cotlet.dev/api/v1/plausible/sites \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("plausible", "list_sites") const result = await cotlet.call('plausible', 'list_sites'); cotlet call plausible list_sites Example response
{
"team": "Acme Shop",
"sites": [
{
"site": "acme-shop.example",
"visitors_24h": 612
},
{
"site": "blog.acme-shop.example",
"visitors_24h": 148
}
]
}