Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 684 Bytes

api_key.md

File metadata and controls

28 lines (20 loc) · 684 Bytes
layout title parent grand_parent published
default
Set API Key
Python
API
false

Sets the API key (Optional)

datacommons.set_api_key(api_key)

Sets an environment variable "DC_API_KEY" to given api_key.

An API key can be provided to the API after importing the library, or set as an environment variable "DC_API_KEY".

For more details about how to get an API key and provide it to the Python Client API, please visit the Python library setup guide for more details.

Setting the API key is optional. Data Commons does not charge users, but uses the API key for understanding API usage.

Arguments

  • api_key (str) - The API key.