Clone this repo:


  1. 6ad1c8a Allow for specifying the page size by Robert O'Connor · 6 years ago master
  2. fd093c6 Add .editorconfig to mostly do the right thing with formatting. by Robert Spier · 6 years ago
  3. 4b42da3 document the use of yapf for formatting by Robert Spier · 6 years ago
  4. d7f9496 Some style improvements. by Robert O'Connor · 6 years ago
  5. 923345d data coming back is unicode, so make sure we encode to utf-8. otherwise errors (e.g., UnicodeEncodeError: 'ascii' codec can't encode character ...) can be encountered when buffered (e.g., while piping output to less). by Sean Morrison · 6 years ago

The Google Code-in API Client

API Documentation is at


./ --apikey APIKEY

./ --apikey APIKEY

./ --apikey APIKEY file.csv

Each script also supports other flags. Use --help to see them.


The client library requires requests to be installed.

You can install it with pip or easy_install (instructions) or install your operating system specific package. On Ubuntu or Debian, it is in the python-requests package.

API Keys

Organization Adminstrators can find their API key on their User Profile.

Code Style

We follow the Google Python Style Guide with a few modifications to match the Google internal version. The primary one is the use of 2 space indents.

Use yapf to keep the code formatted nicely. You can set up an auto-save hook in your editor, or run it manually:

# one time setup:
pip install yapf

# format files:
yapf -i *.py


To report bugs, please email