Skip to content
Get started

Download structured sheet export

client.StructuredSheets.Download(ctx, structuredSheetID, query) (*Response, error)
GET/v1/structured-sheets/{structured_sheet_id}/download

Download the structured data in the specified format. Only available when conversion status is 'completed'.

Available formats:

  • sqlite: SQLite database containing all extracted tables
  • cell_labels: CSV file with cell-level semantic labels
ParametersExpand Collapse
structuredSheetID string

The unique identifier of the structured sheet conversion.

query StructuredSheetDownloadParams
Format param.Field[StructuredSheetDownloadParamsFormat]optional

The export format to download.

const StructuredSheetDownloadParamsFormatSqlite StructuredSheetDownloadParamsFormat = "sqlite"
const StructuredSheetDownloadParamsFormatCellLabels StructuredSheetDownloadParamsFormat = "cell_labels"
ReturnsExpand Collapse
type StructuredSheetDownloadResponse interface{…}

Download structured sheet export

package main

import (
  "context"
  "fmt"

  "github.com/deeptable-com/deeptable-go"
  "github.com/deeptable-com/deeptable-go/option"
)

func main() {
  client := deeptable.NewClient(
    option.WithAPIKey("My API Key"),
  )
  response, err := client.StructuredSheets.Download(
    context.TODO(),
    "ss_01kfxgjd94fn9stqm42nejb627",
    deeptable.StructuredSheetDownloadParams{

    },
  )
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", response)
}
Returns Examples