Plausible

Query stats, record events, and manage sites, goals, and guests with Plausible Analytics.

v1.0.0Source

Install

Query site stats, record events, and manage sites, goals, custom properties, shared links, and guests with Plausible Analytics. Use it for cloud or self-hosted Plausible.

Plausible@zerodot/plausibleInstall
  1. Open System, then Nodes.
  2. Find Plausible and click Install.
  3. Use the new nodes at once. You do not restart.

How it works

Plausible (plausible.api) is an action node in the Plausible package (@zerodot/plausible): Query stats, record events, and manage sites, goals, and guests with Plausible Analytics.

  • Stats (Stats API): query (v2), aggregate (v1), timeseries (v1), breakdown (v1), get realtime visitors (v1)
  • Event (Events API): send, check health
  • Site (Sites API): create, get, get many, update, delete
  • Team: get many
  • Shared Link: find or create
  • Goal: get many, find or create, delete
  • Custom Property: get many, create, delete
  • Guest: get many, invite, delete

Field names follow the official parameter names of Plausible, for example site_id, date_range, metrics, and tracker_script_configuration.

Query sends POST /api/v2/query. Dimensions is a comma separated list. Filters and Order By are JSON arrays. The v1 operations use period, date, and a filter text such as visit:source==Google;event:page==/blog/*.

Send in the Event resource sends POST /api/event. It sends no API key. Plausible needs the User-Agent header to count unique visitors. To set the IP address of the visitor, use X-Forwarded-For. Plausible gives HTTP 202 even when it drops an event. Use Debug Request to see the IP address that Plausible reads.

The Sites API needs a Sites API key (Enterprise plan). The read-only calls also work with a Stats API key. Plausible makes the actions "find or create" idempotent. They do not fail when the item exists.

A list can return all items (at most 5000) or a limit. Sites, teams, goals, and guests use cursor pages. Custom properties have no pages.

When Plausible gives an error, the node fails with the status and the message. A call that returns a plain number, such as realtime visitors, returns { "value": 21 }.

There is no trigger. Plausible has no webhooks.

Logins it can use

Plausible API key (plausible.apiKey): apiKey, from Settings > API Keys in Plausible. Plausible shows the key only once. baseUrl is https://plausible.io for Plausible Cloud. For a self-hosted Plausible, set the address of your server. The Test button reads the list of sites.

Guides and related hubs