Website Screenshot Service

This workflow generates website screenshots via a webhook, uploads them to Cloudinary, and emails results using Mailgun. Key nodes include Webhook Trigger (receives requests), Process Request (validates inputs), Generate Standard/Full Page Screenshot (uses ScreenshotAPI), Upload Standard/Full Page Image (stores to Cloudinary), Email Provided? (checks for email), Send Email with Screenshots (sends via Mailgun), and Success Response (returns results). It leverages ScreenshotAPI, Cloudinary, and Mailgun APIs for screenshot generation and delivery.\n\nSetup Requirements: Install n8n from n8n.io or sign up at cloud.n8n.io. Import the JSON into n8n’s workflow editor. Configure Webhook Trigger with path screenshot and HTTP method POST. Obtain ScreenshotAPI key from screenshotapi.net (Account > API Keys). Get Cloudinary credentials (Cloud Name, API Key, API Secret) from cloudinary.com (Dashboard). Acquire Mailgun API key and domain from mailgun.com (Domains > API Keys). In n8n, go to Credentials, add ScreenshotAPI (HTTP Basic Auth, API key as password), Cloudinary (HTTP Basic Auth, API key as username, API secret as password), and Mailgun (HTTP Basic Auth, API key as password). Handle errors like invalid URL (400: Invalid URL provided) or missing Cloudinary credentials (401: Unauthorized).\n\nTesting and Deployment: Import the JSON into n8n. Test with curl -X POST http://your-n8n-instance/screenshot -d '{"url":"https://example.com","email":"test@example.com"}'. Verify Generate Standard/Full Page Screenshot creates images and Upload Standard/Full Page Image stores them in Cloudinary. Check Send Email with Screenshots delivers to the provided email with image URLs. Confirm Success Response returns {"status":"success","screenshots":{...}}. Simulate errors with {"url":"invalid"} to trigger {"error":"Invalid URL provided"}. Ensure Email Provided? skips email if none is provided. Activate the workflow in n8n. Share the webhook URL with your application. Monitor logs for issues like rate limits (429) or invalid API keys (401: Unauthorized). If images fail to generate, verify ScreenshotAPI key and URL format. If emails fail, check Mailgun credentials and domain. Deploy for reliable screenshot generation and delivery.

$5.49

Workflow steps: 9

Integrated apps: webhook, code, httpRequest

Website Screenshot Service preview