Skip to main content
Are you experiencing issues obtaining the token?
Contact support

shein

Preview of a Shein click captcha: a photo of brown sneakers with three tilted icons on it, and a small row of reference icons under the picture; the icons must be matched and clicked in order.

CapMonster Cloud MCP
CapMonster Cloud MCP can also be used to detect and solve CAPTCHA
Attention!

Using proxy servers is not required for this task.


The request must contain a single image in base64 format.

Request parameters​


IMPORTANT: obtain the base64 image directly before creating the task to avoid errors during solving (see section How to get base64).


type<string>required

ComplexImageTask


class<string>required

recognition


imagesBase64<array>required

Base64-encoded image (wrapped in an array, without the data:image/png;base64, prefix).


Task (inside metadata)<string>required

Task name: "shein"

Create task method​

POST
https://api.capmonster.cloud/createTask

Request example

{
"clientKey": "API_KEY",
"task": {
"type": "ComplexImageTask",
"class": "recognition",
"imagesBase64": [
"base64"
],
"metadata": {
"Task": "shein"
}
}
}

Example task:

Shein captcha example 1: A photo with three icons overlaid (a document, a star, a thumbs-up); the bottom row shows the reference icons star outline, thumbs-up and document in the required order. Shein captcha example 2: A photo with three icons overlaid (a document, a tag, a hand or glove shape); the bottom row shows the reference icons tag, thumbs-up and document in the required order.

Response example

{
"errorId":0,
"taskId":143998457
}

Get task result method​

POST
https://api.capmonster.cloud/getTaskResult

Request example

{
"clientKey":"API_KEY",
"taskId": 143998457
}

Response example:
The response contains the coordinates that must be clicked in a specific order.

{
"solution": {
"answer": [
{ "X": 69.0, "Y": 201.954889 },
{ "X": 128.0, "Y": 281.54887104 },
{ "X": 181.00000776, "Y": 49.89473468 }
],
"metadata": {
"AnswerType": "Coordinate"
}
},
"cost": 0.0003,
"status": "ready",
"errorId": 0,
"errorCode": null,
"errorDescription": null
}

How to get Base64​

Images on pages can be represented either as a URL or already encoded in Base64 format. To find the required value, right-click the captcha image, select Inspect, and carefully examine the Elements section or network requests — there you can find either the image URL or the encoded content.

  1. Open your website where the captcha is displayed in the browser.
  2. Right-click the captcha element and select Inspect.

Chrome DevTools Elements panel: the captcha img element has a src of “data/gif;base64,...”; the Current source value in the hover tooltip is outlined in red and is the Base64 string to copy.

Use the SDK library​

Show code (for browser)
// https://github.com/CapMonsterCloud/capmonster-nodejs-captcha-solver

import {
CapMonsterCloudClientFactory,
ClientOptions,
ComplexImageTaskRecognitionRequest
} from "@zennolab_com/capmonstercloud-client";

document.addEventListener("DOMContentLoaded", async () => {

const API_KEY = "YOUR_API_KEY"; // Specify your CapMonster Cloud API key

const client = CapMonsterCloudClientFactory.Create(
new ClientOptions({ clientKey: API_KEY })
);

// Proxies are not required for ComplexImageTaskRecognitionRequest
const sheinRequest = new ComplexImageTaskRecognitionRequest({
imagesBase64: ["your_image_base64"],
metaData: {
Task: "shein",
},
});

// You can check your balance if necessary
const balance = await client.getBalance();
console.log("Balance:", balance);

const result = await client.Solve(sheinRequest);
console.log("Solution:", result.solution);
});
Show code (Node.js)
// https://github.com/CapMonsterCloud/capmonster-nodejs-captcha-solver

const {
CapMonsterCloudClientFactory,
ClientOptions,
ComplexImageTaskRecognitionRequest,
} = require("@zennolab_com/capmonstercloud-client");

const API_KEY = "YOUR_API_KEY"; // Specify your CapMonster Cloud API key

async function solveShein() {
const client = CapMonsterCloudClientFactory.Create(
new ClientOptions({ clientKey: API_KEY }),
);
// Proxies are not required for ComplexImageTaskRecognitionRequest
const sheinRequest = new ComplexImageTaskRecognitionRequest({
imagesBase64: ["your_image_base64"],
metaData: {
Task: "shein",
},
});

// You can check your balance if necessary
const balance = await client.getBalance();
console.log("Balance:", balance);

const result = await client.Solve(sheinRequest);
console.log("Solution:", result.solution);
}

solveShein().catch(console.error);