Read this guide if
You can use directly Matomo (formerly Piwik)'s codebase to call the reporting API. Learn more in Querying the reporting API.
A Ruby client for the reporting API is available on Github: github.com/matomo-org/piwik-ruby-api.
A complete Python client implementation of the reporting API is available on Github at github.com/matomo-org/piwik-python-api.
A C# client implementation of the reporting API is available on Github at github.com/matomo-org/piwik-dotnet-api.
A NodeJS client is available on Github at github.com/sandfox/nodejs-piwik.
A client library for Laravel (a PHP framework) is available at github.com/RobBrazier/Laravel_Piwik.
You can view the complete list of clients and integrations of Matomo at piwik.org/integrate/.