Title: SQL query - Cube Documentation
Open Graph Title: SQL query - Cube Documentation
X Title: SQL query - Cube Documentation
Description: Run a SQL query against the Cube SQL API and stream the results. The response is newline-delimited JSON: the first line carries the schema (column names and types), optionally lastRefreshTime, and optionally usedPreAggregations naming the pre-aggregations the result was served from; each subsequent line carries a data chunk with one or more result rows.
Open Graph Description: Run a SQL query against the Cube SQL API and stream the results. The response is newline-delimited JSON: the first line carries the schema (column names and types), optionally lastRefreshTime, and optionally usedPreAggregations naming the pre-aggregations the result was served from; each subsequent line carries a data chunk with one or more result rows.
X Description: Run a SQL query against the Cube SQL API and stream the results. The response is newline-delimited JSON: the first line carries the schema (column names and types), optionally lastRefreshTime, and optionally usedPreAggregations naming the pre-aggregations the result was served from; each subsequent line carries a data chunk with one or more result rows.
Opengraph URL: https://docs.cube.dev/api-reference/data/sql-query
Generator: Mintlify
Domain: docs.cube.dev
IPv4 address: 66.33.60.130
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://docs.cube.dev/#organization","name":"Cube Documentation","url":"https://docs.cube.dev","logo":{"@type":"ImageObject","url":"https://mintcdn.com/cubed3/wCTntgEXVYYYnx4l/logo/light.svg?fit=max&auto=format&n=wCTntgEXVYYYnx4l&q=85&s=8bbf45ba64eac6116629064fac55aad7"}},{"@type":"WebSite","@id":"https://docs.cube.dev#website","name":"Cube Documentation","url":"https://docs.cube.dev","publisher":{"@id":"https://docs.cube.dev/#organization"}},{"@type":"WebPage","@id":"https://docs.cube.dev/api-reference/data/sql-query#webpage","url":"https://docs.cube.dev/api-reference/data/sql-query","name":"SQL query","description":"Run a SQL query against the Cube SQL API and stream the results. The response is newline-delimited JSON: the first line carries the schema (column names and types), optionally lastRefreshTime, and optionally usedPreAggregations naming the pre-aggregations the result was served from; each subsequent line carries a data chunk with one or more result rows.","dateModified":"2026-11-11T18:42:03.031Z","isPartOf":{"@id":"https://docs.cube.dev#website"},"breadcrumb":{"@id":"https://docs.cube.dev/api-reference/data/sql-query#breadcrumb"}},{"@type":"BreadcrumbList","@id":"https://docs.cube.dev/api-reference/data/sql-query#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Core Data Endpoints","item":"https://docs.cube.dev/api-reference/data/json-query"},{"@type":"ListItem","position":2,"name":"SQL query","item":"https://docs.cube.dev/api-reference/data/sql-query"}]},{"@type":["TechArticle","APIReference"],"@id":"https://docs.cube.dev/api-reference/data/sql-query#apireference","headline":"SQL query","name":"SQL query","description":"Run a SQL query against the Cube SQL API and stream the results. The response is newline-delimited JSON: the first line carries the schema (column names and types), optionally lastRefreshTime, and optionally usedPreAggregations naming the pre-aggregations the result was served from; each subsequent line carries a data chunk with one or more result rows.","url":"https://docs.cube.dev/api-reference/data/sql-query","mainEntityOfPage":{"@id":"https://docs.cube.dev/api-reference/data/sql-query#webpage"},"dateModified":"2026-11-11T18:42:03.031Z","publisher":{"@id":"https://docs.cube.dev/#organization"},"isPartOf":{"@id":"https://docs.cube.dev#website"}}]}
{"@context":"https://schema.org","@type":"WebSite","name":"Cube Documentation","publisher":{"@type":"Organization","name":"Cube Documentation"},"provider":{"@type":"Organization","name":"Mintlify","url":"https://mintlify.com"}}
| application-name | Cube Documentation |
| og:site_name | Cube Documentation |
| og:type | website |
| og:image | https://cubed3.mintlify.site/_mintlify/api/og/v2?division=Core+Data+Endpoints&title=SQL+query&description=Run+a+SQL+query+against+the+Cube+[SQL+API](/reference/core-data-apis/sql-api)+and+stream+the+results.+The+response+is+newline-delimited+JSON:+the+first+line+car&theme=6d1e003873cec4de62649d7c&signature=cedc6b510f088c74a375f3591685ce8d975d6770f057511e30b47fa0abe2835f |
| og:image:width | 1200 |
| og:image:height | 630 |
| twitter:card | summary_large_image |
| twitter:image | https://cubed3.mintlify.site/_mintlify/api/og/v2?division=Core+Data+Endpoints&title=SQL+query&description=Run+a+SQL+query+against+the+Cube+[SQL+API](/reference/core-data-apis/sql-api)+and+stream+the+results.+The+response+is+newline-delimited+JSON:+the+first+line+car&theme=6d1e003873cec4de62649d7c&signature=cedc6b510f088c74a375f3591685ce8d975d6770f057511e30b47fa0abe2835f |
| twitter:image:width | 1200 |
| twitter:image:height | 630 |
| msapplication-config | /mintlify-assets/_mintlify/favicons/cubed3/JtLYPWhDFrYGSK8W/_generated/favicon/browserconfig.xml |
| apple-mobile-web-app-title | Cube Documentation |
| msapplication-TileColor | #5339CF |
Links:
| Server | Vercel |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0 |
| Last-Modified | Sun, 22 Nov 2026 19:02:11 GMT |
Viewport: width=device-width, initial-scale=1, viewport-fit=cover