Skip to content
Get started

Download table data

structured_sheets.tables.download(strtable_id, TableDownloadParams**kwargs) -> BinaryResponseContent
GET/v1/structured-sheets/{structured_sheet_id}/tables/{table_id}/download

Download the table data in the specified format.

Available formats:

  • parquet: Apache Parquet columnar format (recommended for data analysis)
  • csv: Comma-separated values (compatible with any spreadsheet application)
ParametersExpand Collapse
structured_sheet_id: str

The unique identifier of the structured sheet conversion.

table_id: str

The unique identifier of the table.

format: Literal["parquet", "csv"]

The format to download the table data in.

One of the following:
"parquet"
"csv"
ReturnsExpand Collapse
BinaryResponseContent

Download table data

import os
from deeptable import DeepTable

client = DeepTable(
    api_key=os.environ.get("DEEPTABLE_API_KEY"),  # This is the default and can be omitted
)
response = client.structured_sheets.tables.download(
    table_id="tbl_01kfxgjd94fn9stqm45rqr2pnz",
    structured_sheet_id="ss_01kfxgjd94fn9stqm42nejb627",
    format="parquet",
)
print(response)
content = response.read()
print(content)
Returns Examples