Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Cuando una API requiere una clave de API y está asociada a un proyecto deGoogle Cloud al que no tienes acceso, dispones de las siguientes opciones para obtener una clave de API:
Opción 1: Pídele a un administrador de seguridad que cree una clave de API para ti.
Opción 2: Pídele a un administrador de seguridad que te otorgue acceso al proyecto para que puedas crear una clave de API en el mismo proyecto que contiene la API a la que está asociada.
Opción 3: Pídele a un administrador de seguridad que te otorgue acceso para habilitar la API en tu propio proyecto de Google Cloud para que puedas crear una clave de API.
Si usaste la opción 3 y le pediste a alguien que te otorgara acceso para habilitar la API, sigue los pasos que se indican a continuación para habilitar la API en tu propio proyecto de Google Cloud.
Para habilitar una API, sigue estos pasos:
Console
En la consola de Google Cloud , ve a APIs y servicios para tu proyecto.
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Información o código de muestra incorrectos","incorrectInformationOrSampleCode","thumb-down"],["Faltan la información o los ejemplos que necesito","missingTheInformationSamplesINeed","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2025-09-04 (UTC)"],[[["\u003cp\u003eIf an API key is needed for an API in a Google Cloud project you lack access to, you can request a security admin to create the key for you.\u003c/p\u003e\n"],["\u003cp\u003eAlternatively, a security admin can grant you project access to create your own API key within the project housing the API.\u003c/p\u003e\n"],["\u003cp\u003eA security admin can also give you permission to enable the API in your own Google Cloud project, enabling you to then create an API key.\u003c/p\u003e\n"],["\u003cp\u003eTo enable an API, you can use either the Google Cloud console or the \u003ccode\u003egcloud\u003c/code\u003e command-line tool, navigating to APIs & Services or using \u003ccode\u003egcloud services enable\u003c/code\u003e, respectively.\u003c/p\u003e\n"]]],[],null,["# Enabling an API in your Google Cloud project\n\n\u003cbr /\u003e\n\nWhen an API requires an API key and the API is associated with a\nGoogle Cloud project that you don't have access to, you have the\nfollowing options to obtain an API key:\n\n- **Option 1**: Ask a security admin to create an API key for you.\n\n- **Option 2** : Ask a security admin to\n [grant you access to the project](/endpoints/docs/frameworks/control-api-access)\n so that you can create an API key in the same project that the API is\n associated with.\n\n- **Option 3** : Ask a security admin to\n [grant you access to enable the API](/endpoints/docs/frameworks/control-api-callers)\n in your own Google Cloud project so that you can create an API key.\n\nBefore you begin\n----------------\n\n[Make sure that billing is enabled for your Google Cloud project](/billing/docs/how-to/verify-billing-enabled#confirm_billing_is_enabled_on_a_project).\n\nEnabling an API\n---------------\n\nIf you used option 3 and asked someone to grant you access to enable the\nAPI, follow the steps below to enable the API in your own Google Cloud\nproject.\n\nTo enable an API: \n\n### Console\n\n1. In the Google Cloud console, go to APIs \\& services for your project. [Go to APIs \\& Services](https://console.cloud.google.com/apis)\n\n2. On the **Library** page, click **Private APIs**. If you don't see the API listed, that means you haven't been granted access to enable the API.\n3. Click the API you want to enable. If you need help finding the API, use the search field.\n4. In the page that displays information about the API, click **Enable**.\n\n### gcloud\n\n1. Enter the following to display the project IDs for your\n Google Cloud projects:\n\n gcloud projects list\n\n2. Using the applicable project ID from the previous step, set the default\n project to the one in which you want to enable the API:\n\n ```\n gcloud config set project YOUR_PROJECT_ID\n ```\n3. Get a list of services that you can enable in your project:\n\n gcloud services list --available\n\n If you don't see the API listed, that means you haven't been granted\n access to enable the API.\n4. Using the applicable service name from the previous step, enable the\n service:\n\n ```\n gcloud services enable SERVICE_NAME\n ```\n\nFor more information on the preceding commands, see the\n[`gcloud` reference](/sdk/gcloud/reference)."]]