organization | category | brand_color | display_name | short_name | description | og_description | og_image | icon_url | |
---|---|---|---|---|---|---|---|---|---|
francois2metz |
|
#4052c7 |
Plausible |
plausible |
Steampipe plugin for querying statistics from Plausible. |
Query Plausible with SQL! Open source CLI. No DB required. |
/images/plugins/francois2metz/plausible-social-graphic.png |
/images/plugins/francois2metz/plausible.svg |
Plausible is an analytics company.
Steampipe is an open source CLI to instantly query cloud APIs using SQL.
For example:
select
time,
visitors
from
plausible_timeseries
where
domain='example.net'
and period='6mo'
and interval='month'
+------------+----------+
| time | visitors |
+------------+----------+
| 2022-04-01 | 453 |
| 2022-06-01 | 358 |
| 2022-07-01 | 556 |
| 2022-09-01 | 705 |
| 2022-05-01 | 488 |
| 2022-08-01 | 677 |
+------------+----------+
Download and install the latest Plausible plugin:
steampipe plugin install francois2metz/plausible
Installing the latest plausible plugin will create a config file (~/.steampipe/config/plausible.spc
) with a single connection named plausible
:
connection "francois2metz/plausible" {
plugin = "francois2metz/plausible"
# Go to https://plausible.io/settings/api-keys/new
# token = ""
# Base URL to the Plausible API when using a custom installation
# base_url = ""
}
You can also use environment variables:
PLAUSIBLE_TOKEN
: Your plausible API KeyPLAUSIBLE_BASE_URL
: The plausible base API URL