Plausible icon

Plausible

Interact with the Plausible API

Overview

The "Site: Get" operation in this custom n8n node allows users to retrieve information about a specific site from the Plausible API. This is useful for automating analytics workflows, integrating site data into dashboards, or triggering actions based on site status or configuration. For example, you might use this node to fetch details about your website before running further analytics queries or to verify that a domain is registered with Plausible.

Properties

Name Type Meaning
Currently, this API is in private preview and therefore it's not possible to acquire an API key through the dashboard. Please contact Plausible to get an udpated API key. notice Informational notice indicating that the API is in private preview and API keys are not publicly available.
Domain string Domain of the site to use. Specifies which site's information will be retrieved (e.g., "n8n.io").

Output

  • The output will contain a json field with the details of the specified site.
  • The exact structure depends on the Plausible API response for the site, but typically includes fields such as domain name, site ID, and other metadata relevant to the site.

Example output:

{
  "json": {
    "domain": "n8n.io",
    "id": "12345",
    "created_at": "2023-01-01T00:00:00Z",
    // ...other site-specific fields
  }
}

Dependencies

  • External Service: Requires access to the Plausible API.
  • API Key: An API key is required, but as noted, the API is in private preview. You must contact Plausible to obtain an updated API key.
  • n8n Credentials: Must configure the plausibleApi credential in n8n, including the domain and any SSL settings.

Troubleshooting

  • Missing API Key: If you have not obtained an API key from Plausible, you will not be able to use this node. Contact Plausible support for access.
  • Invalid Domain: If the specified domain does not exist in your Plausible account, the node may return an error or empty result.
  • Authentication Errors: Incorrect or missing credentials will result in authentication failures. Double-check your API key and domain configuration.
  • SSL Certificate Issues: If using self-signed certificates, ensure the selfSigned option is set appropriately in your credentials.

Links and References

Discussion