Ask Nova, get SQL + charts
Meet Nova Database REST APIOne key per partner. No credentials shared.
Build an API AutomationScheduled sync to 6+ platforms
Explore API to SQLQuery APIs with SQL, no code
Explore AI Database MCPClaude, Cursor, ChatGPT & Grok talk to your data
Connect AIQuery Streams connects your Stripe account to Google Sheets as SQL-queryable tables—customers, invoices, subscriptions, charges, and more, all accessible with standard SQL. No API programming, no manual exports, no CSV juggling. Just write SQL and get live Stripe data in your spreadsheet. Sign up free at QueryStreams.com and start querying your Stripe account in minutes.
Customers, invoices, subscriptions, charges, balance transactions, and more
Charges and payment intents sync as frequently as every 5 minutes
API keys and cached data stored securely on your network—never in the cloud
Share revenue reports with teammates without ever revealing your Stripe key
What Stripe Data Can You Access?
Query Streams syncs your Stripe API data to an AES-256 encrypted local cache, transforming it into 15 SQL-queryable tables. Every table includes a raw_data JSON column with the complete Stripe API response—including all metadata fields.
Core Business
customersCustomer records with billing info and metadatapayment_intentsModern payment flow trackinginvoicesBilling records and due datessubscriptionsRecurring billing subscriptionschargesPayment charges (legacy and current)
Financial & Reconciliation
balance_transactionsComplete ledger (fees, payouts, transfers)refundsMoney returned to customerspayoutsBank transfer trackingdisputesChargebacks and fraud cases
Catalog & Pricing
productsProduct catalogpricesPricing tiers and configurationscouponsDiscount codes and promotions
Activity & Detail
eventsWebhook backup and audit trailinvoice_itemsLine-item billing detailsubscription_itemsMulti-product subscription breakdowns
Prerequisites
Sign up free — no credit card required
Windows service installed on your network. Install guide
Any Stripe account with API access (live or test mode)
Starts with sk_live_ or sk_test_ — from your Stripe Dashboard
With the Query Streams add-on installed from Google Workspace Marketplace
Setup Guide
Step 1: Install the Query Streams Network Agent
- Log in to my.querystreams.com
- Navigate to Network Agents in the left sidebar
- Click Download Agent and run the Windows installer
- The agent installs as a Windows service and connects automatically
- Your agent appears as “Online” in the portal within 30 seconds
The Network Agent creates a secure, outbound-only connection — no inbound firewall ports, no VPN required. Your Stripe API key never leaves your network.
Step 2: Get Your Stripe Secret API Key
- Log in to your Stripe Dashboard
- Click Developers in the top navigation
- Select API keys from the left sidebar
- Copy your Secret key (starts with
sk_live_for production orsk_test_for testing) - Keep this key secure — it provides full read access to your Stripe data
Use the Secret key, not the Publishable key. The publishable key (starting with pk_) cannot authenticate API requests. Query Streams only performs read operations — it never modifies your Stripe data.
Step 3: Add the Stripe Connector
- Open the Network Agent interface at
http://localhost:1823 - Click Add Connection and select Stripe
- Paste your Secret API Key into the API Key field
- Click Test Connection — Query Streams validates your key with Stripe
- On success, you’ll see confirmation of your account mode (Live or Test)
- Click Next to proceed to sync configuration
Step 4: Configure Your Sync Schedule
All 15 tables sync by default. Disable any table by setting its interval to Never. Click Save — the initial sync starts immediately.
Step 5: Install the Google Sheets Add-on
- Open Google Sheets in your browser
- Go to Extensions → Add-ons → Get add-ons
- Search for “Query Streams”
- Click Install and grant the required permissions
- Access it via Extensions → Query Streams → Open
- Sign in with your Query Streams account credentials
- Or install directly: Install Query Streams for Google Sheets
You’re connected! Open Query Streams in Google Sheets, click Saved Queries, and find your Stripe folder with pre-built queries. Select any query and click Run to pull live Stripe data into your spreadsheet.
Example Stripe SQL Queries
SELECT
DATE_TRUNC('month', created) AS month,
COUNT(*) AS charge_count,
SUM(amount) / 100.0 AS gross_revenue,
SUM(CASE WHEN refunded THEN amount_refunded ELSE 0 END) / 100.0 AS refunds,
(SUM(amount) - SUM(CASE WHEN refunded THEN amount_refunded ELSE 0 END)) / 100.0 AS net_revenue
FROM stripe.charges
WHERE status = 'succeeded'
AND created >= CURRENT_DATE - INTERVAL '12 months'
GROUP BY DATE_TRUNC('month', created)
ORDER BY month DESC;
SELECT
p.name AS product_name,
pr.nickname AS plan_name,
pr.interval AS billing_interval,
pr.unit_amount / 100.0 AS price,
COUNT(s.id) AS active_subscribers,
COUNT(s.id) * pr.unit_amount / 100.0 AS mrr_contribution
FROM stripe.subscriptions s
JOIN stripe.subscription_items si ON si.subscription = s.id
JOIN stripe.prices pr ON pr.id = si.price
JOIN stripe.products p ON p.id = pr.product
WHERE s.status = 'active'
GROUP BY p.name, pr.nickname, pr.interval, pr.unit_amount
ORDER BY mrr_contribution DESC;
SELECT
DATE(created) AS date,
failure_code,
failure_message,
COUNT(*) AS failure_count,
SUM(amount) / 100.0 AS lost_revenue
FROM stripe.charges
WHERE status = 'failed'
AND created >= CURRENT_DATE - INTERVAL '30 days'
GROUP BY DATE(created), failure_code, failure_message
ORDER BY date DESC, failure_count DESC;
Share Stripe Reports Without Sharing Credentials
Open any Stripe query in the Query Builder → click the Sharing tab → enter teammate email addresses → click Share. Recipients get the query in their Google Sheets add-on only. They run it on-demand to get live data — your Stripe API key is never exposed, and they never see the SQL code.
Frequently Asked Questions
sk_live_) and test (sk_test_) API keys. Test mode is ideal for evaluating the integration before connecting your production account.Related Guides
Category: API Connectors
Tags: Stripe, Google Sheets, API, Payment Data, SQL, Revenue Analytics, Subscriptions, Real-Time Data
Meta Description: Connect Stripe to Google Sheets with SQL. Query customers, invoices, subscriptions, and charges live — no API coding required. Step-by-step setup guide.

