Google Analytics API Released - Now Get Your Web Site Metrics via Code

Michael Manoochehri
Apr. 23 2009, 02:48AM EDT

Google Analytics, the feature-rich website analytics tool, has been available for free to web developers since 2006. However, access to the service has been completely browser-based, limiting the ability for developers to create new reporting tools, widgets, or clients for mobile devices. After a long wait, the popular service has finally opened up now that Google has announced the availability of the Analytics Data Export API (our Google Analytics API profile).

As the Data Export API website describes:

Use the Google Analytics Data Export API to download Analytics data in the form of Google Data API feeds. With the Data Export API, you can embed a customized dashboard in your website to display the most commonly viewed or requested page statistics for all your reports users. Or, you can integrate your Google Analytics Data with other website data that you might be tracking in a separate system.

Like many other Google APIs, the Analytics Data Export API does not require developers to sign up for a separate key. The API provides per-session token based authorization using OAuth, Google's AuthSub proxy, or a ClientLogin username-password combination through a POST request. Data is returned in standard XML syndication formats, allowing developers to utilize one of the many libraries designed to parse these formats. As Google's Code Blog mentions:

"There are no complicated developer tokens, you only need to request an authentication token. Second the Analytics Export API is free and available for all Google Analytics users. The Analytics API is a GData API which is based on the Atom 1.0 and RSS 2.0 syndication formats. This is the same API protocol for Google Calendar, Finance and Webmaster Tools. If you've used any of these APIs in the past, the Analytics Export API will look very familiar to you."

Once authenticated, the Data Export API allows read-only access to Analytics data through GET requests. Data can be filtered in many ways, including date range, country, AdWords Campaign, and much more. Google has also provided Data Export client libraries for Java, through the GData Java client library, and for JavaScript, in the GData Ajax API Loader.

Polaris, a cross-platform Google Analytics desktop app.

Google Code's Analytics page features links to several third party applications that use the Data Export API. Polaris, the first product from Desktop Reporting, is a cross platform desktop Google Analytics widget built using Adobe's AIR environment (more at our Polaris profile). The Data Export API can also be used to create clients for on-the-go administrators to access data from their mobile devices. Analytics app company youcalc has created an embeddable Key Metrics Change web widget that's designed to display well on the iPhone as a web app.

Key Metrics for Google Analytics

With the addition of this API and the new Google O3D API, there are now 50 Google APIs in our directory.

Michael Manoochehri

Comments

Comments(39)

User HTML

  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

mentioned issues have been following with interest your site contains very useful information indeed researching the net I found your site and saw that it has a very wide range of content and take care of yourself you wish you success in regards..

display the most commonly viewed or requested page statistics for all your reports users. Or, you can integrate your Google Analytics Data with other website data that you might be tracking in a separate system.

Everything is explained in detail relevant to the subject site is within the existing social networking sites I came across a very impressive skins and best regards I wish you continued success with your site, I found the opportunity to examine in detail...

Web stations and not charging terresrtial stations illegal? BTW, is it really true that terrestial stations pay nothing

The information covered in our articles on your site very useful and a level of success in continually trying to follow the threads from your site that I wish to continue..

has been described has been impressive in terms of visual and descriptive about the site is always so difficult to find explanatory you issues in this sense is obviously a very good site is full suits me very carefully,

I loved as much as you will receive carried out right here.
The sketch is tasteful, your authored material stylish. nonetheless, you command get bought an impatience over that you wish be delivering the following.
unwell unquestionably come more formerly again as exactly the same nearly very often inside case you shield this hike.