googleapis_beta 2.0.0
googleapis_beta: ^2.0.0 copied to clipboard

Auto-generated client libraries for accessing Google APIs described through the API discovery service.

Auto-generated Dart libraries for accessing Google APIs.

Usage #

First, obtain OAuth 2.0 access credentials. This can be done using the googleapis_auth package. Your application can access APIs on behalf of a user or using a service account.

After obtaining credentials, an API from the googleapis package can be accessed with an authenticated HTTP client.

Example #

The following command line application lists files in Google Drive by using a service account.

Create a pubspec.yaml file with the googleapis_auth and googleapis dependencies.

  googleapis: any
  googleapis_auth: any

Create a service account in the Google Cloud Console and save the credential information.

Then create a Dart application to list files in a specific project. In the example below, files from the dart-on-cloud project are listed.

// bin/list_files.dart

import 'package:googleapis/storage/v1.dart';
import 'package:googleapis_auth/auth_io.dart';

final _credentials = ServiceAccountCredentials.fromJson(r'''
  "private_key_id": ...,
  "private_key": ...,
  "client_email": ...,
  "client_id": ...,
  "type": "service_account"

const _scopes = [StorageApi.devstorageReadOnlyScope];

Future<void> main() async {
  final httpClient = await clientViaServiceAccount(_credentials, _scopes);
  try {
    final storage = StorageApi(httpClient);

    final buckets = await storage.buckets.list('dart-on-cloud');
    print('Received ${buckets.items.length} bucket names:');
    for (var file in buckets.items) {
  } finally {

Available Google APIs #

The following is a list of APIs that are currently available inside this package.

Ad Exchange Buyer API II - adexchangebuyer2 v2beta1

Accesses the latest features for managing Authorized Buyers accounts, Real-Time Bidding configurations and auction metrics, and Marketplace programmatic deals.

Official API documentation:

Google Workspace Alert Center API - alertcenter v1beta1

Manages alerts on issues affecting your domain.

Official API documentation:

Google Analytics Admin API - analyticsadmin v1alpha

Official API documentation:

Google Analytics Data API - analyticsdata v1alpha

Accesses report data in Google Analytics.

Official API documentation:

Area120 Tables API - area120tables v1alpha1

Official API documentation:

BigQuery Connection API - bigqueryconnection v1beta1

Allows users to manage BigQuery connections to external data sources.

Official API documentation:

Error Reporting API - clouderrorreporting v1beta1

Groups and counts similar errors from cloud services and applications, reports new errors, and provides access to error groups and their associated errors.

Official API documentation:

Container Analysis API - containeranalysis v1beta1

An implementation of the Grafeas API, which stores, and enables querying and retrieval of critical metadata about all of your software artifacts.

Official API documentation:

Google Cloud Data Catalog API - datacatalog v1beta1

A fully managed and highly scalable data discovery and metadata management service.

Official API documentation:

Dataflow API - dataflow v1b3

Manages Google Cloud Dataflow projects on Google Cloud Platform.

Official API documentation:

Data Labeling API - datalabeling v1beta1

Public API for Google Cloud AI Data Labeling Service.

Official API documentation:

Database Migration API - datamigration v1beta1

Manage Cloud Database Migration Service resources on Google Cloud Platform.

Official API documentation:

Cloud Document AI API - documentai v1beta3

Service to parse structured information from unstructured or semi-structured documents using state-of-the-art Google AI such as natural language, computer vision, translation, and AutoML.

Official API documentation:

Cloud Domains API - domains v1beta1

Enables management and configuration of domain names.

Official API documentation:

Fact Check Tools API - factchecktools v1alpha1

Official API documentation:

Firebase Management API - firebase v1beta1

The Firebase Management API enables programmatic setup and management of Firebase projects, including a project's Firebase resources and Firebase apps.

Official API documentation:

Firebase Realtime Database Management API - firebasedatabase v1beta

The Firebase Realtime Database Management API enables programmatic provisioning and management of Realtime Database instances.

Official API documentation:

Cloud Life Sciences API - lifesciences v2beta

Cloud Life Sciences is a suite of services and tools for managing, processing, and transforming life sciences data.

Official API documentation:

Dataproc Metastore API - metastore v1beta

The Dataproc Metastore API is used to manage the lifecycle and configuration of metastore services.

Official API documentation:

Network Connectivity API - networkconnectivity v1alpha1

The Network Connectivity API will be home to various services which provide information pertaining to network connectivity.

Official API documentation:

On-Demand Scanning API - ondemandscanning v1beta1

A service to scan container images for vulnerabilities.

Official API documentation:

Policy Simulator API - policysimulator v1beta1

Policy Simulator is a collection of endpoints for creating, running, and viewing a Replay. A Replay is a type of simulation that lets you see how your members' access to resources might change if you changed your IAM policy. During a Replay, Policy Simulator re-evaluates, or replays, past access attempts under both the current policy and your proposed policy, and compares those results to determine how your members' access might change under the proposed policy.

Official API documentation:

Certificate Authority API - privateca v1beta1

The Certificate Authority Service API is a highly-available, scalable service that enables you to simplify and automate the management of private certificate authorities (CAs) while staying in control of your private keys."

Official API documentation:

SAS Portal API (Testing) - prod_tt_sasportal v1alpha1

Official API documentation:

Recommendations AI (Beta) - recommendationengine v1beta1

Note that we now highly recommend new customers to use Retail API, which incorporates the GA version of the Recommendations AI funtionalities. To enable Retail API, please visit The Recommendations AI service enables customers to build end-to-end personalized recommendation systems without requiring a high level of expertise in machine learning, recommendation system, or Google Cloud.

Official API documentation:

SAS Portal API - sasportal v1alpha1

Official API documentation:

Cloud SQL Admin API - sqladmin v1beta4

API for Cloud SQL database instance management

Official API documentation:

Cloud Tool Results API - toolresults v1beta3

API to publish and access results from developer tools.

Official API documentation:

Transcoder API - transcoder v1beta1

This API converts video files into formats suitable for consumer distribution.

Official API documentation:

pub points


Auto-generated client libraries for accessing Google APIs described through the API discovery service.

Repository (GitHub)
View/report issues


API reference




_discoveryapis_commons, http


Packages that depend on googleapis_beta