BigQuery APIs and libraries overview

This page provides an overview of the various APIs associated withBigQuery. While you can use the APIs directlyby making raw requests to the server, client libraries let you code in yourpreferred language and provide simplificationsthat significantly reduce the amount of code you need to write.BigQuery supports client libraries in C#, Go, Java, Node.js, PHP,Python, and Ruby.For a more general overview of client libraries within Google Cloud, seeClient libraries explained.

For examples of using the various BigQuery libraries and APIs,see theBigQuery Code Samples.

To use the APIs, you must authenticate to verify your client's identity. You cando this by usingApplication Default Credentials,aservice account key file,oruser credentials.To learn more about authentication, see theIntroduction to authentication.

SeePricing for more information about BigQuerypricing, includingdata ingestionanddata extraction pricing.

BigQuery API

This is the main API that provides resources for creating, modifying, anddeleting core resources such as datasets, tables, jobs, and routines.

For links to the reference documentation and source code, select a language:

BigQuery Data Policy API

This API helps users manage BigQuery data policies forcolumn-level security and data masking.

For information about this API and its usage, seeBigQuery Data Policy API.For links to the reference documentation and source code, select alanguage:

BigQuery Connection API

This API provides the control plane for establishing remote connections to allowBigQuery to interact with remote data sources such as Cloud SQL. Somefederated query functionality is exposed within the BigQueryAPI and libraries.

For more information about installation and usage, seeBigQuery Connection client libraries.For links to the reference documentation and source code, select alanguage:

BigQuery Migration API

This API supports mechanisms to help users migrate existing data warehouses toBigQuery. It largely models work as a series of workflows andtasks to be processed, such as translating SQL.

For more information about installation and usage, seeBigQuery Migration client libraries.For links to the reference documentation and source code, select alanguage:

BigQuery Storage API

This API exposes high throughput data reading for consumers who need to scanlarge volumes of managed data from their own applications and tools. The APIsupports a parallel mechanism of scanning storage and exposes support for leveragingfeatures such as column projects and filtering.

For more information about installation and usage, seeBigQuery Storage client libraries.For links to the reference documentation and source code, select alanguage:

BigQuery Reservation API

This API provides the mechanisms by which enterprise users can provision and managededicated resources such as slots and BigQuery BI Engine memory allocations.

For more information about installation and usage, seeBigQuery Reservation client libraries.For links to the reference documentation and source code, select alanguage:

BigQuery sharing (formerly Analytics Hub)

This API facilitates data sharing within and across organizations. It allowsdata providers to publish listings that reference sharedresources, including BigQuery datasets and Pub/Subtopics. With BigQuery sharing, users can discover and search for listingsthat they have access to. Subscribers can view and subscribe to listings. Whenyou subscribe to a listing, sharing creates a linkeddataset in your project.

For more information about this API and its usage, seeAnalytics Hub API.For links to the reference documentation and source code, select alanguage:

BigQuery Data Transfer Service API

This API is used for managed ingestion pipelines. Examples of pipelines includescheduling periodic ingestions from Cloud Storage, automated ingestionof analytics data from other Google properties such as YouTube, or data transfersfrom third-party partners who integrate with the service.

This API is also where scheduled queries are defined and managed within BigQuery.

For more information about installation and usage, seeBigQuery Data Transfer Service client libraries. For links to the reference documentation and source code, select alanguage:

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-12-15 UTC.