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.
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 - Click Select to choose the GCP project.
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
project number 357084163378
:
gcurl https://serviceusage.googleapis.com/v1/projects/357084163378/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 - Click Select to choose the GCP project.
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
project number 357084163378
:
gcurl https://serviceusage.googleapis.com/v1/projects/357084163378/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
project number 357084163378
:
gcurl https://serviceusage.googleapis.com/v1/projects/357084163378/services?filter=state:DISABLED
Next steps
Follow Enabling and Disabling Services to enable or disable services in your Cloud projects.