This page describes how to list the APIs and services that are enabled or available in a Google Cloud project. The list of available or enabled APIs and services can contain both public Google Cloud services such as Pub/Sub, and any APIs and services shared privately with you, such as services created using Cloud Endpoints. For more information on the differences between public and private APIs and services, see Public and Private Services.
For most operational use cases, the simplest way to list services
is to use Google Cloud Console. If you need to create scripts, you can also use the
gcloud
command line interface. If you need to program against the
Service Usage API, we recommend that you use one of our provided
client libraries. To experiment with the API,
you can follow the alternative instructions in this guide and use the curl
command to test the API without setting up a full application development
environment.
Before you begin
To list the enabled and available APIs and services you need:
- A Cloud project. To learn how to create a Cloud project, see Creating and Managing Projects.
- The correct Identity and Access Management permissions. To learn about the IAM requirements for Service Usage, see Access Control.
- If you want to run the
gcloud
command line examples in this guide, you need to install the Cloud SDK. - If you want to use the
curl
examples in this guide, make sure you follow the instructions to complete the initial setup in Getting Started. These steps include defininggcurl
, which is an authenticated alias for the standardcurl
command, and defining the environment variablePROJECT_NUMBER
.
Listing available services
console
To list the APIs and services available to you in a project:
- Go to the Cloud Console
API Library
page.
Go to the API Library page Select your Cloud project by performing one of the following:
Click on a Cloud project under Select a recent project.
Use the Cloud project browser by performing the following steps:
- Click Select project to open the Cloud project browser.
- Find your project and then click on the Cloud project name.
- Click Open to open the project.
The API Library screen appears. You can search for or scroll through available APIs from this screen.
gcloud
Run the following command to list the APIs and services available to you in your current project:
gcloud services list --available
The results include any services that have already been enabled, as well as services that are available to be enabled for the current project. The command produces output similar to the following:
NAME TITLE places-backend.googleapis.com Google Places API Web Service clouderrorreporting.googleapis.com Stackdriver Error Reporting API analyticsreporting.googleapis.com Google Analytics Reporting API youtube.googleapis.com YouTube Data API v3 adsense.googleapis.com AdSense Management API sqladmin.googleapis.com Google Cloud SQL API genomics.googleapis.com Genomics API adexchangebuyer.googleapis.com Ad Exchange Buyer API II ...
curl
To list available services, call the
services.list
method.
Run the following command to list the available APIs and services in your project:
gcurl "https://serviceusage.googleapis.com/v1/projects/${PROJECT_NUMBER}/services"
The result includes all public services, all services for which the calling
user has the servicemanagement.services.bind
permission, and all services
that have already been enabled on the project.
Listing enabled services
console
To list the enabled APIs and services in a project:
- Go to the Cloud Console
API Dashboard
page.
go to the API Dashboard page Select your Cloud project by performing one of the following:
Click on a Cloud project under Select a recent project.
Use the Cloud project browser by performing the following steps:
- Click Select project to open the Cloud project browser.
- Find your project and then click on the Cloud project name.
- Click Open to open the project.
The APIs & Services page appears. You can find the list of APIs enabled in your Cloud project in the table on this page.
gcloud
Run the following command to list the enabled APIs and services in your current project:
gcloud services list
The command produces output similar to the following:
NAME TITLE pubsub.googleapis.com Google Cloud Pub/Sub API bigquery.googleapis.com BigQuery API cloudtrace.googleapis.com Stackdriver Trace API servicemanagement.googleapis.com Google Service Management API monitoring.googleapis.com Stackdriver Monitoring API storage-api.googleapis.com Google Cloud Storage JSON API logging.googleapis.com Stackdriver Logging API clouddebugger.googleapis.com Stackdriver Debugger API ...
curl
To list enabled services, call the
services.list
method with the state:ENABLED
filter.
Run the following command to list the enabled APIs and services in your project:
gcurl "https://serviceusage.googleapis.com/v1/projects/${PROJECT_NUMBER}/services?filter=state:ENABLED"
Listing disabled services
To list disabled services, call the
services.list
method with the state:DISABLED
filter.
Run the following command to list the disabled APIs and services in your project:
gcurl "https://serviceusage.googleapis.com/v1/projects/${PROJECT_NUMBER}/services?filter=state:DISABLED"
Next steps
Follow Enabling and Disabling Services to enable or disable services in your Cloud projects.