Skip to main content

Data Formats

By default, Sheet Best returns rows as a list of records. Pass the optional _format query parameter on any GET to reshape the response. Pass _raw=1 to return native types (numbers, booleans) instead of strings.

The _format parameter

FormatMapping
records[{column: value}, ..., {column: value}] (default)
dict{column: {index: value}}
list{column: [values]}
series{column: Series(values)}
split{index: [...], columns: [...], data: [...]}
index{index: {column: value}}

Example

curl 'https://api.sheetbest.com/sheets/<id>?_format=records'
curl 'https://api.sheetbest.com/sheets/<id>?_format=dict'
curl 'https://api.sheetbest.com/sheets/<id>?_format=list'
curl 'https://api.sheetbest.com/sheets/<id>?_format=series'
curl 'https://api.sheetbest.com/sheets/<id>?_format=split'
curl 'https://api.sheetbest.com/sheets/<id>?_format=index'

Records (default)

Records format

Dict

Dict format

List

List format

Series

Series format

Split

Split format

Index

Index format

Returning native types with _raw

Cell values are returned as strings by default. Append _raw=1 to get numbers, booleans, and other native JSON types instead.

# Default: values are strings
curl 'https://api.sheetbest.com/sheets/<id>'

# Native types
curl 'https://api.sheetbest.com/sheets/<id>?_raw=1'
ModeExample value
Default (string)"42"
_raw=142

Default JSON output

Raw JSON output

_raw can be combined with any _format value.