BigQuery REST API
Serverless data warehouse for analytics at scale
Google BigQuery is a fully managed, serverless data warehouse that enables scalable analysis over petabytes of data. Developers use BigQuery to run SQL queries on massive datasets, build data pipelines, and power business intelligence applications without managing infrastructure. It integrates seamlessly with Google Cloud services and supports real-time analytics, machine learning, and geospatial analysis.
https://bigquery.googleapis.com/bigquery/v2
API Endpoints
| Method | Endpoint | Description |
|---|---|---|
| GET | /projects/{projectId}/datasets | Lists all datasets in the specified project |
| POST | /projects/{projectId}/datasets | Creates a new empty dataset |
| GET | /projects/{projectId}/datasets/{datasetId} | Returns the dataset specified by datasetID |
| DELETE | /projects/{projectId}/datasets/{datasetId} | Deletes the dataset specified by the datasetId value |
| GET | /projects/{projectId}/datasets/{datasetId}/tables | Lists all tables in the specified dataset |
| POST | /projects/{projectId}/datasets/{datasetId}/tables | Creates a new, empty table in the dataset |
| GET | /projects/{projectId}/datasets/{datasetId}/tables/{tableId} | Gets the specified table resource by table ID |
| POST | /projects/{projectId}/queries | Runs a BigQuery SQL query synchronously and returns query results |
| POST | /projects/{projectId}/jobs | Starts a new asynchronous job for queries, loads, extracts, or copies |
| GET | /projects/{projectId}/jobs/{jobId} | Returns information about a specific job |
| GET | /projects/{projectId}/jobs/{jobId}/queryResults | Retrieves the results of a query job |
| GET | /projects/{projectId}/jobs | Lists all jobs in the specified project |
| POST | /projects/{projectId}/datasets/{datasetId}/tables/{tableId}/insertAll | Streams data into BigQuery one record at a time |
| GET | /projects/{projectId}/datasets/{datasetId}/tables/{tableId}/data | Retrieves table data from a specified set of rows |
| PATCH | /projects/{projectId}/datasets/{datasetId}/tables/{tableId} | Updates information in an existing table |
Sponsor this page
AvailableReach developers actively building with BigQuery. See live pageview data and self-serve checkout — your slot goes live in minutes.
View inventory & pricing →Code Examples
curl -X POST "https://bigquery.googleapis.com/bigquery/v2/projects/my-project/queries" \
-H "Authorization: Bearer ya29.a0AfH6SMBx..." \
-H "Content-Type: application/json" \
-d '{
"query": "SELECT name, COUNT(*) as count FROM `my-project.my_dataset.my_table` GROUP BY name ORDER BY count DESC LIMIT 10",
"useLegacySql": false,
"timeoutMs": 10000
}'
Use BigQuery from Claude / Cursor / ChatGPT
Get a hosted MCP endpoint for BigQuery. Paste your BigQuery API key, copy back one URL, drop it into Claude Desktop, Cursor, or any AI client that supports remote MCP. Your AI calls BigQuery directly with your credentials — no local install, works on mobile.
query_bigquery
Execute SQL queries against BigQuery datasets and return structured results for analysis
list_datasets
Retrieve all available datasets in a BigQuery project to understand data organization
get_table_schema
Fetch table schema information including column names, types, and descriptions for data exploration
insert_rows
Stream data into BigQuery tables in real-time for immediate availability in queries
create_dataset
Create new datasets with specified configurations for organizing BigQuery data
Connect in 60 seconds
Paste your BigQuery key → get an MCP URL → paste into Claude/Cursor. Hosted by IOX, encrypted at rest.
Connect BigQuery to your AI →