Plausible Sites API

The Sites API from Plausible — 2 operation(s) for sites.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 5

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /api/v1/sites List my Plausible sites · List sites #
Ask an LLM
“Which websites are connected to my Plausible account?”
“Can I list sites added after a certain date?”
Tell an agent
List my sites.
Show sites added after {after}.
POST /api/v1/sites Add a new site · Create site #
Ask an LLM
“How do I add a new website to my account?”
“Can I set the timezone and tracker script when creating a site?”
Tell an agent
Add {domain} as a new site.
Create site {domain} in timezone {timezone}.
GET /api/v1/sites/{site_id} Get a site · Get site #
Ask an LLM
“What timezone and tracker settings does one of my sites have?”
“Can I look up a site by its ID?”
Tell an agent
Get site {site_id}.
Show the tracker script configuration of site {site_id}.
PUT /api/v1/sites/{site_id} Update a site · Update site #
Ask an LLM
“Can I change the domain or tracker script of an existing site?”
“How do I update a site's settings?”
Tell an agent
Change the domain of site {site_id} to {domain}.
Update tracker script settings of site {site_id}.
DELETE /api/v1/sites/{site_id} Delete a site · Delete site #
Ask an LLM
“How do I remove a site from my account?”
“Can I delete a site by its ID?”
Tell an agent destructive · confirm first
Delete site {site_id}.
Remove the site {site_id} from my account.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/plausible:plausible-sites-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

plausible-sites-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Plausible Sites API
  description: The Plausible Sites API enables developers to programmatically manage sites, teams, goals, custom properties, shared links, and guest access within their Plausible account.
  version: 1.0.0
  contact:
    name: Plausible Support
    url: https://plausible.io/contact
  license:
    name: AGPL-3.0
    url: https://github.com/plausible/analytics/blob/master/LICENSE.md
servers:
- url: https://plausible.io
  description: Plausible Cloud
security:
- bearerAuth: []
tags:
- name: Sites
paths:
  /api/v1/sites:
    get:
      tags:
      - Sites
      summary: List sites
      operationId: listSites
      parameters:
      - $ref: '#/components/parameters/After'
      - $ref: '#/components/parameters/Before'
      - $ref: '#/components/parameters/Limit'
      responses:
        '200':
          description: A page of sites.
    post:
      tags:
      - Sites
      summary: Create site
      operationId: createSite
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SiteCreate'
      responses:
        '200':
          description: Site created.
  /api/v1/sites/{site_id}:
    parameters:
    - $ref: '#/components/parameters/SiteId'
    get:
      tags:
      - Sites
      summary: Get site
      operationId: getSite
      responses:
        '200':
          description: Site details.
    put:
      tags:
      - Sites
      summary: Update site
      operationId: updateSite
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SiteUpdate'
      responses:
        '200':
          description: Site updated.
    delete:
      tags:
      - Sites
      summary: Delete site
      operationId: deleteSite
      responses:
        '200':
          description: Site deleted.
components:
  schemas:
    SiteUpdate:
      type: object
      properties:
        domain:
          type: string
        tracker_script_configuration:
          $ref: '#/components/schemas/TrackerConfig'
    SiteCreate:
      type: object
      required:
      - domain
      properties:
        domain:
          type: string
        timezone:
          type: string
          example: Etc/UTC
        tracker_script_configuration:
          $ref: '#/components/schemas/TrackerConfig'
    TrackerConfig:
      type: object
      properties:
        outbound_links:
          type: boolean
        file_downloads:
          type: boolean
        form_submissions:
          type: boolean
        track_404_pages:
          type: boolean
        revenue_tracking:
          type: boolean
        hash_based_routing:
          type: boolean
  parameters:
    Before:
      in: query
      name: before
      schema:
        type: string
    Limit:
      in: query
      name: limit
      schema:
        type: integer
    After:
      in: query
      name: after
      schema:
        type: string
    SiteId:
      in: path
      name: site_id
      required: true
      schema:
        type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key