Go Cloud Client Libraries

The Cloud Client Libraries are the recommended way to access Google Cloud APIs programmatically. The Cloud Client Libraries support accessing Google Cloud services in a way that significantly reduces the boilerplate code you have to write. The libraries provide high-level API abstractions so they're easier to understand. They embrace idioms of the language, work well with the standard library, and integrate better with your codebase.

For more information about client libraries for Cloud APIs, see Cloud Client Libraries explained.

Click an API to find out how to use it in Go:

Libraries
AI Platform cloud.google.com/go/aiplatform/apiv1
cloud.google.com/go/aiplatform/apiv1beta1
AI Platform Data Labeling Service cloud.google.com/go/datalabeling/apiv1beta1
API Gateway cloud.google.com/go/apigateway/apiv1
API Keys API cloud.google.com/go/apikeys/apiv2
Access Approval cloud.google.com/go/accessapproval/apiv1
Access Context Manager cloud.google.com/go/accesscontextmanager/apiv1
Address Validation API cloud.google.com/go/maps/addressvalidation/apiv1
Advisory Notifications cloud.google.com/go/advisorynotifications/apiv1
AlloyDB for PostgreSQL cloud.google.com/go/alloydb/apiv1
cloud.google.com/go/alloydb/apiv1alpha
cloud.google.com/go/alloydb/apiv1beta
Analytics Admin API cloud.google.com/go/analytics/admin/apiv1alpha
Analytics Hub API cloud.google.com/go/bigquery/analyticshub/apiv1
cloud.google.com/go/bigquery/dataexchange/apiv1beta1
Apigee Connect API cloud.google.com/go/apigeeconnect/apiv1
Apigee Registry cloud.google.com/go/apigeeregistry/apiv1
App Engine Admin API cloud.google.com/go/appengine/apiv1
App Hub cloud.google.com/go/apphub/apiv1
Artifact Registry cloud.google.com/go/artifactregistry/apiv1
cloud.google.com/go/artifactregistry/apiv1beta2
Assured Workloads cloud.google.com/go/assuredworkloads/apiv1
cloud.google.com/go/assuredworkloads/apiv1beta1
AutoML cloud.google.com/go/automl/apiv1
cloud.google.com/go/automl/apiv1beta1
Backup and DR cloud.google.com/go/backupdr/apiv1
Backup for GKE cloud.google.com/go/gkebackup/apiv1
Bare Metal Solution cloud.google.com/go/baremetalsolution/apiv2
Batch cloud.google.com/go/batch/apiv1
BeyondCorp Enterprise cloud.google.com/go/beyondcorp/appconnections/apiv1
cloud.google.com/go/beyondcorp/appconnectors/apiv1
cloud.google.com/go/beyondcorp/appgateways/apiv1
cloud.google.com/go/beyondcorp/clientconnectorservices/apiv1
cloud.google.com/go/beyondcorp/clientgateways/apiv1
BigLake API cloud.google.com/go/bigquery/biglake/apiv1
cloud.google.com/go/bigquery/biglake/apiv1alpha1
BigQuery cloud.google.com/go/bigquery
BigQuery Connection API cloud.google.com/go/bigquery/connection/apiv1
cloud.google.com/go/bigquery/connection/apiv1beta1
BigQuery Data QnA cloud.google.com/go/dataqna/apiv1alpha
BigQuery Data Transfer Service cloud.google.com/go/bigquery/datatransfer/apiv1
BigQuery DataPolicy API cloud.google.com/go/bigquery/datapolicies/apiv1
cloud.google.com/go/bigquery/datapolicies/apiv1beta1
BigQuery Migration cloud.google.com/go/bigquery/migration/apiv2
cloud.google.com/go/bigquery/migration/apiv2alpha
BigQuery Reservation API cloud.google.com/go/bigquery/reservation/apiv1
BigQuery Storage cloud.google.com/go/bigquery/storage/apiv1
cloud.google.com/go/bigquery/storage/apiv1alpha
cloud.google.com/go/bigquery/storage/apiv1beta1
cloud.google.com/go/bigquery/storage/apiv1beta2
Bigtable cloud.google.com/go/bigtable
cloud.google.com/go/bigtable/apiv2
Binary Authorization cloud.google.com/go/binaryauthorization/apiv1
cloud.google.com/go/binaryauthorization/apiv1beta1
Certificate Authority Service cloud.google.com/go/security/privateca/apiv1
Certificate Manager cloud.google.com/go/certificatemanager/apiv1
Channel Services cloud.google.com/go/channel/apiv1
Chat API cloud.google.com/go/chat/apiv1
Cloud Asset Inventory cloud.google.com/go/asset/apiv1
cloud.google.com/go/asset/apiv1p2beta1
cloud.google.com/go/asset/apiv1p5beta1
Cloud Bigtable Admin API cloud.google.com/go/bigtable/admin/apiv2
Cloud Billing cloud.google.com/go/billing/apiv1
Cloud Billing Budget API cloud.google.com/go/billing/budgets/apiv1
cloud.google.com/go/billing/budgets/apiv1beta1
Cloud Build cloud.google.com/go/cloudbuild/apiv1/v2
cloud.google.com/go/cloudbuild/apiv2
Cloud Composer cloud.google.com/go/orchestration/airflow/service/apiv1
Cloud Data Fusion cloud.google.com/go/datafusion/apiv1
Cloud Database Migration Service cloud.google.com/go/clouddms/apiv1
Cloud Debugger cloud.google.com/go/debugger/apiv2
Cloud Domains cloud.google.com/go/domains/apiv1beta1
Cloud IDS cloud.google.com/go/ids/apiv1
Cloud Key Management Service cloud.google.com/go/kms/apiv1
Cloud Life Sciences cloud.google.com/go/lifesciences/apiv2beta
Cloud Logging cloud.google.com/go/logging
cloud.google.com/go/logging/apiv2
Cloud Monitoring cloud.google.com/go/monitoring/apiv3/v2
cloud.google.com/go/monitoring/dashboard/apiv1
cloud.google.com/go/monitoring/metricsscope/apiv1
Cloud Natural Language API cloud.google.com/go/language/apiv1
cloud.google.com/go/language/apiv1beta2
cloud.google.com/go/language/apiv2
Cloud OS Config cloud.google.com/go/osconfig/agentendpoint/apiv1
cloud.google.com/go/osconfig/agentendpoint/apiv1beta
cloud.google.com/go/osconfig/apiv1
cloud.google.com/go/osconfig/apiv1alpha
cloud.google.com/go/osconfig/apiv1beta
Cloud OS Login API cloud.google.com/go/oslogin/apiv1
cloud.google.com/go/oslogin/apiv1beta
Cloud Optimization AI cloud.google.com/go/optimization/apiv1
Cloud Profiler cloud.google.com/go/cloudprofiler/apiv2
cloud.google.com/go/profiler
Cloud Quotas cloud.google.com/go/cloudquotas/apiv1
Cloud Run cloud.google.com/go/run/apiv2
Cloud Run functions cloud.google.com/go/functions/apiv1
cloud.google.com/go/functions/apiv2
cloud.google.com/go/functions/apiv2beta
Cloud Scheduler cloud.google.com/go/scheduler/apiv1
cloud.google.com/go/scheduler/apiv1beta1
Cloud Shell cloud.google.com/go/shell/apiv1
Cloud Storage cloud.google.com/go/storage
cloud.google.com/go/storage/control/apiv2
cloud.google.com/go/storage/internal/apiv2
Cloud TPU cloud.google.com/go/tpu/apiv1
Cloud Talent Solution Job Search cloud.google.com/go/talent/apiv4
cloud.google.com/go/talent/apiv4beta1
Cloud Tasks cloud.google.com/go/cloudtasks/apiv2
cloud.google.com/go/cloudtasks/apiv2beta2
cloud.google.com/go/cloudtasks/apiv2beta3
Cloud Trace cloud.google.com/go/trace/apiv1
cloud.google.com/go/trace/apiv2
Cloud Translation cloud.google.com/go/translate/apiv3
Cloud Vision cloud.google.com/go/vision/v2/apiv1
cloud.google.com/go/vision/v2/apiv1p1beta1
Cloud Workstations cloud.google.com/go/workstations/apiv1
cloud.google.com/go/workstations/apiv1beta
Compute Engine cloud.google.com/go/compute/apiv1
Compute Metadata API cloud.google.com/go/compute/metadata
cloud.google.com/go/compute/metadata
Confidential Space cloud.google.com/go/confidentialcomputing/apiv1
cloud.google.com/go/confidentialcomputing/apiv1alpha1
Confidential VM cloud.google.com/go/confidentialcomputing/apiv1
cloud.google.com/go/confidentialcomputing/apiv1alpha1
Connect Gateway API cloud.google.com/go/gkeconnect/gateway/apiv1
cloud.google.com/go/gkeconnect/gateway/apiv1beta1
Contact Center AI Insights cloud.google.com/go/contactcenterinsights/apiv1
Container Analysis cloud.google.com/go/containeranalysis/apiv1beta1
Data Catalog cloud.google.com/go/datacatalog/apiv1
cloud.google.com/go/datacatalog/apiv1beta1
Data Lineage cloud.google.com/go/datacatalog/lineage/apiv1
Dataflow cloud.google.com/go/dataflow/apiv1beta3
Dataform cloud.google.com/go/dataform/apiv1alpha2
cloud.google.com/go/dataform/apiv1beta1
Dataplex cloud.google.com/go/dataplex/apiv1
Dataproc cloud.google.com/go/dataproc/v2/apiv1
Dataproc Metastore cloud.google.com/go/metastore/apiv1
cloud.google.com/go/metastore/apiv1alpha
cloud.google.com/go/metastore/apiv1beta
Datastream cloud.google.com/go/datastream/apiv1
cloud.google.com/go/datastream/apiv1alpha1
Developer Connect cloud.google.com/go/developerconnect/apiv1
Dialogflow cloud.google.com/go/dialogflow/apiv2
cloud.google.com/go/dialogflow/apiv2beta1
cloud.google.com/go/dialogflow/cx/apiv3
cloud.google.com/go/dialogflow/cx/apiv3beta1
Discovery Engine API cloud.google.com/go/discoveryengine/apiv1
cloud.google.com/go/discoveryengine/apiv1alpha
cloud.google.com/go/discoveryengine/apiv1beta
Document AI cloud.google.com/go/documentai/apiv1
cloud.google.com/go/documentai/apiv1beta3
Error Reporting cloud.google.com/go/errorreporting
cloud.google.com/go/errorreporting/apiv1beta1
Essential Contacts API cloud.google.com/go/essentialcontacts/apiv1
Eventarc cloud.google.com/go/eventarc/apiv1
Eventarc Publishing API cloud.google.com/go/eventarc/publishing/apiv1
Filestore cloud.google.com/go/filestore/apiv1
Firestore cloud.google.com/go/firestore
cloud.google.com/go/firestore/apiv1
cloud.google.com/go/firestore/apiv1/admin
Firestore in Datastore mode cloud.google.com/go/datastore
cloud.google.com/go/datastore/admin/apiv1
cloud.google.com/go/datastore/apiv1
Fleet Engine API cloud.google.com/go/maps/fleetengine/apiv1
cloud.google.com/go/maps/fleetengine/delivery/apiv1
GKE Hub API cloud.google.com/go/gkehub/apiv1beta1
Google Cloud Deploy cloud.google.com/go/deploy/apiv1
Google Cloud Managed Service for Apache Kafka cloud.google.com/go/managedkafka/apiv1
Google Cloud VMware Engine cloud.google.com/go/vmwareengine/apiv1
Google Meet cloud.google.com/go/apps/meet/apiv2
cloud.google.com/go/apps/meet/apiv2beta
Google Workspace Add-ons API cloud.google.com/go/gsuiteaddons/apiv1
Google Workspace Events API cloud.google.com/go/apps/events/subscriptions/apiv1
IAM Policy Troubleshooter API cloud.google.com/go/policytroubleshooter/apiv1
cloud.google.com/go/policytroubleshooter/iam/apiv3
IAM Service Account Credentials API cloud.google.com/go/iam/credentials/apiv1
Identity Platform cloud.google.com/go/identitytoolkit/apiv2
Identity and Access Management cloud.google.com/go/iam
cloud.google.com/go/iam/apiv2
Identity-Aware Proxy cloud.google.com/go/iap/apiv1
Infrastructure Manager cloud.google.com/go/config/apiv1
Integration Connectors cloud.google.com/go/alloydb/connectors/apiv1
cloud.google.com/go/alloydb/connectors/apiv1alpha
cloud.google.com/go/alloydb/connectors/apiv1beta
IoT Core cloud.google.com/go/iot/apiv1
Kubernetes Engine API cloud.google.com/go/container/apiv1
Live Stream API cloud.google.com/go/video/livestream/apiv1
Managed Service for Microsoft Active Directory cloud.google.com/go/managedidentities/apiv1
Media CDN cloud.google.com/go/networkservices/apiv1
Media Translation cloud.google.com/go/mediatranslation/apiv1beta1
Memorystore for Memcached cloud.google.com/go/memcache/apiv1
cloud.google.com/go/memcache/apiv1beta2
Memorystore for Redis cloud.google.com/go/redis/apiv1
cloud.google.com/go/redis/apiv1beta1
cloud.google.com/go/redis/cluster/apiv1
Migrate to Virtual Machines cloud.google.com/go/vmmigration/apiv1
Migration Center cloud.google.com/go/migrationcenter/apiv1
NetApp Volumes cloud.google.com/go/netapp/apiv1
Network Connectivity Center cloud.google.com/go/networkconnectivity/apiv1
cloud.google.com/go/networkconnectivity/apiv1alpha1
Network Management API cloud.google.com/go/networkmanagement/apiv1
Network Security API cloud.google.com/go/networksecurity/apiv1beta1
Oracle Database@Google Cloud cloud.google.com/go/oracledatabase/apiv1
Organization Policy cloud.google.com/go/orgpolicy/apiv2
Parallelstore cloud.google.com/go/parallelstore/apiv1
cloud.google.com/go/parallelstore/apiv1beta
Phishing Protection cloud.google.com/go/phishingprotection/apiv1beta1
Places API cloud.google.com/go/maps/places/apiv1
Pub/Sub cloud.google.com/go/pubsub
cloud.google.com/go/pubsub/apiv1
Pub/Sub Lite cloud.google.com/go/pubsublite
cloud.google.com/go/pubsublite/apiv1
Public Certificate Authority cloud.google.com/go/security/publicca/apiv1
cloud.google.com/go/security/publicca/apiv1beta1
Publish API cloud.google.com/go/streetview/publish/apiv1
Recommendations cloud.google.com/go/recommendationengine/apiv1beta1
Recommender cloud.google.com/go/recommender/apiv1
cloud.google.com/go/recommender/apiv1beta1
Resource Manager cloud.google.com/go/resourcemanager/apiv2
cloud.google.com/go/resourcemanager/apiv3
Resource Settings API cloud.google.com/go/resourcesettings/apiv1
Retail API cloud.google.com/go/retail/apiv2
cloud.google.com/go/retail/apiv2alpha
cloud.google.com/go/retail/apiv2beta
Route Optimization API cloud.google.com/go/maps/routeoptimization/apiv1
Routes API cloud.google.com/go/maps/routing/apiv2
Secret Manager cloud.google.com/go/secretmanager/apiv1
cloud.google.com/go/secretmanager/apiv1beta2
Secure Source Manager cloud.google.com/go/securesourcemanager/apiv1
Security Command Center cloud.google.com/go/securitycenter/apiv1
cloud.google.com/go/securitycenter/apiv1beta1
cloud.google.com/go/securitycenter/apiv1p1beta1
cloud.google.com/go/securitycenter/apiv2
cloud.google.com/go/securitycenter/settings/apiv1beta1
Sensitive Data Protection cloud.google.com/go/dlp/apiv2
Service Control API cloud.google.com/go/servicecontrol/apiv1
Service Directory cloud.google.com/go/servicedirectory/apiv1
cloud.google.com/go/servicedirectory/apiv1beta1
Service Health cloud.google.com/go/servicehealth/apiv1
Service Management API cloud.google.com/go/servicemanagement/apiv1
Service Usage cloud.google.com/go/serviceusage/apiv1
Solar API cloud.google.com/go/maps/solar/apiv1
Spanner cloud.google.com/go/spanner
cloud.google.com/go/spanner/admin/database/apiv1
cloud.google.com/go/spanner/admin/instance/apiv1
cloud.google.com/go/spanner/apiv1
Speech-to-Text cloud.google.com/go/speech/apiv1
cloud.google.com/go/speech/apiv1p1beta1
cloud.google.com/go/speech/apiv2
Storage Insights cloud.google.com/go/storageinsights/apiv1
Storage Transfer Service cloud.google.com/go/storagetransfer/apiv1
Tables by Area 120 cloud.google.com/go/area120/tables/apiv1alpha1
Text-to-Speech cloud.google.com/go/texttospeech/apiv1
Transcoder API cloud.google.com/go/video/transcoder/apiv1
Vertex AI cloud.google.com/go/aiplatform/apiv1
cloud.google.com/go/aiplatform/apiv1beta1
Vertex AI Vision cloud.google.com/go/visionai/apiv1
Vertex AI Workbench cloud.google.com/go/notebooks/apiv1
cloud.google.com/go/notebooks/apiv1beta1
cloud.google.com/go/notebooks/apiv2
Video Intelligence API cloud.google.com/go/videointelligence/apiv1
cloud.google.com/go/videointelligence/apiv1beta2
cloud.google.com/go/videointelligence/apiv1p3beta1
Video Stitcher API cloud.google.com/go/video/stitcher/apiv1
Virtual Private Cloud cloud.google.com/go/vpcaccess/apiv1
Web Risk cloud.google.com/go/webrisk/apiv1
cloud.google.com/go/webrisk/apiv1beta1
Web Security Scanner cloud.google.com/go/websecurityscanner/apiv1
Workflow Executions API cloud.google.com/go/workflows/executions/apiv1
cloud.google.com/go/workflows/executions/apiv1beta
Workflows cloud.google.com/go/workflows/apiv1
cloud.google.com/go/workflows/apiv1beta
reCAPTCHA cloud.google.com/go/recaptchaenterprise/v2/apiv1
cloud.google.com/go/recaptchaenterprise/v2/apiv1beta1