Skip to main content
DingTalk Spreadsheet OpenAPI provides a set of RESTful interfaces that allow developers to operate DingTalk Spreadsheet documents programmatically. Use these APIs to automate data read/write operations, manage worksheets, look up cells, lock ranges, and more. They are suitable for scenarios such as data synchronization, report generation, and office automation.

Open API overview

DingTalk Spreadsheet provides a rich set of open APIs. Choose the APIs that fit your business needs.

Worksheet

APIDescriptionVersion
Create a worksheetCreate a new worksheet in a spreadsheet document.New
Delete a worksheetDelete a worksheet from a spreadsheet.New
Get a worksheetGet the properties of a worksheet.New
Update a worksheetModify the meta attributes of a specified worksheet in a DingTalk Spreadsheet.New
Get all worksheetsGet information about all worksheets in a specified spreadsheet.New

Rows and columns

APIDescriptionVersion
Delete RecordDelete the specified records.New
Delete ColumnDelete the specified columns.New
Set row height automaticallyAutomatically adjust the height of a specified record in a DingTalk Spreadsheet based on the given font size, so that the content is fully displayed.New
Batch set column widthsSet the widths of multiple consecutive columns starting from a specified column in a DingTalk Spreadsheet at once.New
Batch set row heightsSet the heights of multiple consecutive records starting from a specified record in a DingTalk Spreadsheet at once.New
Append records to a worksheetAppend multiple records of data to the end of existing data in a worksheet.New
Hide or show recordsHide or show records.New
Hide or show columnsHide or show columns.New
Insert records above a specified recordInsert multiple records above a specified record.New
Insert columns to the left of a specified columnInsert multiple columns to the left of a specified column.New

Cell range

APIDescriptionVersion
Merge CellsMerge multiple cells in a specified range of a DingTalk Spreadsheet into one.New
Insert a Dropdown ListSet Dropdown List options for a specified cell range in a DingTalk Spreadsheet.New
Delete a Dropdown ListRemove the Dropdown List configuration set for a specified cell range in a DingTalk Spreadsheet.New
Get a cell rangeGet cell properties.New
Update a cell rangeUpdate cell information.New
Find a cell in a worksheetFind the next cell that matches a given string based on the specified criteria.New
Find all matching cellsSearch for cells containing the target text in a specified worksheet and return a list of matching cell positions.New
Clear data in a cell rangeClear the data in a cell range, excluding formatting.New
Clear all content in a cell rangeClear all content in a cell range, including formatting.New

Conditional Formatting

APIDescriptionVersion
Create a Conditional Formatting ruleCreate a Conditional Formatting rule in a specified worksheet of a DingTalk Spreadsheet.New

Filter

APIDescriptionVersion
Create a FilterCreate a global Filter on a specified worksheet in a DingTalk Spreadsheet and define the Filter range.New
Update a FilterBatch update Filters for multiple columns in a global Filter at once.New
Delete a FilterDelete the global Filter on a specified worksheet, so that all records hidden by the Filter are displayed again.New
Get a FilterQuery the currently active global Filter information on a specified worksheet.New
Sort within a FilterSort data within the global Filter range by a specified column in ascending or descending order.New
Set Filter criteriaSet or update Filter criteria for a specified column in a global Filter.New
Delete Filter criteriaClear the Filter criteria of a specified column in a global Filter, so that the column no longer participates in Filter calculation.New

Filter View

APIDescriptionVersion
Create a Filter ViewCreate a Filter View on a specified worksheet in a DingTalk Spreadsheet, and specify the View name and Filter range.New
Update a Filter ViewUpdate the name, range, or Filter criteria of a specified Filter View.New
Delete a Filter ViewDelete a Filter View and all its Filter criteria on a specified worksheet.New
Get the list of Filter ViewsGet the list of all Filter Views on a specified worksheet.New
Set Filter View criteriaSet or update Filter criteria for a column in a specified Filter View.New
Delete Filter View criteriaClear the Filter criteria of a column in a specified Filter View, so that the column no longer participates in Filter calculation.New

Floating image

APIDescriptionVersion
Create a floating imageGet the list of all floating images in a specified worksheet of a DingTalk Spreadsheet.New
Update a floating imageUpdate the properties of an existing floating image in a DingTalk Spreadsheet.New
Delete a floating imageDelete a floating image from a specified worksheet in a DingTalk Spreadsheet.New

Glossary

workbookId

The unique identifier of a spreadsheet file. It is the nodeId (dentryUuid) returned by the Knowledge Base API, and can also be obtained from the spreadsheet URL. Obtain it in one of the following ways:
  • Method 1: Get it from the spreadsheet URL.
  • Method 2: Get it from the document information.
  • Method 3: Get it through the Knowledge Base API. Call the Get a node or Create a Knowledge Base document API. The returned nodeId (dentryUuid) is the workbookId.

sheetId

The ID or name of a worksheet. Get it through the Get all worksheets API, or pass the worksheet title directly.

rangeAddress

The cell range address, using A1 notation.

operatorId

The unionId of the operator, used to identify the user performing the action and to verify permissions.