Stores the provided API key in the DATACOMMONS_API_KEY environment variable, which is used for authentication in API calls.

dc_set_api_key(api_key)

Arguments

api_key

A string containing a valid Data Commons API key.

Value

Invisibly returns NULL. Called for its side effect of setting an environment variable.