Clone this repo:
  1. c8b4b5e Merge "http_request: Reset the content_reader in AttemptToExecute()" by Mitch Rudominer · 2 years ago master
  2. 8cac103 http_request: Reset the content_reader in AttemptToExecute() by Mitch Rudominer · 2 years ago
  3. 842f924 Adds generated bigquery API. by Mitch Rudominer · 2 years, 2 months ago
  4. 322fa49 More edits to CMake file for Cobalt build. by Mitch Rudominer · 2 years, 3 months ago
  5. b4bfc4e Edits to CMake files for Cobalt build. by Mitch Rudominer · 2 years, 3 months ago

Google API C++ Client

The current installation has only been tested on Unix/Linux systems; this release does not support Windows yet. The following sequence of actions should result in a turnkey build of the client libraries from the source code given only:



Build Steps:

mkdir build && cd build
../external_dependencies/install/bin/cmake ..

Running the Samples

See src/samples/

Building Clients for Other APIs

To download additional APIs specialized for individual Google Services see: and use this precise version of the apis client generator:

Here's an example invocation:

$ python apis-client-generator/src/googleapis/codegen/ --api_name=drive --api_version=v2 --language=cpp --output_dir=/tmp/generated

It should be possible to build this from existing installed libraries. However, the build scripts are not yet written to find them. For initial support simplicity we download and build all the dependencies in the script for the time being as a one-time brute force preparation.

Getting Help

If you have problems, questions or suggestions, contact: The Google group at

Or you may also ask questions on StackOverflow at: with the tag google-api-cpp-client


This SDK is in maintanance mode. The patches being made are mostly for portability and/or to remove unneeded pieces.

We are not set up to accept pull requests at this time, nor will be in the forseable future. Please submit suggestions as issues.

About the branches

The master branch is where development is done. It usually is compatible with the generated libraries available from from On occasion it gets aheaad of those. It usually catches up in a few days.

The latest generated libraries for any Google API is available automatically from

For example, for Drive/v2, you would use