The APIs let you programmatically request any analytics reports from Matomo, for one or several websites and for any given date and period and in any format (CSV, JSON, XML, etc.).
Matomo also provides Management APIs to create, update and delete websites, users, user privileges, custom dashboards, email reports, goals, funnels, custom dimensions, alerts, videos, heatmaps, session recordings and custom segments.
Use it to:
- Automate tasks to save time
- For example automatically create/delete sites or users when you create a new site in a CMS
- Fetch any report information to embed and process this data where you need it
- Integrate your data into other dashboards
Use case: fetching key data from API. You can call the API to fetch KPIs or key reports into your company dashboards or reports (eg. automated using a BI tool or even a spreadsheet). When integrating with a CMS, Matomo reports can be embedded in the CMS dashboard, and in each page some KPIs about the page will be shown (e.g. visits so far; average time spent reading, historical graph, etc.). See eg. WP-Matomo which does this quite nicely using the API.