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

Michael Manoochehri, April 23rd, 2009

Google AnalyticsGoogle 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.

Both comments and pings are currently closed.

39 Responses to “Google Analytics API Released – Now Get Your Web Site Metrics via Code”

April 23rd, 2009
at 9:47 pm
Comment by: 22 Totally Free Google Analytics API Resources » aimClear Search Marketing Blog

[...] Google Analytics API Released – Now Get Your Web Site Metrics via Code ProgramableWeb [...]

April 26th, 2009
at 1:23 pm
Comment by: 7 New APIs - Aviary, Google and ProgrammableWeb

[...] the Google Analytics API and the Google O3D API, both of which we reported on earlier this week (here on Google Analytics and here on Google O3D). The slick image editing service Aviary now offers an API, we’ve [...]

June 15th, 2009
at 1:50 am
Comment by: 35 Totally Free Google Analytics API Resources | rapid-DEV.net

[...] Google Analytics API Released – Now Get Your Web Site Metrics via Code ProgramableWeb [...]

February 27th, 2011
at 11:37 pm
Comment by: duşakabin

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

March 15th, 2011
at 5:56 am
Comment by: dogal tas

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.

March 16th, 2011
at 3:23 am
Comment by: devlet hastaneleri

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.

April 5th, 2011
at 5:58 am
Comment by: kimya

ClientLogin usernam combination through a POST request. Data is returned in syndication formats, allowing developers to utilize one of the many

April 25th, 2011
at 2:10 am
Comment by: hava perdeleri

consistency has been fully explained in the article is quite descriptive writing and sharing parts of your post I want to share all liked it very much thanks

April 25th, 2011
at 2:11 am
Comment by: hava perdesi

explained in this blog site is really impressive articles on a wide variety of subjects all the time thank you for existing unshared success will follow

April 25th, 2011
at 2:11 am
Comment by: hava perdesi

and explanatory text has been narrated was a great wide thanks to everyone who contributed

April 26th, 2011
at 11:36 pm
Comment by: hava perdesi fiyatlari

has been described has been impressive in terms of visual and descriptive about the site is always so difficult to find explanatory to people I know now I would recommend you all congratulations

April 26th, 2011
at 11:36 pm
Comment by: hava perdesi fiyatları

The topics discussed were very descriptive site Thank you all wish you continued success deserves praise

April 26th, 2011
at 11:37 pm
Comment by: hava perdesi fiyatları

Thank you, that your site is very tkileyici nice touch topics that up until a date and I congratulate you for the labor of a successful site

May 2nd, 2011
at 7:17 am
Comment by: bad accessoires

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

May 4th, 2011
at 12:29 am
Comment by: hava perdeleri

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…

May 4th, 2011
at 12:39 am
Comment by: hava perdeleri

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..

May 4th, 2011
at 3:52 am
Comment by: mantolama izolasyon

the quality is improving. However, a problem with machine translation

May 13th, 2011
at 12:49 pm
Comment by: rehau

Detonate a very powerful bomb, maybe even a nuclear bomb. The oil will no longer have a clear path to the surface and the leak will stop

May 20th, 2011
at 7:04 am
Comment by: dunya rehberi

then the book gives concrete examples of how to survive, which is why I recommend you read this book.” – Kazutomo Robert Hori, CEO – Cybird Japan

May 24th, 2011
at 5:56 am
Comment by: sorgula sorgulama

air travel, advertisingscience etc, where the tends to reflect about half of global spending of the given industry.

May 26th, 2011
at 3:49 am
Comment by: toyota cikma parca

Toyota Yaris 2009 Dizel aracımız hurda belgeli olup istediğiniz parcayı isteyebilirsiniz

June 21st, 2011
at 11:35 pm
Comment by: gelinlikler

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..

June 26th, 2011
at 9:37 pm
Comment by: santiago - diseño web

explained in this blog site is really impressive articles on a wide variety of subjects all the time thank you for existing unshared success will follow

June 28th, 2011
at 6:41 am
Comment by: hasan burkay

explained in this blog site is really impressive articles on a wide variety of subjects all the time thank you for existing unshared success will follow

June 29th, 2011
at 4:54 am
Comment by: ilahiler

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

July 8th, 2011
at 8:05 am
Comment by: pleksi

we actually have a carpet cleaning business, and that European countries are interested in just do not have a site related to the presentation of his work seo.

July 10th, 2011
at 2:22 am
Comment by: mermerci

[...] Are Magazines Doomed, Too?A post from BuzzMachine about the future of magazine publishing. [...]

July 11th, 2011
at 9:20 am
Comment by: pimapenci

If you like Cn3D, I wrote a manual for using it to learn about DNA structre along with a lot of educational activities to go along with it.

August 4th, 2011
at 3:49 am
Comment by: boyacı

XML syndication formats, allowing developers to utilize one of the many libraries designed to parse these formats

August 10th, 2011
at 1:15 am
Comment by: patlatma tas

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

September 2nd, 2011
at 4:04 pm
Comment by: sistem

When you adjust this gradient, start in the middle of the fold shape, hold Shift, and drag out to the bottom right of the fold at a 45 degree angle.

September 24th, 2011
at 4:04 am
Comment by: romeo

Please sign up for online Lottery Fun..http://bit.ly/qGaS3f ITS AWESOME GUYS…thanks

October 10th, 2011
at 12:53 am
Comment by: Beşiktaş evden eve Nakliyat

I like your site to my blog to a site that I am very happy Bylen

October 12th, 2011
at 10:48 pm
Comment by: Beyoğlu evden eve Nakliyat

blogs are very nice site, I like it.

January 16th, 2012
at 3:03 am
Comment by: hastane otomasyonu

you issues in this sense is obviously a very good site is full suits me very carefully, but with are more intensive follow-up will have mixed commentss and are you teacher mothers ?

January 23rd, 2012
at 6:14 am
Comment by: pimapen

Burada Seo halkları thanke. hause

April 25th, 2012
at 11:52 am
Comment by: Bilir

Thanks

September 16th, 2012
at 11:04 am
Comment by: toy

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.

September 25th, 2012
at 11:33 pm
Comment by: jigolo

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,

Follow the PW team on Twitter

ProgrammableWeb
APIs, mashups and code. Because the world's your programmable oyster.

John Musser
Founder, ProgrammableWeb

Adam DuVander
Executive Editor, ProgrammableWeb. Author, Map Scripting 101. Lover, APIs.