Sizes
See how much bandwidth you can save by compressing files in any of the deflate, gzip and brotli formats
start overApi Reference
post/api/sizes
Request Parameters
Content-Type: multipart/form-data
| Parameter | Source | Description |
|---|---|---|
| text | formdata | Text for which you want to see the compressed size. |
| files | formdata | Files for which you want to see the compressed size. Files should have unique names. |
Note
text and files are both optional but at least one must be provided. If text is empty, at least 1 file must be provided.Response
Content-Type: application/json
| Status Code | Description |
|---|---|
| 200 | Successfully compressed & measured file sizes. Example: |
| 400 | Invalid request parameters |