How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Matomo Events API

The Events API lets you request reports about your users' Custom Events. Events are tracked using the Javascript Tracker trackEvent() function, or using the [Tracking HTTP API](https://developer.matomo.org/api-reference/tracking-api). An event is defined by an event category (Videos, Music, Games...), an event action (Play, Pause, Duration, Add Playlist, Downloaded, Clicked...), and an optional event name (a movie name, a song title, etc.) and an optional numeric value. This API exposes the following Custom Events reports: getCategory lists the top Event Categories, getAction lists the top Event Actions, getName lists the top Event Names. These Events report define the following metrics: nb_uniq_visitors, nb_visits, nb_events. If you define values for your events, you can expect to see the following metrics: nb_events_with_value, sum_event_value, min_event_value, max_event_value, avg_event_value The Events.get* reports can be used with an optional &secondaryDimension parameter. Secondary dimension is the dimension used in the sub-table of the Event report you are requesting. Here are the possible values of secondaryDimension: For Events.getCategory you can set secondaryDimension to eventAction or eventName. For Events.getAction you can set secondaryDimension to eventName or eventCategory. For Events.getName you can set secondaryDimension to eventAction or eventCategory. For example, to request all Custom Events Categories, and for each, the top Event actions, you would request: method=Events.getCategory&secondaryDimension=eventAction&flat=1. You may also omit &flat=1 in which case, to get top Event actions for one Event category, use method=Events.getActionFromCategoryId passing it the &idSubtable= of this Event category.

Matomo Events API is one of 61 APIs that Matomo publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Event. The published artifact set on APIs.io includes an OpenAPI specification and API documentation.

This API exposes 9 operations across 9 paths, and defines 2 schemas. It is described by OpenAPI 3.2.0, at version 1.0.0.

Requests are made against a single base URL, https://demo-proxy.innocraft.cloud/.

9 operations 9 paths 2 schemas 9 GET

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
1.0.0
Base URL
https://{matomo_host}/index.php
Authentication
HTTP Bearer
Resource Areas
1

Authentication & Security 1

Matomo Events API declares 1 security scheme for authenticating requests. It accepts HTTP bearer tokens (MatomoToken). By default, every request must be authenticated.

  • MatomoToken — Paste your token generated from Personal Security. Swagger will send it as a Bearer token.

Paths & Operations 9

Across 9 paths, the API surfaces 9 operations — 9 GET. Each is listed below with its method, path, parameters, and response codes.

Events 9

The Events API lets you request reports about your users' Custom Events. Events are tracked using the Javascript Tracker trackEvent() function, or using the [Tracking HTTP API](ht…

GET
/index.php?module=API&method=Events.getCategory
Returns event metrics grouped by event category.
Events.getCategory 8 params → 200400401403404500default
GET
/index.php?module=API&method=Events.getAction
Returns event metrics grouped by event action.
Events.getAction 8 params → 200400401403404500default
GET
/index.php?module=API&method=Events.getName
Returns event metrics grouped by event name.
Events.getName 8 params → 200400401403404500default
GET
/index.php?module=API&method=Events.getActionFromCategoryId
Returns event actions for one event category row.
Events.getActionFromCategoryId 6 params → 200400401403404500default
GET
/index.php?module=API&method=Events.getNameFromCategoryId
Returns event names for one event category row.
Events.getNameFromCategoryId 6 params → 200400401403404500default
GET
/index.php?module=API&method=Events.getCategoryFromActionId
Returns event categories for one event action row.
Events.getCategoryFromActionId 6 params → 200400401403404500default
GET
/index.php?module=API&method=Events.getNameFromActionId
Returns event names for one event action row.
Events.getNameFromActionId 6 params → 200400401403404500default
GET
/index.php?module=API&method=Events.getActionFromNameId
Returns event actions for one event name row.
Events.getActionFromNameId 6 params → 200400401403404500default
GET
/index.php?module=API&method=Events.getCategoryFromNameId
Returns event categories for one event name row.
Events.getCategoryFromNameId 6 params → 200400401403404500default

Schemas 2

The contract defines 2 schemas that model the data the API accepts and returns. The most detailed are Error (3 properties), ErrorXml (1 property). Each schema is shown below with its type and property counts.

ErrorXml
object
Generic Matomo error payload in XML.
1 property
Error
object
Generic Matomo error payload.
3 properties 2 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

matomo-events-api-openapi.yml Raw ↑

Other APIs Matomo publishes across the network.

Matomo Reporting API (index.php entrypoint)
Matomo Tracking API (matomo.php entrypoint)
Matomo Ab Testing API
Matomo Actions API
Matomo Activity Log API
Matomo Advertising Conversion Export API
Matomo Annotations API
Matomo API
Matomo API Reference API
Matomo Bandwidth API
Matomo Cohorts API
Matomo Contents API
Where this information came from

This is an independent, third-party profile of Matomo Events API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.