Connect to AI
Data Warehouse OAuth 2.0

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.

Base URL https://bigquery.googleapis.com/bigquery/v2

API Endpoints

MethodEndpointDescription
GET/projects/{projectId}/datasetsLists all datasets in the specified project
POST/projects/{projectId}/datasetsCreates 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}/tablesLists all tables in the specified dataset
POST/projects/{projectId}/datasets/{datasetId}/tablesCreates 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}/queriesRuns a BigQuery SQL query synchronously and returns query results
POST/projects/{projectId}/jobsStarts 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}/queryResultsRetrieves the results of a query job
GET/projects/{projectId}/jobsLists all jobs in the specified project
POST/projects/{projectId}/datasets/{datasetId}/tables/{tableId}/insertAllStreams data into BigQuery one record at a time
GET/projects/{projectId}/datasets/{datasetId}/tables/{tableId}/dataRetrieves table data from a specified set of rows
PATCH/projects/{projectId}/datasets/{datasetId}/tables/{tableId}Updates information in an existing table

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 →

Related APIs