curl -X POST https://captcha.vast.sh/api/solver/getBalance \ -H "Content-Type: application/json" \ -d '{"clientKey": "YOUR_API_KEY"}'
HCaptchaTask
enterprise
true
curl -X POST https://captcha.vast.sh/api/solver/createTask \ -H "Content-Type: application/json" \ -d '{ "clientKey": "YOUR_API_KEY", "task": { "type": "HCaptchaTask", "websiteURL": "https://discord.com/register", "websiteKey": "a9b5fb07-92ff-493f-86fe-352a2803b3df", "proxy": "user:pass@ip:port", "enterprise": true, "invisible": true } }'
taskId
curl -X POST https://captcha.vast.sh/api/solver/getTaskResult \ -H "Content-Type: application/json" \ -d '{ "clientKey": "YOUR_API_KEY", "taskId": "TASK_ID_FROM_PREVIOUS_STEP" }'
import requests import time API_KEY = "YOUR_API_KEY" API_URL = "https://captcha.vast.sh/api/solver" # Create a new task task_data = { "clientKey": API_KEY, "task": { "type": "RecaptchaV2Task", "websiteURL": "https://example.com/recaptcha", "websiteKey": "6LcR_TAUAAAAAMtflUgIXnBu1ldPGo8YlHXKA0fy" } } response = requests.post(f"{API_URL}/createTask", json=task_data) task_id = response.json()["taskId"] # Wait for the result while True: result_data = { "clientKey": API_KEY, "taskId": task_id } response = requests.post(f"{API_URL}/getTaskResult", json=result_data) result = response.json() if result.get("status") == "ready": print(f"Captcha solved: {result.get('solution', {}).get('gRecaptchaResponse')}") break print("Waiting for solution...") time.sleep(3)