In this tutorial, you'll connect Google Looker Studio to Couchbase using the Couchbase Data API connector and build reports directly on live data in your cluster — with no ETL and no intermediate storage. You'll authenticate to your cluster, choose the data to visualize (either by selecting a bucket.scope.collection or by writing a custom SQL++ query), and let the connector infer your schema automatically so fields are ready to drop into charts and tables within minutes. The connector reaches your cluster through the Couchbase Data API and runs your queries via the Query Service — all from within Looker Studio. Note that Looker Studio caches query results on its own end, so charts may serve cached data between refreshes (covered in more detail below).
What you'll build: a live Looker Studio data source connected to a Couchbase collection, with fields inferred and ready to use in charts and tables.
This tutorial runs entirely in the Looker Studio web UI — there is nothing to install locally and no code to write. The only thing you need beforehand is access to a Couchbase cluster with the Data API enabled, covered in Before you start.
You need a Google account to sign in to Looker Studio.
To get started with Couchbase Capella, create an account and use it to deploy a forever free tier operational cluster. This account provides you with an environment where you can explore and learn about Capella with no time constraint.
To know more, please follow the instructions.
system:buckets, system:all_scopes, system:keyspaces) and run INFER — these are used for collection discovery and schema inference.0.0.0.0/0 (allow all) under Settings → Networking → Allowed IP Addresses. Looker Studio runs on Google's servers with dynamic IP addresses, so a fixed range cannot be allowlisted.Once the prerequisites above are in place:
Next, you'll authenticate and configure the data source.
When prompted, enter your credentials. Note that Looker Studio labels the endpoint field "Path" — this is your Couchbase Data API endpoint.
Refer to the Couchbase Data API documentation for details on locating your endpoint.
After authenticating, you are taken to the configuration screen. Choose a mode and connect to your data.
Select a bucket > scope > collection from the dropdown — the connector discovers them automatically. Use this mode for quick exploration of a single collection.
For this example, select travel-sample → inventory → airline and leave Maximum Rows at the default (100), then click Connect and Add to Report.
Once added, click Insert → Bar chart. In the Data panel on the right, set the Dimension (X axis) to country. For the Metric (Y axis), Looker Studio adds a field such as id with the Count aggregation — this counts the number of airlines in each country. Click the metric if you want to change its aggregation. Looker Studio then renders a bar chart of the number of airlines grouped by country.
The connector adds no intermediate storage or ETL — when it queries the source, it reads live from your cluster. Note, however, that Looker Studio caches query results on its own end (its "data freshness" cache), so charts may serve cached data between refreshes rather than hitting the cluster on every view. Community connectors typically use Looker Studio's default freshness (up to 12 hours), which is generally not user-adjustable. You can force a live re-query at any time with Refresh data in the report toolbar.
Use this mode to write your own SQL++ query. Paste any valid statement — include a LIMIT for performance. This gives you full control over filtering, joining, and aggregating before the data reaches Looker Studio.
For example, the same airline count pre-aggregated on the cluster:
SELECT country, COUNT(*) AS airline_count
FROM `travel-sample`.`inventory`.`airline`
GROUP BY country
ORDER BY airline_count DESC
LIMIT 20Pre-aggregating in SQL++ is more efficient for large collections than pulling all rows into Looker Studio.
Query by Collection for quick starts and simpler schemas: Collection mode provides more predictable schema inference than custom queries.LIMIT when exploring with custom queries: Use LIMIT 100-1000 for initial testing to ensure fast schema inference and data retrieval.Empty schema or no fields detected:
LIMIT clausesINFER statement failures:
INFER collection or INFER (customQuery) with sampling optionsLIMIT 1 and inferring from a single documentFields appear as STRING when they should be NUMBER:
Missing fields that exist in your data:
Nested fields not working correctly:
"No properties in any INFER flavors" error:
LIMIT clauses and avoid very complex JOINs for better connector performance.You've connected Google Looker Studio to Couchbase using the Data API connector and built a live report on travel-sample data.
Now that you have a live connection, you can:
Use Custom Query mode to filter, join, or pre-aggregate data with SQL++ before it reaches Looker Studio.The connector is open source. For the source code, or to report a bug or request a feature, see the Couchbase Data API Looker Studio connector on GitHub and open an issue.