Stay organized with collections Save and categorize content based on your preferences.
When an API requires an API key and the API is associated with a Google Cloud project that you don't have access to, you have the following options to obtain an API key:
Option 1: Ask a security admin to create an API key for you.
Option 2: Ask a security admin to grant you access to the project so that you can create an API key in the same project that the API is associated with.
Option 3: Ask a security admin to grant you access to enable the API in your own Google Cloud project so that you can create an API key.
Make sure that billing is enabled for your Google Cloud project.
Enabling an APIIf you used option 3 and asked someone to grant you access to enable the API, follow the steps below to enable the API in your own Google Cloud project.
To enable an API:
ConsoleEnter the following to display the project IDs for your Google Cloud projects:
gcloud projects list
Using the applicable project ID from the previous step, set the default project to the one in which you want to enable the API:
gcloud config set project YOUR_PROJECT_ID
Get a list of services that you can enable in your project:
gcloud services list --available
If you don't see the API listed, that means you haven't been granted access to enable the API.
Using the applicable service name from the previous step, enable the service:
gcloud services enable SERVICE_NAME
For more information on the preceding commands, see the gcloud
reference.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-07 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["This content outlines options for obtaining an API key when the API is associated with a Google Cloud project you lack direct access to."],["There are three main options for getting an API key: requesting a security admin to create one, gaining project access to create one yourself, or gaining access to enable the API in your own project."],["If you choose to enable the API in your own Google Cloud project, you can do so through the Google Cloud console or by using `gcloud` commands."],["If you cannot find the API in either the Console's Private API list or the `gcloud services list --available` output, it means you have not been granted the necessary access."]]],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4