Auto-generated Dart libraries for accessing Google APIs.
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.
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.
... 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 spececific 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 = new ServiceAccountCredentials.fromJson(r''' { "private_key_id": ..., "private_key": ..., "client_email": ..., "client_id": ..., "type": "service_account" } '''); const _SCOPES = const [StorageApi.DevstorageReadOnlyScope]; void main() { clientViaServiceAccount(_credentials, _SCOPES).then((http_client) { var storage = new StorageApi(http_client); storage.buckets.list('dart-on-cloud').then((buckets) { print("Received ${buckets.items.length} bucket names:"); for (var file in buckets.items) { print(file.name); } }); }); }
The following is a list of APIs that are currently available inside this package.
Views Abusive Experience Report data, and gets a list of sites that have a significant number of abusive experiences.
Official API documentation: https://developers.google.com/abusive-experience-report/
Retrieves the list of AMP URLs (and equivalent AMP Cache URLs) for a given list of public URL(s).
Official API documentation: https://developers.google.com/amp/cache/
Accesses your bidding-account information, submits creatives for validation, finds available direct deals, and retrieves performance reports.
Official API documentation: https://developers.google.com/ad-exchange/buyer-rest
Accesses your bidding-account information, submits creatives for validation, finds available direct deals, and retrieves performance reports.
Official API documentation: https://developers.google.com/ad-exchange/buyer-rest
Views Ad Experience Report data, and gets a list of sites that have a significant number of annoying ads.
Official API documentation: https://developers.google.com/ad-experience-report/
Transfers user data from one user to another.
Official API documentation: https://developers.google.com/admin-sdk/data-transfer/
Manages enterprise resources such as users and groups, administrative notifications, security features, and more.
Official API documentation: https://developers.google.com/admin-sdk/directory/
Fetches reports for the administrators of G Suite customers about the usage, collaboration, security, and risk for their users.
Official API documentation: https://developers.google.com/admin-sdk/reports/
Accesses AdSense publishers' inventory and generates performance reports.
Official API documentation: https://developers.google.com/adsense/management/
Generates performance reports, generates ad codes, and provides publisher management capabilities for AdSense Hosts.
Official API documentation: https://developers.google.com/adsense/host/
Views and manages your Google Analytics data.
Official API documentation: https://developers.google.com/analytics/
Accesses Analytics report data.
Official API documentation: https://developers.google.com/analytics/devguides/reporting/core/v4/
Automates Android zero-touch enrollment for device resellers, customers, and EMMs.
Official API documentation: https://developers.google.com/zero-touch/
Manages the deployment of apps to Android for Work users.
Official API documentation: https://developers.google.com/android/work/play/emm-api
The Android Management API provides remote enterprise management of Android devices and apps.
Official API documentation: https://developers.google.com/android/management
Accesses Android application developers' Google Play accounts.
Official API documentation: https://developers.google.com/android-publisher
Accesses Android application developers' Google Play accounts.
Official API documentation: https://developers.google.com/android-publisher
Provisions and manages developers' App Engine applications.
Official API documentation: https://cloud.google.com/appengine/docs/admin-api/
Provides a historical view of activity.
Official API documentation: https://developers.google.com/google-apps/activity/
The Google App State API.
Official API documentation: https://developers.google.com/games/services/web/api/states
A data platform for customers to create, manage, share and query data.
Official API documentation: https://cloud.google.com/bigquery/
Transfers data from partner SaaS applications to Google BigQuery on a scheduled, managed basis.
Official API documentation: https://cloud.google.com/bigquery/
Official API documentation: https://cloud.google.com/bigtable/
API for access to the data within Blogger.
Official API documentation: https://developers.google.com/blogger/docs/3.0/getting_started
Searches for books and manages your Google Books library.
Official API documentation: https://developers.google.com/books/docs/v1/getting_started
Manipulates events and other calendar data.
Official API documentation: https://developers.google.com/google-apps/calendar/firstapp
Enables bots to fetch information and perform actions in Hangouts Chat.
Official API documentation: https://developers.google.com/hangouts/chat
Provides polling places, early vote locations, contest data, election officials, and government representatives for U.S. residential addresses.
Official API documentation: https://developers.google.com/civic-information
Manages classes, rosters, and invitations in Google Classroom.
Official API documentation: https://developers.google.com/classroom/
Allows developers to manage billing for their Google Cloud Platform projects programmatically.
Official API documentation: https://cloud.google.com/billing/
Creates and manages builds on Google Cloud Platform.
Official API documentation: https://cloud.google.com/cloud-build/docs/
Examines the call stack and variables of a running application without stopping or slowing it down.
Official API documentation: https://cloud.google.com/debugger
Manages lightweight user-provided functions executed in response to events.
Official API documentation: https://cloud.google.com/functions
API for provisioning and managing identity resources.
Official API documentation: https://cloud.google.com/identity/
Registers and manages IoT (Internet of Things) devices that connect to the Google Cloud Platform.
Official API documentation: https://cloud.google.com/iot
Manages keys and performs cryptographic operations in a central cloud service, for direct use by other cloud resources and applications.
Official API documentation: https://cloud.google.com/kms/
Manages continuous profiling information.
Official API documentation: https://cloud.google.com/profiler/
Creates, reads, and updates metadata for Google Cloud Platform resource containers.
Official API documentation: https://cloud.google.com/resource-manager
Creates, reads, and updates metadata for Google Cloud Platform resource containers.
Official API documentation: https://cloud.google.com/resource-manager
Cloud Search provides cloud-based search capabilities over G Suite data. The Cloud Search API allows indexing of non-G Suite data into Cloud Search.
Official API documentation: https://gsuite.google.com/products/cloud-search/
Allows users to start, configure, and connect to interactive shell sessions running in the cloud.
Official API documentation: https://cloud.google.com/shell/docs/
Sends application trace data to Stackdriver Trace for viewing. Trace data is collected for all App Engine applications by default. Trace data from other applications can be provided using this API. This library is used to interact with the Trace API directly. If you are looking to instrument your application for Stackdriver Trace, we recommend using OpenCensus.
Official API documentation: https://cloud.google.com/trace
Manages Apache Airflow environments on Google Cloud Platform.
Official API documentation: https://cloud.google.com/composer/
Creates and runs virtual machines on Google Cloud Platform.
Official API documentation: https://developers.google.com/compute/docs/reference/latest/
Builds and manages container-based applications, powered by the open source Kubernetes technology.
Official API documentation: https://cloud.google.com/container-engine/
Manages product items, inventory, and Merchant Center accounts for Google Shopping.
Official API documentation: https://developers.google.com/shopping-content
Searches over a website or collection of websites
Official API documentation: https://developers.google.com/custom-search/v1/using_rest
Manages Hadoop-based clusters and jobs on Google Cloud Platform.
Official API documentation: https://cloud.google.com/dataproc/
Accesses the schemaless NoSQL database to provide fully managed, robust, scalable storage for your application.
Official API documentation: https://cloud.google.com/datastore/
Declares, configures, and deploys complex solutions on Google Cloud Platform.
Official API documentation: https://cloud.google.com/deployment-manager/
Manages your DoubleClick Campaign Manager ad campaigns and reports.
Official API documentation: https://developers.google.com/doubleclick-advertisers/
Builds conversational interfaces (for example, chatbots, and voice-powered apps and devices).
Official API documentation: https://cloud.google.com/dialogflow-enterprise/
Discovers relationships between online assets such as websites or mobile apps.
Official API documentation: https://developers.google.com/digital-asset-links/
Provides information about other Google APIs, such as what APIs are available, the resource, and method details for each API.
Official API documentation: https://developers.google.com/discovery/
Provides methods for detection, risk analysis, and de-identification of privacy-sensitive fragments in text, images, and Google Cloud Platform storage repositories.
Official API documentation: https://cloud.google.com/dlp/docs/
Configures and serves authoritative DNS records.
Official API documentation: https://developers.google.com/cloud-dns
API for viewing and managing your reports in DoubleClick Bid Manager.
Official API documentation: https://developers.google.com/bid-manager/
Reports and modifies your advertising data in DoubleClick Search (for example, campaigns, ad groups, keywords, and conversions).
Official API documentation: https://developers.google.com/doubleclick-search/
Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions.
Official API documentation: https://developers.google.com/drive/
Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions.
Official API documentation: https://developers.google.com/drive/
Provides a historical view of activity in Google Drive.
Official API documentation: https://developers.google.com/drive/activity/
Programmatically creates and manages Firebase Dynamic Links.
Official API documentation: https://firebase.google.com/docs/dynamic-links/
Creates and manages rules that determine when a Firebase Rules-enabled service should permit a request.
Official API documentation: https://firebase.google.com/docs/storage/security
Accesses the NoSQL document database built for automatic scaling, high performance, and ease of application development.
Official API documentation: https://cloud.google.com/firestore
Stores and accesses user data in the fitness store from apps on any platform.
Official API documentation: https://developers.google.com/fit/rest/
API for working with Fusion Tables data.
Official API documentation: https://developers.google.com/fusiontables
API for working with Fusion Tables data.
Official API documentation: https://developers.google.com/fusiontables
The API for Google Play Game Services.
Official API documentation: https://developers.google.com/games/services/
The Publishing API for Google Play Game Services.
Official API documentation: https://developers.google.com/games/services
The Management API for Google Play Game Services.
Official API documentation: https://developers.google.com/games/services
Uploads, processes, queries, and searches Genomics data in the cloud.
Official API documentation: https://cloud.google.com/genomics
Access Gmail mailboxes including sending user email.
Official API documentation: https://developers.google.com/gmail/api/
Groups Migration Api.
Official API documentation: https://developers.google.com/google-apps/groups-migration/
Lets you manage permission levels and related settings of a group.
Official API documentation: https://developers.google.com/google-apps/groups-settings/get_started
Manages identity and access control for Google Cloud Platform resources, including the creation of service accounts, which you can use to authenticate to Google and make API calls.
Official API documentation: https://cloud.google.com/iam/
Creates short-lived, limited-privilege credentials for IAM service accounts.
Official API documentation: https://cloud.google.com/iam/docs/creating-short-lived-service-account-credentials
Controls access to cloud applications running on Google Cloud Platform.
Official API documentation: https://cloud.google.com/iap
Help the third party sites to implement federated login.
Official API documentation: https://developers.google.com/identity-toolkit/v3/
Notifies Google when your web pages change.
Official API documentation: https://developers.google.com/search/apis/indexing-api/
Cloud Talent Solution provides the capability to create, read, update, and delete job postings, as well as search jobs based on keywords and filters.
Official API documentation: https://cloud.google.com/talent-solution/job-search/docs/
Cloud Talent Solution provides the capability to create, read, update, and delete job postings, as well as search jobs based on keywords and filters.
Official API documentation: https://cloud.google.com/talent-solution/job-search/docs/
Searches the Google Knowledge Graph for entities.
Official API documentation: https://developers.google.com/knowledge-graph/
Provides natural language understanding technologies, such as sentiment analysis, entity recognition, entity sentiment analysis, and other text annotations, to developers.
Official API documentation: https://cloud.google.com/natural-language/
A simple Google Example Library API.
Official API documentation: https://cloud.google.com/docs/quota
Views and manages licenses for your domain.
Official API documentation: https://developers.google.com/google-apps/licensing/
Writes log entries and manages your Logging configuration.
Official API documentation: https://cloud.google.com/logging/docs/
Public API for managing Manufacturer Center related data.
Official API documentation: https://developers.google.com/manufacturers/
Interacts with Glass users via the timeline.
Official API documentation: https://developers.google.com/glass
An API to enable creating and using machine learning models.
Official API documentation: https://cloud.google.com/ml/
Manages your Stackdriver Monitoring data and configurations. Most projects must be associated with a Stackdriver account, with a few exceptions as noted on the individual method pages.
Official API documentation: https://cloud.google.com/monitoring/api/
Obtains end-user authorization grants for use with other Google APIs.
Official API documentation: https://developers.google.com/accounts/docs/OAuth2
Manages OS login configuration for Google account users.
Official API documentation: https://cloud.google.com/compute/docs/oslogin/
Analyzes the performance of a web page and provides tailored suggestions to make that page faster.
Official API documentation: https://developers.google.com/speed/docs/insights/v5/get-started
Provides access to information about profiles and contacts.
Official API documentation: https://developers.google.com/people/
An API to publish custom Android apps.
Official API documentation: https://developers.google.com/android/work/play/custom-app-api
Builds on top of the Google+ platform.
Official API documentation: https://developers.google.com/+/api/
Builds on top of the Google+ platform for Google Apps Domains.
Official API documentation: https://developers.google.com/+/domains/
The Poly API provides read access to assets hosted on poly.google.com to all, and upload access to poly.google.com for whitelisted accounts.
Official API documentation: https://developers.google.com/poly/
Provides reliable, many-to-many, asynchronous messaging between applications.
Official API documentation: https://cloud.google.com/pubsub/docs
Creates and manages Redis instances on the Google Cloud Platform.
Official API documentation: https://cloud.google.com/memorystore/docs/redis/
Creates and manages your customers and their subscriptions.
Official API documentation: https://developers.google.com/google-apps/reseller/
The Runtime Configurator allows you to dynamically configure and expose variables through Google Cloud Platform. In addition, you can also set Watchers and Waiters that will watch for changes to your data and return based on certain conditions.
Official API documentation: https://cloud.google.com/deployment-manager/runtime-configurator/
Enables client applications to check web resources (most commonly URLs) against Google-generated lists of unsafe web resources.
Official API documentation: https://developers.google.com/safe-browsing/
Manages and executes Google Apps Script projects.
Official API documentation: https://developers.google.com/apps-script/api/
Provides tools for running validation tests against single URLs
Official API documentation: https://developers.google.com/webmaster-tools/search-console-api/
The Google Cloud Platform Service Broker API provides Google hosted implementation of the Open Service Broker API (https://www.openservicebrokerapi.org/).
Official API documentation: https://cloud.google.com/kubernetes-engine/docs/concepts/add-on/service-broker
Manages the service consumers of a Service Infrastructure service.
Official API documentation: https://cloud.google.com/service-consumer-management/docs/overview
Provides control plane functionality to managed services, such as logging, monitoring, and status checks.
Official API documentation: https://cloud.google.com/service-control/
Google Service Management allows service producers to publish their services on Google Cloud Platform so that they can be discovered and used by service consumers.
Official API documentation: https://cloud.google.com/service-management/
Enables services that service consumers want to use on Google Cloud Platform, lists the available or enabled services, or disables services that service consumers no longer use.
Official API documentation: https://cloud.google.com/service-usage/
Reads and writes Google Sheets.
Official API documentation: https://developers.google.com/sheets/
Verifies ownership of websites or domains with Google.
Official API documentation: https://developers.google.com/site-verification/
Reads and writes Google Slides presentations.
Official API documentation: https://developers.google.com/slides/
Accesses source code repositories hosted by Google.
Official API documentation: https://cloud.google.com/source-repositories/docs/apis
Cloud Spanner is a managed, mission-critical, globally consistent and scalable relational database service.
Official API documentation: https://cloud.google.com/spanner/
Converts audio to text by applying powerful neural network models.
Official API documentation: https://cloud.google.com/speech-to-text/docs/quickstart-protocol
Stores and retrieves potentially large, immutable data objects.
Official API documentation: https://developers.google.com/storage/docs/json_api/
Transfers data from external data sources to a Google Cloud Storage bucket or between Google Cloud Storage buckets.
Official API documentation: https://cloud.google.com/storage/transfer
Publishes 360 photos to Google Maps, along with position, orientation, and connectivity metadata. Apps can offer an interface for positioning, connecting, and uploading user-generated Street View images.
Official API documentation: https://developers.google.com/streetview/publish/
Creates and conducts surveys, lists the surveys that an authenticated user owns, and retrieves survey results and information about specified surveys.
Accesses Tag Manager accounts and containers.
Official API documentation: https://developers.google.com/tag-manager/api/v1/
Accesses Tag Manager accounts and containers.
Official API documentation: https://developers.google.com/tag-manager/api/v2/
Lets you manage your tasks and task lists.
Official API documentation: https://developers.google.com/google-apps/tasks/firstapp
Allows developers to run automated tests for their mobile applications on Google infrastructure.
Official API documentation: https://developers.google.com/cloud-test-lab/
Synthesizes natural-sounding speech by applying powerful neural network models.
Official API documentation: https://cloud.google.com/text-to-speech/
TPU API provides customers with access to Google TPU technology.
Official API documentation: https://cloud.google.com/tpu/
The Google Cloud Translation API lets websites and programs integrate with Google Translate programmatically.
Official API documentation: https://code.google.com/apis/language/translate/v2/getting_started.html
Lets you create, inspect, and manage goo.gl short URLs
Official API documentation: https://developers.google.com/url-shortener/v1/getting_started
Archiving and eDiscovery for G Suite.
Official API documentation: https://developers.google.com/vault
Detects objects, explicit content, and scene changes in videos. It also specifies the region for annotation and transcribes speech to text.
Official API documentation: https://cloud.google.com/video-intelligence/docs/
Integrates Google Vision features, including image labeling, face, logo, and landmark detection, optical character recognition (OCR), and detection of explicit content, into applications.
Official API documentation: https://cloud.google.com/vision/
Accesses the metadata for all families served by Google Fonts, providing a list of families currently available (including available styles and a list of supported script subsets).
Official API documentation: https://developers.google.com/fonts/docs/developer_api
View Google Search Console data for your verified sites.
Official API documentation: https://developers.google.com/webmaster-tools/
Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more.
Official API documentation: https://developers.google.com/youtube/v3
Retrieves your YouTube Analytics data.
Official API documentation: http://developers.google.com/youtube/analytics/
Retrieves your YouTube Analytics data.
Official API documentation: https://developers.google.com/youtube/analytics
Schedules reporting jobs containing your YouTube Analytics data and downloads the resulting bulk data reports in the form of CSV files.
Official API documentation: https://developers.google.com/youtube/reporting/v1/reports/