Google Analytics

Core Reporting API Client Libraries & Sample Code

Along with the client libraries, this page contains reference documentation and sample code to help you create apps in your chosen language:

For more examples, see the Articles page.

Google Data Libraries

This section contains reference, source code, and examples for libraries supported by the Google Analytics API team.

  1. Java


    Client Library
    Documentation
    1. JavaDoc Service Reference
    2. JavaDoc Response Reference
    Reference Examples
    1. Data Feed
    General Examples
    1. GA in Google Spreadsheets
  1. Python


    Client Library
    Documentation
    1. PyDoc Client Reference
    2. PyDoc Response Reference
    Reference Examples
    1. Data Feed
    General Examples
    1. Visualizing Advanced Segments
    2. Client Side Authorization
    3. Auto-pagination
 

These libraries are developed by the Google Data team. Revisions are not coordinated with revisions to the libraries supported by the Google Analytics team.

  1. .NET


    Client Library
    Reference Examples
    1. Data Feed
  1. Objective C


    Client Library
    General Examples
    1. Fetching Data
 

Other Libraries

The code in this section is developed by Google Analytics users. Google makes no promises or representations about their performance, quality, or content.

  1. Ruby

    1. Garb By Viget Labs
    2. Gattica By Rob Cameron
  1. PHP

    1. PHP5 OOP Interface By Stig Manning
  1. Python

    1. Python GA Library By Clint Ecker


Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.