This page is a hub space linking to the Analytics API guides.

There are two main APIs in Matomo (Piwik)

  • Analytics Web API: used to request all Matomo (Piwik) reports and to manage (add, update, delete) websites, users, permissions, email reports, etc.
  • Tracking Web API: used to record data in Matomo (Piwik) using the JavaScript Code, or using the other languages

You can use the Analytics API to programmatically request reports (number of visits, page URLs, page titles, user settings, search engines, keywords, referrer websites, user browsers, etc.) for a list of websites, and a given date and period (day, week, month, year). The data can be requested in any format: xml, csv, json, Excel, etc. When you’re using Matomo (Piwik) you can export the data of any report by clicking the “Export” icon below each report.

Matomo (Piwik) also provides APIs to create, edit and delete websites, users, user privileges, goals and PDF reports. Many users are using the API to automatically provide Matomo to their customers’ websites.

Learn more in the Matomo (Piwik) API documentation pages:

This page was about the Analytics Reporting & Management APIs. You may be find the Tracking API Guide useful.

Any questions?

Many answers and more information about Matomo you can find here:

We are social

Follow us: