API Documentation

Simple and powerful API wrappers for solving hCaptcha challenges across multiple programming languages.

Quick Start

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
        

API Reference

Complete reference for all available endpoints.

POST

Create Task

/tasks/create_task

Creates a new CAPTCHA solving task and returns a task ID for polling.

Request Body

{
  "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"
  }
}

Response

{
  "task_id": "abc123..."
}
GET

Get Result

/tasks/get_result/:task_id

Retrieves the result of a task. Poll this endpoint until status is "success".

Response (Pending)

{
  "status": "pending"
}

Response (Success)

{
  "status": "success",
  "response_key": "P1_eyJ0eXAiOiJKV1QiLCJhbGc..."
}

Parameters

Details of all available parameters for the API.

ParameterTypeRequiredDescription
keystringRequiredYour RazorCap API key
typestringRequiredTask type (currently only "hcaptcha")
sitekeystringRequiredThe site key from the target website
siteurlstringRequiredThe URL where the captcha is displayed
proxystringRequiredProxy in format http://user:pass@host:port
rqdatastringOptionalOptional rqdata parameter if required