1# API Keys 2 3When calling APIs that do not access private user data, you can use simple API keys. These keys are used to authenticate your application for accounting purposes. The Google Developers Console documentation also describes [API keys](https://developers.google.com/console/help/using-keys). 4 5> Note: If you do need to access private user data, you must use OAuth 2.0. See [Using OAuth 2.0 for Installed Applications](oauth-installed.md), [Using OAuth 2.0 for Server to Server Applications](oauth-server.md), and [Using OAuth 2.0 for Web Server Applications](oauth-web.md) for more information. 6 7## Using API Keys 8 9To use API keys, pass them to the `build()` function when creating service objects. For example: 10 11```py 12books_service = build('books', 'v1', developerKey='api_key') 13``` 14 15All calls made using that service object will include your API key. 16