Developer API
Integrate our conversion and optimization core directly into your software pipelines.
Available Endpoints
POST/api/v1/image/compress
Compresses file sizes for PNG, JPG, or SVG image uploads.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| file | file | Yes | Image file to compress. |
| quality | number | No | Compression factor (1 to 100). Default: 80. |
POST/api/v1/pdf/merge
Merges multiple PDF binary structures into a single file payload.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| files | file[] | Yes | List of PDF binary documents. |
POST/api/v1/data/csv-to-json
Transforms CSV comma-separated table formatting to standard JSON schema arrays.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| csv_data | string | Yes | String of tabular CSV data rows. |
Code Sandbox
curl -X POST https://easytoconvert.com/api/v1/image/compress \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-F "file=@/path/to/image.png" \
-F "quality=75"Authentication Token
API requests require a Bearer token in the Authorization header. You can generate tokens on your User Dashboard. Keep tokens private.
Go create token