Documentation
Learn how to integrate DevUtils APIs into your applications.
Getting Started
To use the DevUtils API, you need an API key. You can create one in your dashboard.
Authentication
Include your API key in the Authorization header of every request:
Authorization: Bearer YOUR_API_KEYScreenshot API
Generate screenshots of any webpage instantly. Supports full page captures, custom viewports, and mobile rendering.
POST /v1/screenshot
Example Request
curl -X POST https://api.devutils.io/v1/screenshot \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com",
"fullPage": true,
"viewport": { "width": 1920, "height": 1080 }
}'Example Response
{
"success": true,
"data": {
"image_url": "https://cdn.devutils.io/screenshots/abc123.png",
"width": 1920,
"height": 3200,
"format": "png"
}
}HTML to PDF
Convert any webpage or raw HTML into a PDF document. Supports custom page sizes, orientations, and headers/footers.
POST /v1/pdf
Example Request
curl -X POST https://api.devutils.io/v1/pdf \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com",
"pageSize": "A4",
"orientation": "portrait"
}'Example Response
{
"success": true,
"data": {
"pdf_url": "https://cdn.devutils.io/pdfs/xyz789.pdf",
"pages": 3,
"size": "245KB"
}
}Webhook Inspector
Create temporary webhook URLs to test and debug your integrations. Inspect incoming requests with full headers and payload details.
POST /v1/webhook/create
Example Request
curl -X POST https://api.devutils.io/v1/webhook/create \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"expires_in": 3600
}'Example Response
{
"success": true,
"data": {
"webhook_url": "https://hooks.devutils.io/abc123xyz",
"expires_at": "2024-01-15T15:30:00Z"
}
}