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

Parameters: list_sites
NameTypeDescription
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
curl https://cotlet.dev/api/v1/plausible/sites \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("plausible", "list_sites")
Node.js
const result = await cotlet.call('plausible', 'list_sites');
CLI
cotlet call plausible list_sites

Example response

JSON

{
  "team": "Acme Shop",
  "sites": [
    {
      "site": "acme-shop.example",
      "visitors_24h": 612
    },
    {
      "site": "blog.acme-shop.example",
      "visitors_24h": 148
    }
  ]
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.