---
id: export-the-sql-query-results-to-a-csv
title: 'Export the SQL query results to a CSV'
description: 'Export the SQL query results to a CSV'
sidebar_label: 'Export the SQL query results to a CSV'
hide_title: true
hide_table_of_contents: true
api: eJzFVm1v2zYQ/ivEYcASTImTrQMCFf2QBklfFnRZ7ewFUZDS0tliSpEKeXKTCfrvw5GyYsceOqwf8kkSdTw+z/Hhw2uhlk5WSOg8pFctFOhzp2pS1kAKkxLF+LdzcdegexAOfaNJqAINqZlCBwkoDqsllZCAkRVCCrlWaOhGFZCAw7tGOSwgJddgAj4vsZKQtkAPNQcrQzhHB113zdG+tsaj54AfDw74kVtDaChMwXsa5X7B7xuJPDll5tB1XfKExFMCHroEXmxkl3WtVS550ujW88zVVWpna3SkIrYKvZdz3LZ8shyx01vMidfCe1nVGtcmwmtZCK4OekrFO7OQWhXicTNE7exCFVhsY7QyN3I5fF4ul0Y2VFqn/sYiFccNlayQuL4YJLCFyOrEyOSn52VyZt1UFQWaVPxlG1FY8z2JUi5Q1Ogq5T0zIitknqP3gkrlWVW2cTluIzjki+xePC+7D5bEzDamSAWf7F5CWAwURGHRC2NJ4L1icW0yGnLwKj8/9yl6ZwidkVp4dAt0Ap2zLhXHRjQG72vMmV0YFDbPG/cvOjyTJHWMC4t7zBun6CFY4u0XgvTqmg2K5JxtMljKuZzCdQL3e7ktcBywRQvV0szZBi8/nkMCWk5RP372Ukkhb5wWe3+KN6cTkUFJVKejkba51KX1lB4dHB2NZK1Gi8ORv9NaTkd4X1tHo3bw126UgciyzAix91ZkcNyfpVD9VLxG6dCJ745PTk7H45vJr7+cfsgAumSAePFApTUrIIeBAaaqeNGlVHxmMrN0afFqGN6fI+0wDvEtXJKYoURZoPOv2ieMMkhFBj2rDMQP/Sm8IfsZTZeZ3czUThnaWSLcZwXu7O6ucn4vF3Ictn6F99rg4xZZ45n6QFd+kYrEDCkvA9tv5dquEU6X3+LpXjLzT8vtbCPrSSD9Kc7o+MEVeJmZiLqQJAfET+rRB1mN+9rOdzh09yWwvtdPxWkALmhLE+CDCYqT8e+QQIVU2gJSmCPXL3QDKXy9ClzrcGzjuWkcb8XWisJTaOf8WxS4QG3rCg31BhB2OiZqa2fJ5lZ36WjUcqoubRlDt5HtpPFkq2WKBBbSKTnV0aWWafi9wJlsNPUwIQE0TcWG0H/yw8NGId9OJhdiyNMlwGjW8w18N8CNo7PxP26whHXi3QUnYS7rSbaWqp8forvQZi3dbcy+HEkGj2thGjR2Zl0lOd/7PybQ92x8HuJfGLw5kO4SnnzjcObQl/83Sced5MxGOmvomxqdD7oiRWz/q0OsnRi3OIwl8VTJcOn0zeh/1fDaqsN9FDrOWksV7u+gq7bX9xXIWjGEQ2YXNM56CMtBAulqF8yKiFt+BW07lR4vne46Hg6A+Hp5VF3sw5Xn9wLSmdQeNwAOVy7sfOwbrF3x9XZ9K69+UJqHoH3d8Bck8Bkf1tr57pqlG8wqYIz/j/Mcg28uZw5tOmtt8IY3pywDbvdW6juIoX/hrFvRtG2MiK7XDeCC9TOwrvsH/lRpvg==
sidebar_class_name: 'get api-method'
info_path: developer-docs/api/superset
custom_edit_url: null
hide_send_button: true
show_extensions: true
---

import MethodEndpoint from '@theme/ApiExplorer/MethodEndpoint';
import ParamsDetails from '@theme/ParamsDetails';
import RequestSchema from '@theme/RequestSchema';
import StatusCodes from '@theme/StatusCodes';
import OperationTabs from '@theme/OperationTabs';
import TabItem from '@theme/TabItem';
import Heading from '@theme/Heading';
import Translate from '@docusaurus/Translate';

<Heading
  as={'h1'}
  className={'openapi__heading'}
  children={'Export the SQL query results to a CSV'}
></Heading>

<MethodEndpoint
  method={"get"}
  path={"/api/v1/sqllab/export/{client_id}/"}
  context={"endpoint"}
>

</MethodEndpoint>

Export the SQL query results to a CSV

<Heading id={'request'} as={'h2'} className={'openapi-tabs__heading'}>
  <Translate id="theme.openapi.request.title">Request</Translate>
</Heading>

<ParamsDetails
  {...require("./export-the-sql-query-results-to-a-csv.ParamsDetails.json")}
>

</ParamsDetails>

<RequestSchema
  {...require("./export-the-sql-query-results-to-a-csv.RequestSchema.json")}
>

</RequestSchema>

<StatusCodes
  {...require("./export-the-sql-query-results-to-a-csv.StatusCodes.json")}
>

</StatusCodes>
