PDF Squeezer API Sign Up

PDF Compression REST API with cURL

Call the PDF Squeezer compress endpoint from the command line or any environment that supports cURL. Replace YOUR_API_KEY with your API key.

curl -X POST https://api.pdfsqueezer.io/v1/compress \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "file=@/path/to/original.pdf" \
  -F "quality=85" \
  -F "maxDimension=1600" \
  -F "stripMetadata=true" \
  -F "convertToJpeg=true" \
  -o optimized.pdf

Response headers include X-Compression-Ratio with the size reduction. Full endpoint reference ยท Authentication

Get a free API key