So far, we have looked at a couple of great examples of embedding Piwik in another application. And we have used the code that Piwik gives us to embed widgets on other web pages. But we haven't really looked at all that we can do with this analytics API. If we want to do a something a little bit different with the data, or use charts and graphs that are a different style to fit in with our project, we will need to do a bit more.
With the Piwik analytics API, you can programmatically request reports from Piwik. This API is very flexible and will return the data you request in the following formats: