API Documentation
Learn how to use the SoCaptcha API for automated captcha verification
Introduction
SoCaptcha provides a powerful API that helps you automate captcha verification processes. Our service supports multiple captcha types including sliding puzzles with both straight-line and curved trajectories, specifically optimized for popular e-commerce platforms like Shopee and Temu.
Base URL
https://www.socaptcha.com
Quick Start
To get started with the SoCaptcha API, you need to:
- Register an account and obtain your API license key
- Install our Chrome extension or integrate directly with the REST API
- Purchase credits and start sending captcha verification requests
Code Example
const baseUrl = "https://www.socaptcha.com";
// Check remaining credits
const creditsUrl = `${baseUrl}/api/license/credits/v1?licenseKey={licenseKey}`;
const response = await fetch(creditsUrl.replace('{licenseKey}', 'your-license-key'), {
method: "GET",
headers: {
"Content-Type": "application/json"
}
}
);
const data = await response.json();
console.log(`Remaining credits: ${data.credits}`);
// Solve a line captcha
const lineUrl = `${baseUrl}/api/shopee/line/v1?licenseKey={licenseKey}`;
const lineResponse = await fetch(lineUrl.replace('{licenseKey}', 'your-license-key'), {
method: "POST",
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify({
puzzle_image_b64: "base64-encoded-puzzle-image",
piece_image_b64: "base64-encoded-piece-image"
})
}
);
const lineResult = await lineResponse.json();
console.log(`Slide proportion: ${lineResult.slideXProportion}`);
Authentication
All API requests require authentication using your license key. You can obtain your license key from your profile page after registration. The license key should be included as a query parameter in your requests:
GET /api/license/credits/v1?licenseKey=your-license-key-here HTTP/1.1
Host: www.socaptcha.com
Content-Type: application/json
Security Note
Check Credits
Check your remaining credit balance before making captcha solving requests.
Endpoint
GET /api/license/credits/v1?licenseKey={licenseKey}
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
licenseKey | string | Yes | Your API license key |
Response
{
"credits": 1250
}
Line Captcha Solving
Solve sliding puzzle captchas with straight-line trajectories. This is the most common type of sliding captcha found on e-commerce websites.
Endpoint
POST /api/{siteType}/line/v1?licenseKey={licenseKey}
Path Parameters
Parameter | Type | Required | Description |
---|---|---|---|
siteType | string | Yes | Target website (shopee, temu) |
licenseKey | string | Yes | Your API license key |
Request Body
{
"puzzle_image_b64": "base64-encoded-puzzle-image",
"piece_image_b64": "base64-encoded-piece-image"
}
Response
{
"slideXProportion": 0.745
}
The `slideXProportion` value represents the proportion (0-1) of the total slider distance needed to solve the captcha.
Curve Captcha Solving
Solve advanced sliding puzzle captchas with curved trajectories and rotation. These captchas require more complex movement patterns and piece rotation tracking.
Endpoint
POST /api/{siteType}/curve/v1?licenseKey={licenseKey}
Request Body
{
"puzzle_image_b64": "base64-encoded-puzzle-image",
"piece_image_b64": "base64-encoded-piece-image",
"slide_piece_trajectory": [
{
"pixels_from_slider_origin": 0,
"piece_rotation_angle": 0,
"piece_center": {
"proportionX": 0.1,
"proportionY": 0.5
}
},
{
"pixels_from_slider_origin": 50,
"piece_rotation_angle": 15,
"piece_center": {
"proportionX": 0.3,
"proportionY": 0.45
}
}
]
}
Trajectory Fields
Field | Type | Description |
---|---|---|
pixels_from_slider_origin | number | Distance in pixels from slider start position |
piece_rotation_angle | number | Rotation angle of the puzzle piece in degrees |
piece_center.proportionX | number | X position as proportion (0-1) of container width |
piece_center.proportionY | number | Y position as proportion (0-1) of container height |
Response
{
"pixelsFromSliderOrigin": 142
}
Error Handling
The SoCaptcha API uses standard HTTP status codes to indicate the success or failure of requests.
HTTP Status Codes
Code | Meaning | Description |
---|---|---|
200 | Success | Request completed successfully |
400 | Bad Request | Invalid request parameters or format |
401 | Unauthorized | Invalid or missing license key |
402 | Payment Required | Insufficient credits to process request |
500 | Server Error | Internal server error occurred |
Error Response Format
{
"code": 401,
"error": "Invalid license key"
}
Supported Sites
SoCaptcha currently supports captcha solving for the following e-commerce platforms:
Shopee
Supports both line and curve captcha types for Shopee's verification system.
Temu
Complete support for Temu's captcha verification system including both captcha types.
Chrome Extension
Our Chrome extension provides seamless integration with supported websites, automatically detecting and solving captchas as you browse.
Features
- Automatic captcha detection on Shopee and Temu
- Real-time solving with human-like mouse movements
- Credit balance monitoring
- Configurable API key management
- Support for both line and curve captcha types
Installation
- Download the extension package from your account dashboard
- Open Chrome and navigate to chrome://extensions/
- Enable "Developer mode" in the top right corner
- Click "Load unpacked" and select the extension folder
- Enter your API license key in the extension popup
Best Practices
Follow these recommendations to ensure optimal performance and reliability when using the SoCaptcha API.
Rate Limiting
Implement proper rate limiting to avoid overwhelming the API. We recommend no more than 10 requests per second.
Error Handling
Always implement proper error handling and retry logic for failed requests. Check your credit balance before making requests.
Image Quality
Ensure captcha images are of good quality and properly encoded in base64 format for best solving accuracy.
Monitoring
Monitor your API usage and credit consumption regularly through your dashboard to avoid service interruptions.