January '08

18

Posted by

in About, Development

Comments: 13 Comments

The best Web Analytics API: Piwik API

The mission statement of Piwik is « To create, as a community, the leading international open source web analytics application, providing access to all functionality through open components and open APIs. »

Open APIs:” It is very important for us that Piwik’s users can access their data very easily. The problem with a service such as Google Analytics is that you don’t own your data, you can only access it through the limited user interface the service provides. During the last weeks we’ve worked hard to implement and finalize the API concept in Piwik.

Piwik APIs makes it easy to get:

  • the search engines keywords used during the last week
  • the top 5 browsers of the current year
  • the top 10 pages of your website that contain the string “blog”, ordered by number of visits ascending
  • the list of the websites registered in Piwik or the list of users that have an admin access on the website no 4
  • and a lot more!

I’ve added a tutorial “How to get the top 10 keywords of yesterday in XML?” It’s as simple as this url. Of course with PHP or any other langage you can very easily print out the result with the colors/fonts you want (see an example on this page and the example source code). You can request the data in XML / JSON / PHP / CSV / as a RSS feed / HTML.

See the full documentation on the API reference page. Many examples are provided.

With the API you can build widgets, display your web statistics in your blog sidebar, access piwik data from any other dashboard, etc.

If you have examples of people using the APIs leave a comment. Happy coding!

About author
piwik team member

Piwik 团队

Piwik 理念 «通过一个社区,创建先进的国际性开源网站分析平台,让每个用户完全控制自己的数据。»

如果可以,请您现在就为了 Piwik 的未来捐款,或者通过集资平台来赞助一个对您有用的新功能。

Like what you read?

Subscribe to our rss feed: Posts or you can Suggest a topic to write about in the blog or See list of Features

  1. December 9, 2010 5:06 am

    Hey guys
    If anyone is interested in an example of a Piwik API in action check out this site: github.com/wingdspur/codeigniter-piwik

    Just copy and paste i don’t think links are allowed.
    Cheers

  2. December 2, 2010 9:36 pm

    Really good API – its so easy to handle it!

  3. September 30, 2010 12:52 pm

    For once ,everyone from politicians to citizens to the media is united. Uphold peace — that’s the mantra they all chant while they wait for a three-bench judge to pronounce possibly the final verdict on the 60-year long dispute over the land.

  4. Dailymissed Says:

    July 27, 2010 12:12 pm

    awesome tutorial…have to agree with others

  5. Angela Says:

    May 13, 2010 6:40 pm

    Interesting post!!

  6. Maya Says:

    May 8, 2010 4:07 pm

    This is just awsome.

  7. Robert ochoa Says:

    February 10, 2010 7:34 pm

    Hello to all I can

  8. January 6, 2010 8:52 pm

    We do agree that Piwik is not yet an alternative in GA for some user as it doesn’t provide the advanced analytics features. We however believe that the current Piwik architecture makes it possible to add these features. We are looking for developers willing to work on piwik to make these possible. We would be happy to help on functional spec, design decisions, etc. :)

    John,

  9. VIPSoft Says:

    November 18, 2009 6:50 pm

    Jeff: you have to point your browser at the piwik folder on your web server to begin the installation process. Return to the piwik folder afterwards to access the dashboard.

    If you require further assistance, please use the support forum at http://forum.piwik.org

  10. Jeff Says:

    October 24, 2009 4:12 am

    And the Brand Newbie Million dollar question of the day is…

    Uh, I’ve managed to create an MySQL database, upload the files, and add the code at my footers…

    So…how do I access the dashboard to see the data??

    :)

  11. September 23, 2009 7:54 pm

    This is just awsome. I’ll have to do a write up on it.

  12. Matthieu Says:

    April 24, 2008 1:12 am

    Pos, we do agree that Piwik is not yet an alternative in GA for some user as it doesn’t provide the advanced analytics features. We however believe that the current Piwik architecture makes it possible to add these features. We are looking for developers willing to work on piwik to make these possible. We would be happy to help on functional spec, design decisions, etc. :)

  13. Matthieu Says:

    March 26, 2008 6:00 pm

    Brian, I guess you have to select today’s statistics in the calendar. By default yesterday’s statistics are displayed.

Leave a Reply

Post Comment