Plausible Goals API

The Goals API from Plausible — 2 operation(s) for goals.

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-goals-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

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

OpenAPI Specification

plausible-goals-api-openapi.yml Raw ↑
openapi: 3.0.3
info:
  title: Plausible Events CustomProps Goals API
  description: The Plausible Events API allows server-side and non-browser clients to send pageviews and custom events to Plausible.
  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
tags:
- name: Goals
paths:
  /api/v1/sites/goals:
    get:
      tags:
      - Goals
      summary: List goals
      operationId: listGoals
      responses:
        '200':
          description: A list of goals.
    put:
      tags:
      - Goals
      summary: Create or find a goal
      operationId: upsertGoal
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Goal'
      responses:
        '200':
          description: Goal created or found.
  /api/v1/sites/goals/{goal_id}:
    parameters:
    - in: path
      name: goal_id
      required: true
      schema:
        type: string
    delete:
      tags:
      - Goals
      summary: Delete goal
      operationId: deleteGoal
      responses:
        '200':
          description: Goal deleted.
components:
  schemas:
    Goal:
      type: object
      properties:
        site_id:
          type: string
        goal_type:
          type: string
          enum:
          - event
          - page
        event_name:
          type: string
        page_path:
          type: string