queries

SQL query

Execute a SQL query against a dataset or data project.

SQL results are available in a variety of formats. By default, application/json will be returned. Set the Accept header to one of the following values in accordance with your preference:

  • text/csv
  • application/json
  • application/json-l
  • application/x-ndjson

New to SQL? Check out data.world's SQL manual .

post/sql/{owner}/{id}

Request

  • Base URL
    https://api.data.world/v0
  • URL
    https://api.data.world/v0/sql/{owner}/{id}
  • Auth
    HTTP bearer

Path parameters

ownerstring required
idstring required

Query parameters

dialect'DW_SQL' | 'POSTGRESQL'
diagnoseboolean

Request body

datasetVersionsstring
includeTableSchemaboolean
querystring required
queryRunTokenstring

Response

default response

Changes

No recorded changes to this operation across all 2 revisions of this API.