Complete reference and examples for consuming the RocketUtils API.
All endpoints require an API Key passed in the custom header x-api-key.
Example header: x-api-key: rk_your_key_here
Monitor your current monthly quota and limits programmatically.
curl -X GET https://rocketutils.dev/v1/usage \ -H "x-api-key: YOUR_KEY"
Capture a high-quality screenshot of any public URL.
{
"url": "https://google.com" // Required
}
curl -X POST https://rocketutils.dev/v1/screenshot \
--header "x-api-key: YOUR_KEY" \
--header "Content-Type: application/json" \
--data '{"url": "https://example.com"}' \
--output screenshot.png
Generate PRint-ready PDFs from raw HTML string.
{
"html": "<h1>Invoice</h1>" // Required
}
curl -X POST https://rocketutils.dev/v1/pdf \
--header "x-api-key: YOUR_KEY" \
--header "Content-Type: application/json" \
--data '{"html": "Hello
"}' \
--output doc.pdf
Compress and convert images to high-performance WebP format. Ideal for reducing website load times.
Input Form-Data
image: File (JPG, PNG, WEBP)Response
Binary WebP buffer with image/webp header.
curl -X POST https://rocketutils.dev/v1/optimize \ -H "x-api-key: YOUR_KEY" \ -F "image=@photo.jpg" \ --output optimized.webp
Learn how to generate pixel-perfect invoices at scale without Puppeteer headaches.
Deep-dive into memory leaks, zombie processes, and scaling PDF generation.
Automate your social share images using HTML templates and our Screenshot API.
Turn your internal dashboards into clean, automated PDF reports for your clients.