This REST API retrieves the title of a chart that is stored in a worksheet of an Excel workbook.
Prerequisites: To call this endpoint you must have a valid Aspose.Cells Cloud OAuth2/JWT access token with the Cells.Read scope. The workbook must already be uploaded to the specified storage location.
GetWorksheetChartTitle API
GET https://api.aspose.cloud/v3.0/cells/{name}/worksheets/{sheetName}/charts/{chartIndex}/title
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.
Response fields
Field
Description
Title.Text
The actual text displayed as the chart title.
Title.Font.Name
Font family used for the title (e.g., Arial).
Title.Font.Size
Font size in points.
Title.Font.IsBold
Indicates whether the title text is bold.
Response status codes
Code
Description
200 OK
The chart title was retrieved successfully.
401 Unauthorized
Authentication failed or token is missing/invalid.
404 Not Found
The specified workbook, worksheet, or chart does not exist.
500 Internal Server Error
An unexpected server error occurred.
Notes: The chart index is zero‑based; ensure the chart exists. If the workbook has not been uploaded, upload it first using the appropriate API.
How to extract the title in a script (using jq)
# Assuming the JSON response is saved in response.jsontitle=$(jq -r '.Title.Text' response.json)echo"Chart title: $title"
Cloud SDK Family
Using an SDK is the best way to speed up development. An SDK handles low‑level details so you can 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 make calls to Aspose.Cells web services using various SDKs:
You can also refer to the individual SDK documentation for more advanced scenarios, such as updating or deleting a chart title.