Listing Services

This page describes how to list the APIs and services that are enabled or available in a Google Cloud Platform project. The list of available or enabled APIs and services can contain both public Google Cloud Platform services such as Cloud 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 Platform 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:

Listing available services

console

To list the APIs and services available to you in a project:

  1. Go to the GCP Console API Library page.
    go to the API Library page
  2. 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 alpha 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:

  1. Go to the GCP Console API Dashboard page.
    go to the API Dashboard page
  2. Click Select to choose the GCP project.

gcloud

Run the following command to list the enabled APIs and services in your current project:

gcloud alpha services list

The command produces output similar to the following:

NAME                                              TITLE
pubsub.googleapis.com             Google Cloud Pub/Sub API
bigquery-json.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 GCP projects.

Was this page helpful? Let us know how we did: