BigQuery API

A data platform for customers to create, manage, share and query data.


To call this service, we recommend that you use the Google-provided client libraries. If your application needs to use your own libraries to call this service, use the following information when you make the API requests.

Discovery document

A Discovery Document is a machine-readable specification for describing and consuming REST APIs. It is used to build client libraries, IDE plugins, and other tools that interact with Google APIs. One service may provide multiple discovery documents. This service provides the following discovery document:

Service endpoint

A service endpoint is a base URL that specifies the network address of an API service. One service might have multiple service endpoints. This service has the following service endpoint and all URIs below are relative to this service endpoint:


REST Resource: v2.datasets

delete DELETE /bigquery/v2/projects/{projectId}/datasets/{datasetId}
Deletes the dataset specified by the datasetId value.
get GET /bigquery/v2/projects/{projectId}/datasets/{datasetId}
Returns the dataset specified by datasetID.
insert POST /bigquery/v2/projects/{projectId}/datasets
Creates a new empty dataset.
list GET /bigquery/v2/projects/{projectId}/datasets
Lists all datasets in the specified project to which the user has been granted the READER dataset role.
patch PATCH /bigquery/v2/projects/{projectId}/datasets/{datasetId}
Updates information in an existing dataset.
update PUT /bigquery/v2/projects/{projectId}/datasets/{datasetId}
Updates information in an existing dataset.

REST Resource:

cancel POST /bigquery/v2/projects/{projectId}/jobs/{jobId}/cancel
Requests that a job be cancelled.
delete DELETE /bigquery/v2/projects/{projectId}/jobs/{jobId}/delete
Requests the deletion of the metadata of a job.
get GET /bigquery/v2/projects/{projectId}/jobs/{jobId}
Returns information about a specific job.
getQueryResults GET /bigquery/v2/projects/{projectId}/queries/{jobId}
RPC to get the results of a query job.
insert POST /bigquery/v2/projects/{projectId}/jobs
POST /upload/bigquery/v2/projects/{projectId}/jobs
Starts a new asynchronous job.
list GET /bigquery/v2/projects/{projectId}/jobs
Lists all jobs that you started in the specified project.
query POST /bigquery/v2/projects/{projectId}/queries
Runs a BigQuery SQL query synchronously and returns query results if the query completes within a specified timeout.

REST Resource: v2.models

delete DELETE /bigquery/v2/projects/{projectId}/datasets/{datasetId}/models/{modelId}
Deletes the model specified by modelId from the dataset.
get GET /bigquery/v2/projects/{projectId}/datasets/{datasetId}/models/{modelId}
Gets the spec