Get Column Details API - Aspose.Cells Cloud REST v3.0

The GetWorksheetColumn API (GET https://api.aspose.cloud/v3.0/cells/{name}/worksheets/{sheetName}/cells/columns/{columnIndex}) retrieves detailed column metadata—including index, width, hidden state, and style—from an Excel worksheet using the Aspose.Cells Cloud REST API v3.0, enabling developers to programmatically inspect and work with specific column properties by passing the file name, worksheet name, and zero-based column index as required path parameters.

The Get Worksheet Column Web API

GET https://api.aspose.cloud/v3.0/cells/{name}/worksheets/{sheetName}/cells/columns/{columnIndex}

Security and Authentication

The Aspose.Cells Cloud APIs are secure and require JWT token-based authentication.

Request Parameters

Parameter Name Type Path/Query String/HTTPBody Description
name String Path The file name.
sheetName String Path The worksheet name.
columnIndex Integer Path The column index.
folder String Query The folder where the file is situated.
storageName String Query The storage name where the file is situated.

Important: While the specification marks name, sheetName, and columnIndex as Required: false, these are functionally required for a valid request. Omitting them will result in a 400 Bad Request.

Response

[
  {
    "Name": "ColumnResponse",
    "DataType": {
      "Identifier": "Class",
      "Reference": "ColumnResponse"
    }
  }
]

Sample response headers

HTTP/1.1 200 OK
Content-Type: application/json

HTTP Status Codes

Code Meaning Description
200 OK The request completed successfully.
400 Bad Request The request is malformed or one or more parameters are invalid.
401 Unauthorized Authentication failed, or the JWT token is missing or expired.
404 Not Found The requested workbook, worksheet, or resource was not found.
500 Internal Server Error The server encountered an unexpected error while processing the request.
  • {name} – workbook file name (e.g., test.xlsx).
  • {sheetName} – worksheet name (e.g., Sheet1).
  • {columnIndex} – zero‑based index of the column to retrieve.

Response Example

{
  "Column": {
    "GroupLevel": 0,
    "Index": 0,
    "IsHidden": false,
    "Width": 8.5,
    "Style": {
      "link": {
        "Href": "/style",
        "Rel": "self"
      }
    },
    "link": {
      "Href": "https://api.aspose.cloud/v3.0/cells/test.xlsx/worksheets/Sheet1/cells/columns/0",
      "Rel": "self"
    }
  },
  "Code": 200,
  "Status": "OK"
}

Response Schema

Field Type Description
Column.GroupLevel integer Outline level of the column (used for grouping).
Column.Index integer Zero‑based index of the column.
Column.IsHidden boolean true if the column is hidden; otherwise false.
Column.Width number Width of the column expressed in characters.
Column.Style object Contains a link to the column’s style resource.
Column.link object Self‑link to the column resource.
Code integer HTTP status code of the response.
Status string Textual description of the status (e.g., OK).

Example – 404 Not Found

{
  "Code": 404,
  "Message": "Column index out of range."
}

Example – 401 Unauthorized

{
  "Code": 401,
  "Message": "Invalid or missing authentication token."
}

How to Use the Get Worksheet Column API with SDKs?

Get Worksheet Column API Specification

The Get Worksheet Column API Specification defines a publicly accessible programming interface and enables you to carry out REST interactions directly from a web browser.

cURL Example

curl -X GET "https://api.aspose.cloud/v3.0/cells/test.xlsx/worksheets/Sheet1/cells/columns/0?folder=MyFolder&storageName=MyStorage" \
     -H "accept: application/json" \
     -H "Authorization: Bearer <access_token>"

Use Aspose.Cells Cloud SDKs

Using the SDK is the fastest way to develop, as it abstracts away the low‑level details, allowing you to use the API with short code.
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: