Repair Excel Files
This REST API allows you to repair Excel files.
- Repair XLS, XLSX, XLSM, XLSB, ODS and other spreadsheet formats.
- Supports uploading multiple files in a single request.
Aspose.Cells Cloud Excel Repair recovers data from corrupt Excel files online without any installation. Corrupted Excel files are problematic because they cannot be opened. You can try the Aspose.Cells Cloud Excel Repair app to recover data from such files.
REST API
The Repair Excel Files endpoint repairs corrupted spreadsheet files and returns the repaired content.
POST https://api.aspose.cloud/v3.0/cells/repair
Security and Authentication
The Aspose.Cells Cloud APIs are secure and require JWT token-based authentication.
Request Parameters
| Parameter Name | Type | Location | Description |
|---|---|---|---|
| file | file | formData (multipart) | File to upload |
| format | string | query | Desired output format. If omitted (null), the output format defaults to the same format as the input file. |
Response
{
"Status" : "OK",
"Code" : 200,
"Filename" : "[merged filename]",
"Filesize" : [file size],
"FileContent" : "[Base64String]"
}
Response 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 PostRepair API with SDKs
PostRepair 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 calls to the Cloud API with cURL.
On success the service returns HTTP 200 with a JSON payload containing a Files array. In error situations the API uses standard HTTP status codes:
- 400 Bad Request – Invalid parameters or unrecoverable file.
- 401 Unauthorized – Missing or invalid JWT token.
- 413 Payload Too Large – Uploaded file exceeds the allowed size.
- 500 Internal Server Error – Unexpected server‑side failure.
Cloud SDK Family
Using an SDK is the best way to speed up development. An SDK handles low‑level details and lets you 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: