🔧 Solve image CAPTCHAs via webhook using CaptchaSonic
⚡ 12 views · 🔧 Miscellaneous
💡 Pro Tip — Since TikTok doesn’t have a public API, getting data usually means fragile HTTP scraping. ScraperNode is a community node that gives you clean JSON for TikTok profiles, videos, and comments — drop it into your workflow and skip the parsing.
Description
Quick overview
This workflow exposes a POST webhook that accepts base64 CAPTCHA images and uses the CaptchaSonic community node to solve multiple CAPTCHA types (OCR, reCAPTCHA v2, AWS WAF, TikTok, Binance, and more), returning a standardized JSON response.
How it works
- Receives a POST request on the
captchasonic-solvewebhook containing a JSON body with atypeand required fields likeimage(base64) and sometimesquestion. - Validates the request payload, checks required fields for the requested CAPTCHA type, and routes the request to the matching solver.
- Sends the image challenge to CaptchaSonic using the appropriate recognition operation for the selected type.
- Normalizes the CaptchaSonic result into a consistent JSON structure with
success,type,solution, and asolvedAttimestamp. - Returns the formatted solution to the original webhook caller, or responds with HTTP 400 and an error message if validation fails.
Setup
- Self-host n8n and install the
n8n-nodes-captchasoniccommunity node. - Create and select a CaptchaSonic API credential (API key from https://my.captchasonic.com) for the CaptchaSonic nodes.
- Activate the workflow, copy the production webhook URL for
captchasonic-solve, and configure your client to POST JSON withtypeplus the required fields (including a base64imageand optionalquestiondepending on type).
Requirements
- • Self-hosted n8n (community nodes are not available on n8n Cloud)
- • CaptchaSonic API key from https://my.captchasonic.com
Customization
- • Add new CaptchaSonic solver branches to the Switch node for additional CAPTCHA types
- • Modify the Format CAPTCHA Solution code node to change the JSON response structure
- • Adjust validation rules in the Validate CAPTCHA Request code node to add or remove required fields
Additional info
Supported CAPTCHA types: imagetotext, recaptchav2, popularcaptcha, awswaf, blsocr, tiktok, binance, visionengine. Send a POST request with {“type”: “imagetotext”, “image”: ""} to the webhook URL. Full API docs at https://docs.captchasonic.com
🔗 Nodes Used
Webhook
📥 Import
Download workflow.json and import into n8n:
Workflow menu → Import from File