Skip to content
🐍 The official Python client library for Google's discovery based APIs.
Python Other
  1. Python 98.6%
  2. Other 1.4%
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Update github issue templates (#584) Nov 7, 2018
.kokoro Use kokoro for testing (#580) Oct 25, 2018
apiclient Make apiclient.sample_tools optional (#525) Jun 4, 2018
docs docs: fix link to API explorer (#760) Oct 4, 2019
googleapiclient Look for field 'detail' in error message. (#739) Aug 13, 2019
samples Fix TypeError: #732 (#742) Aug 19, 2019
tests Pass library and Python version in x-goog-api-client (#734) Aug 9, 2019
tools Version 1.3 release. Oct 15, 2014
.coveragerc Adding coveralls integration Mar 30, 2015
.gitignore Adding coveralls integration Mar 30, 2015
.gitmodules Drop oauth2client as a submodule. Oct 9, 2014
.hgignore Adding Python DFA Reporting API Samples. Nov 18, 2013
CHANGELOG Release 1.7.11 (#737) Aug 12, 2019 Add Code of Conduct Jul 2, 2018
LICENSE Version 1.3 release. Oct 15, 2014 Include tests in source distribution (#514) May 31, 2018
Makefile Use twine to upload the package to pypi. Sep 11, 2015 Remove compatibility badges. (#746) Aug 16, 2019 Use print() function in both Python 2 and Python 3 (#722) Jul 22, 2019 Replace remaining python2.4 shebang lines. Mar 2, 2015 2to3 -f print Nov 8, 2014 Announce deprecation of Python 2.7 (#603) Dec 14, 2018 Transition apiclient from googlecode to github. Apr 24, 2014
tox.ini tox.ini: Look for Python syntax errors and undefined names (#721) Jul 22, 2019

Google API Client

PyPI version

This is the Python client library for Google's discovery based APIs. To get started, please see the docs folder.

These client libraries are officially supported by Google. However, the libraries are considered complete and are in maintenance mode. This means that we will address critical bugs and security issues but will not add any new features.


See the docs folder for more detailed instructions and additional documentation.

Google Cloud Platform

For Google Cloud Platform APIs such as Datastore, Cloud Storage or Pub/Sub, we recommend using Cloud Client Libraries for Python which is under active development.


To install, simply use pip or easy_install:

pip install --upgrade google-api-python-client


easy_install --upgrade google-api-python-client

Supported Python Versions

Python 3.4, 3.5, 3.6 and 3.7 are fully supported and tested. This library may work on later versions of 3, but we do not currently run tests against those versions

Deprecated Python Versions

Python == 2.7

Third Party Libraries and Dependencies

The following libraries will be installed when you install the client library:

For development you will also need the following libraries:


Please see the contributing page for more information. In particular, we love pull requests - but please make sure to sign the contributor license agreement.

You can’t perform that action at this time.