Get Page Count for an Excel Worksheet – Aspose.Cells Cloud API
This REST API returns the page count for a worksheet.
Authentication: All Aspose.Cells Cloud endpoints require a Bearer token obtained via the OAuth2 flow. Include the token in the Authorization header as shown in the cURL example below.
REST API
GET https://api.aspose.cloud/v3.0/cells/{name}/worksheets/{sheetName}/pagecount
Request Parameters
| Parameter | Type | Location | Description |
|---|---|---|---|
| name | string | path | Document name. |
| sheetName | string | path | Worksheet name. |
| folder | string | query | Folder that contains the document. |
| storageName | string | query | Name of the storage. |
The OpenAPI Specification defines a publicly accessible programming interface and lets you perform REST interactions directly from a web browser.
You can use the cURL command‑line tool to access Aspose.Cells web services easily. The example below shows how to call the API with cURL.
Response Details
| HTTP Status | Meaning |
|---|---|
| 200 | Success – returns the JSON payload shown above. |
| 401 | Unauthorized – missing or invalid token. |
| 404 | Not Found – the file or worksheet does not exist. |
| 500 | Internal Server Error – unexpected server condition. |
Version History
API version v3.0 (released 2025). If you are using a newer version, refer to the updated endpoint documentation.
Cloud SDK Family
Using an SDK is the fastest way to develop. An SDK abstracts low‑level details so you can focus on your business logic. See 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:
Notes
- The page count reflects the printable layout, taking page breaks, margins, and scaling into account. Hidden rows or columns may affect the result.
- Ensure the target worksheet exists and the file is stored in the specified
folderandstorageNamebefore making the request.