Docs › Piwik Analytics API

Piwik provides access to all Web analytics reports via open APIs. You can pragmatically request your reports (Number of visits, Page URLs, Page titles, User settings, Search Engines, Keywords, Referers Websites, 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, serialized php, etc.).

Piwik also provides APIs to create, edit and delete Websites, Users, User privileges, Goals. It is therefore possible to manage Piwik from other softwares. Many users are using the API to automatically provide Piwik to their customers (You can create a User, Website, fetch the Javascript code from the API).

API help page in the Piwik User Interface

In Piwik, you can click the "API" link at the top of the screen to access the list of available APIs, and links to easily view the reports. The token_auth, used for API authentication, is also displayed on this page. Click to see the API page on the Piwik demo.

Each data table in Piwik reports also contains, at the bottom, a link to export the data. In one click, you can import any report in Excel or subscribe to the RSS feed.

Learn more about the Piwik Analytics APIs

Here is a list of relevant links that will you getting started with the Piwik API.

Read more about the various parameters you can use, the full list of functions, and learn how to customize the returned data set.

> Piwik API Reference

Check out a simple example to request the top 10 best keywords for yesterday for a given website.

> View API example

Learn how to call the API using Web HTTP APIs directly, but also how to use Piwik PHP objects directly.

> How to request data from the Piwik APIs?

You may also be interested in...

Entries (RSS)