How do I use the Matomo Reporting API?

The Matomo Reporting API lets you extract any data from Matomo via HTTP requests. Call https://your-matomo.com/?module=API&method=VisitsSummary.get&idSite=1&period=day&date=today&format=json&token_auth=YOUR_TOKEN to get visit data.

The API supports all report types, formats (JSON, XML, CSV), and filtering options. Generate your API token in Matomo under Administration > Personal > Security. Full documentation is available at developer.matomo.org.

Have some questions? We have your solution.