Get metadata from Excel files - Aspose.Cells Cloud API
Contents
[
Hide
]
This REST API retrieves metadata from one or more Excel files.
The request must include an Authorization: Bearer <access_token> header obtained via the OAuth 2.0 client‑credentials flow.
Prerequisites: To call this endpoint you must have a valid access token obtained from the Aspose Cloud OAuth 2.0 token endpoint. Example curl request to acquire a token:
curl -X POST "https://api.aspose.cloud/connect/token" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "grant_type=client_credentials&client_id=<your_client_id>&client_secret=<your_client_secret>"
REST API
POST https://api.aspose.cloud/v3.0/cells/metadata/get
Query Parameter
| Parameter Name | Type | Description |
|---|---|---|
| type | string | ALL / BuiltIn / Custom – specifies which metadata groups to return. |
Request Body Parameter
| Parameter Name | Type | Description |
|---|---|---|
| excel file | data file | The Excel file supplied as the first part of the multipart request. |
Response
[
{
"Name": "Author",
"Value": "John Doe",
"BuiltIn": true,
"IsReadOnly": false
},
{
"Name": "CustomProp1",
"Value": "Custom Value",
"BuiltIn": false,
"IsReadOnly": false
}
]
| Code | Meaning | When |
|---|---|---|
| 200 | Success | Metadata returned. |
| 400 | Bad Request | Missing file or invalid query. |
| 401 | Unauthorized | Invalid or missing token. |
| 404 | Not Found | Specified file not found. |
| 500 | Internal Server Error | Unexpected server failure. |
The API returns these standard HTTP status codes together with an error‑response JSON object when applicable.
Cloud SDK Family
Using a SDK accelerates development by handling low‑level details. 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 with various SDKs: