View Categories

How to Connect ShipStation to Google Sheets – Query Shipping Data with SQL

6 min read

Query Streams transforms your ShipStation shipping data into SQL-queryable tables, letting you import live shipments, labels, carriers, and fulfillment data directly into Google Sheets. No API coding, no manual exports—just write SQL queries and get real-time shipping analytics in your spreadsheet. Sign up free at QueryStreams.com and start querying your ShipStation account in minutes.

14 ShipStation Tables

Shipments, labels, carriers, fulfillments, inventory, and more

5-Minute Label Sync

Labels and fulfillments refresh every 5 minutes for real-time cost tracking

AES-256 Encrypted

Your ShipStation API key stored securely on your network — never in the cloud

Carrier Analytics

Compare carriers, track costs, and optimize your shipping spend with SQL

What ShipStation Data Can You Access?

Query Streams syncs your ShipStation API data to an AES-256 encrypted local cache, transforming it into SQL-queryable tables. Every table includes a raw_data JSON column with the complete API response—including ship-to/ship-from addresses, package dimensions, and customs information.

Core Shipping

  • shipments Order shipment records with addresses and status
  • labels Purchased labels with tracking numbers and costs
  • fulfillments Completed fulfillments with customer notifications
  • batches Bulk label processing batches

Inventory

  • inventory Stock levels by SKU and warehouse
  • inventory_locations Inventory warehouse locations

Configuration

  • carriers Connected shipping carriers
  • carrier_services Available service codes per carrier
  • warehouses Ship-from warehouse locations
  • products Product catalog with SKUs and dimensions

Operations

  • manifests End-of-day carrier manifests
  • pickups Scheduled carrier pickups
  • tags Shipment organization tags
  • users Account user management

Prerequisites

1
Query Streams Account

Sign up free — no credit card required

2
Query Streams Network Agent

Windows service installed on your network. Install guide

3
ShipStation Account

Active ShipStation account on any API-enabled plan

4
ShipStation API Key

Generated from ShipStation Settings → Account → API Settings

5
Google Sheets

With the Query Streams add-on installed from Google Workspace Marketplace

Setup Guide

1Install Agent
2Get API Key
3Add Connector
4Sync Schedule
5Install Add-on

Step 1: Install the Query Streams Network Agent

  1. Log in to my.querystreams.com
  2. Navigate to Network Agents in the left sidebar
  3. Click Download Agent and run the Windows installer
  4. The agent installs as a Windows service and connects automatically
  5. Your agent appears as “Online” in the portal within 30 seconds

Step 2: Get Your ShipStation API Key

  1. Log in to your ShipStation account
  2. Go to SettingsAccountAPI Settings
  3. Click Generate API Keys if you don’t have one yet
  4. Copy your API Key — treat it like a password and keep it secure

Your ShipStation API key provides read access to your shipping data. Query Streams only performs read operations — it never creates, modifies, or cancels shipments or labels.

Step 3: Add the ShipStation Connector

  1. Open the Network Agent interface at http://localhost:1823
  2. Click Add Connection and select ShipStation
  3. Paste your API Key into the API Key field
  4. Click Test Connection — Query Streams validates your key
  5. On success, you’ll see your ShipStation account confirmation with carrier list
  6. Click Next to configure sync schedules and install pre-built queries

Step 4: Configure Your Sync Schedule

Labels & FulfillmentsEvery 5 minutes
Shipments & BatchesEvery 15 minutes
Products & InventoryHourly
Carriers & WarehousesEvery 6 hours
Manifests & PickupsDaily
Tags & UsersDaily

All 14 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

  1. Open Google Sheets in your browser
  2. Go to ExtensionsAdd-onsGet add-ons
  3. Search for “Query Streams”
  4. Click Install and grant the required permissions
  5. Access it via ExtensionsQuery StreamsOpen
  6. Sign in with your Query Streams account credentials
  7. Or install directly: Install Query Streams for Google Sheets

You’re connected! Open Query Streams in Google Sheets, click Saved Queries, and find your ShipStation folder with pre-built queries for shipping costs, carrier performance, and fulfillment rates. Select any query and click Run to pull live data.

Example ShipStation SQL Queries

Shipment Status Summary (Last 7 Days)
SELECT
    shipment_status,
    COUNT(*) AS count,
    DATE_TRUNC('day', created_at) AS date
FROM shipstation.shipments
WHERE created_at >= NOW() - INTERVAL '7 days'
GROUP BY shipment_status, date
ORDER BY date DESC, count DESC;
Shipping Cost by Carrier (Last 30 Days)
SELECT
    c.carrier_name,
    COUNT(l.label_id) AS label_count,
    SUM(CAST(json_extract_string(l.raw_data, '$.shipment_cost.amount') AS DECIMAL)) AS total_cost,
    AVG(CAST(json_extract_string(l.raw_data, '$.shipment_cost.amount') AS DECIMAL)) AS avg_cost
FROM shipstation.labels l
JOIN shipstation.carriers c ON l.carrier_id = c.carrier_id
WHERE l.created_at >= NOW() - INTERVAL '30 days'
  AND l.status = 'completed'
GROUP BY c.carrier_name
ORDER BY total_cost DESC;
Daily Fulfillment Rate
SELECT
    DATE_TRUNC('day', f.created_at) AS date,
    COUNT(DISTINCT f.order_id) AS orders_fulfilled,
    SUM(CASE WHEN f.customer_notified THEN 1 ELSE 0 END) AS customers_notified,
    ROUND(100.0 * SUM(CASE WHEN f.customer_notified THEN 1 ELSE 0 END) / COUNT(*), 1) AS notification_rate_pct
FROM shipstation.fulfillments f
WHERE f.created_at >= NOW() - INTERVAL '14 days'
GROUP BY date
ORDER BY date DESC;

Share Shipping Reports Without Sharing Credentials

Open any ShipStation query in the Query Builder → click the Sharing tab → enter email addresses → click Share. Recipients get live shipping data in their Google Sheets add-on — without access to your ShipStation API key, account admin, or SQL code.

Frequently Asked Questions

Does Query Streams support all ShipStation carriers?
Yes. Query Streams syncs all carriers connected to your ShipStation account — UPS, FedEx, USPS, DHL, and any others you’ve configured. They appear in the carriers and carrier_services tables with full service code details.
Can I query historical shipping data?
Yes. The initial sync fetches historical data based on the lookback window configured in your connector settings. For labels and shipments, you can typically access months of historical data for trend analysis.
Can I combine ShipStation data with Shopify in the same query?
Yes. If you have both ShipStation and Shopify connected, you can JOIN data across both data sources in a single SQL statement — for example, joining Shopify orders to ShipStation labels by order ID to get a complete order-to-delivery view.
What ShipStation plan do I need?
Any ShipStation plan that includes API access works with Query Streams. The Starter plan does not include API access — you’ll need the Bronze plan or higher to generate an API key.

Related Guides

Category: API Connectors

Tags: ShipStation, Google Sheets, API, Shipping, SQL, Carrier Analytics, Fulfillment, Real-Time Data

Meta Description: Connect ShipStation to Google Sheets with SQL. Query shipments, labels, carriers, and fulfillment data live — no API coding required. Step-by-step setup guide.

Updated on June 3, 2026

Powered by BetterDocs