Plausible API
14 endpoints for Plausible, each at its own method and path, called with your API key. Open an endpoint for its inputs, examples and response.
- Base URL
- https://cotlet.dev/api/v1/plausible
- Connects with
- Your own Plausible account (Owner, Admin or Editor of the team to change settings; Owner or Admin to invite guests)
- Integration page
- Plausible
Read (8)
Return data and change nothing in the account.
| Endpoint | Description |
|---|---|
| GET | List the sites on the Sites page with their visitors in the last 24 hours. |
| GET | Read the top stats of a site dashboard for a date range, optionally compared with an earlier one. |
| GET | Read the Top Pages report: pages, entry pages or exit pages. |
| GET | Read the Sources report: channels, referrers or campaigns. |
| GET | List the goals set up in the site settings. |
| GET | Read the Goals report of the dashboard for a date range. |
| GET | List the shared links of a site from Visibility in the site settings. |
| GET | List the guests and pending invitations of a site from People in the site settings. |
Write (6)
Change the account. Calls marked Confirm wait for the user to approve them.
| Endpoint | Description |
|---|---|
| POST | Add a website to your Plausible team from the Sites page. |
| POST | Add a pageview or custom event goal in the site settings. |
| POST | Create a shared link to the dashboard under Visibility in the site settings. |
| POST | Invite a guest to one site from People in the site settings. |
| PUT | Turn weekly or monthly email reports on or off and add recipients in the site settings. |
| POST | Add a note to a date on the main traffic chart. |