Get Cells Properties
This REST API demonstrates how to retrieve a specific cell in an Excel file.
REST API
GET http://api.aspose.cloud/v3.0/cells/{name}/worksheets/{sheetName}/cells/{cellOrMethodName}
Security and Authentication
The Aspose.Cells Cloud APIs are secure and require JWT token-based authentication.
Request Parameters
| Parameter Name | Type | Location | Description |
|---|---|---|---|
| name | string | path | The name of the Excel document. |
| sheetName | string | path | The name of the worksheet containing the cell. |
| cellOrMethodName | string | path | The cell name or a predefined method name (e.g., firstcell, endcell, maxrow, maxdatarow, maxcolumn, maxdatacolumn, minrow, mindatarow, mincolumn, mindatacolumn). |
| folder | string | query | The folder where the document is stored. |
| storageName | string | query | The name of the storage service. |
Response
Return the CellResponse.
- Response Fields Overview
| Field | Type | Description |
|---|---|---|
Name |
string | Address of the cell (e.g., F341). |
Row |
integer | Zero‑based row index. |
Column |
integer | Zero‑based column index. |
Value |
string | The cell’s displayed value. |
Type |
string | Data type of the cell (e.g., IsString). |
Formula |
string | Formula text if the cell contains a formula. |
IsFormula |
bool | Indicates whether the cell contains a formula. |
IsMerged |
bool | Indicates whether the cell is part of a merged range. |
IsArrayHeader |
bool | Indicates whether the cell is an array header. |
IsInArray |
bool | Indicates whether the cell belongs to an array. |
IsErrorValue |
bool | Indicates whether the cell contains an error value. |
IsInTable |
bool | Indicates whether the cell is inside a table. |
IsStyleSet |
bool | Indicates whether a style is applied to the cell. |
HtmlString |
string | HTML‑encoded representation of the cell’s value. |
Style.link |
object | Hyperlink to the style resource. |
{
"Status":"OK",
"Code":200,
"Cell":{
"Name":"A1",
"Row": 0,
"Column":0,
"Value": "Hello Aspose.Cells",
"Type":"String",
"Formula" : "",
...
}
}
Http Status Codes
| Code | Meaning | Description |
|---|---|---|
| 200 | OK | Compression succeeded; response contains compressed file details. |
| 400 | Bad Request | Missing or invalid parameters (e.g., unsupported file type). |
| 401 | Unauthorized | Invalid or missing JWT token. |
| 413 | Payload Too Large | Uploaded file exceeds size limit. |
| 500 | Internal Server Error | Unexpected server error. |
How to Use the GetWorksheetCell API with SDKs
GetWorksheetCell API Specification
The OpenAPI Specification defines a publicly accessible programming interface and lets you carry out REST interactions directly from a web browser.
You can use the cURL command‑line tool to access Aspose.Cells web services easily. The following example shows how to make a call to the Cloud API with cURL.
Use Aspose.Cells Cloud SDKs
Using an SDK is the most efficient way to accelerate development. An SDK abstracts low‑level details, allowing you to focus on your project tasks. Please check out the GitHub repository for a complete list of Aspose.Cells Cloud SDKs.
The following code examples demonstrate how to call Aspose.Cells web services using various SDKs:
How to retrieve a specific cell
- Get Cell Data from a Worksheet
- Get First Cell from Excel Worksheet
- Get Last Cell of Excel Worksheet
- Get MaxRow from Excel Worksheet
- Get MaxDataRow from Excel Worksheet
- Get MaxColumn from Excel Worksheet
- Get MaxDataColumn from Excel Worksheet
- Get MinRow from Excel Worksheet
- Get MinDataRow from Excel Worksheet
- Get MinColumn from Excel Worksheet
- Get MinDataColumn from Excel Worksheet