Simple and powerful API wrappers for solving hCaptcha challenges across multiple programming languages.
Choose your preferred language and get started in minutes.
import requests
import time
class RazorCapClient:
"""Clean wrapper for RazorCap API"""
def __init__(self, api_key: str):
self.api_key = api_key
self.base_url = "https://api.razorcap.cc"
def solve_hcaptcha(
self,
sitekey: str,
siteurl: str,
proxy: str,
rqdata: str = None
) -> str:
"""
Solve hCaptcha challenge
Complete reference for all available endpoints.
/tasks/create_taskCreates a new CAPTCHA solving task and returns a task ID for polling.
{
"key": "your-api-key",
"type": "hcaptcha",
"data": {
"sitekey": "a9b5fb07-92ff-493f-86fe-352a2803b3df",
"siteurl": "discord.com",
"proxy": "http://user:pass@host:port",
"rqdata": "optional-rqdata"
}
}{
"task_id": "abc123..."
}/tasks/get_result/:task_idRetrieves the result of a task. Poll this endpoint until status is "success".
{
"status": "pending"
}{
"status": "success",
"response_key": "P1_eyJ0eXAiOiJKV1QiLCJhbGc..."
}Details of all available parameters for the API.
| Parameter | Type | Required | Description |
|---|---|---|---|
key | string | Required | Your RazorCap API key |
type | string | Required | Task type (currently only "hcaptcha") |
sitekey | string | Required | The site key from the target website |
siteurl | string | Required | The URL where the captcha is displayed |
proxy | string | Required | Proxy in format http://user:pass@host:port |
rqdata | string | Optional | Optional rqdata parameter if required |