Matomo reporting API documentation with Swagger/OpenAPI.
Read and interact with Matomo API through Swagger UI.
This plugin brings OpenAPI standard to your Matomo Instance.
This plugin add a page for Super Users only in Administration > Platform > Swagger
You can embed swagger in your dev tools using the iframe :
<!-- Auto resize iframe height (optional) -->
<script>
function resizeIframe(obj) {
setInterval(() => {
obj.style.height = obj.contentWindow.document.documentElement.scrollHeight + 'px';
}, 500);
}
</script>
<!-- Swagger UI (required) -->
<iframe src="/index.php?module=Swagger&action=iframe" width="100%" onload="resizeIframe(this);"></iframe>
The OpenAPI JSON configuration file is accessible via API using this URL :
/index.php?module=API&format=json&method=Swagger.getOpenApi
How to install this plugin
This plugin is available in the official marketplace of Matomo. You have to install the same way as other plugins
Is the plugin active for all Matomo users in my instance ?
No, only Super Users will have access to Swagger
How can I contribute to this plugin ?
You can help me develop this plugin by contacting me. You can also create the project and request an integration. Any way you consider legitimate to contribute is welcome.
How long this plugin will be maintained ?
As long as possible, I have many project to maintain, I'm the first user of this plugin and I use Matomo on many project, if I see errors, I'll patch this plugin faster as possible !
What does this plugin do?
It allows you to generate a OpenAPI standard documentation for Matomo API based on your configuration.