Skip to main content
Help us improve Python packaging – donate today!

When want to grab your data from Google Analytics: gagrab it.

Project Description Latest PyPI version Number of PyPI downloads


The official Google Analytics API is very powerfull and extensive. Sometimes, though, you just want to grab some data and have it returned in a clean format.

from service_account_auth import AuthorizedService
from gagrab import Grabber

my_ga_service = AuthorizedService('my-project-555', 'analytics', 'v3')
grabber = Grabber(my_ga_service)

data = grabber.query(
    metrics=['sessions', 'pageviews'],
    dimensions=['browser', 'userAgeBracket']


To install the latest release, type:

pip install gagrab

To install the latest code directly from source, type:

pip install git+git://

The gagrab.Grabber object requires a service_account_auth.AuthorizedService object during initialization. Installation and setup instructions for gclient-service-account-auth can be found on the github page


Full documentation is available at


MIT License (see LICENSE)

Release history Release notifications

This version
History Node


History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
gagrab-0.2.0.tar.gz (6.4 kB) Copy SHA256 hash SHA256 Source None Aug 15, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page