### Setup All Connected Devices Script Source: https://docs.omocaptcha.com/lenh-adb-dieu-khien-apk A batch script to automate the setup process for all connected Android devices. It configures accessibility, battery optimization, API key, mode, and detection power. ```bat @echo off setlocal enabledelayedexpansion set PKG=omocaptcha.com set RCV=%PKG%/com.captcha.reslover.Api.LocalApiReceiver set KEY=CLIENT_KEY_XXX set MODE=ATX echo === Setup tat ca may === for /f "tokens=1" %%d in ('adb devices ^| findstr /R "device$"') do ( echo. echo --- Setup device %%d --- adb -s %%d shell settings put secure enabled_accessibility_services %PKG%/com.captcha.reslover.Core.MainService adb -s %%d shell settings put secure accessibility_enabled 1 adb -s %%d shell dumpsys deviceidle whitelist +%PKG% adb -s %%d shell am broadcast -n %RCV% -a %PKG%.api.SET_KEY --es key "%KEY%" adb -s %%d shell am broadcast -n %RCV% -a %PKG%.api.SET_MODE --es mode "%MODE%" adb -s %%d shell am broadcast -n %RCV% -a %PKG%.api.POWER --ez on true echo Done %%d ) echo. echo === Xong tat ca === pause ``` -------------------------------- ### Querying Documentation via GET Request Source: https://docs.omocaptcha.com/tai-lieu-api/shopee/shopeesliderwebtask To get additional information not directly on the page, perform an HTTP GET request to the page URL with an 'ask' query parameter containing your specific question. ```http GET https://docs.omocaptcha.com/tai-lieu-api/shopee/shopeesliderwebtask.md?ask= ``` -------------------------------- ### Querying Documentation Dynamically Source: https://docs.omocaptcha.com/tai-lieu-api/lay-danh-sach-dich-vu To get additional information not directly present on the page, perform an HTTP GET request to the page URL with the 'ask' query parameter. The question should be specific and self-contained. ```http GET https://docs.omocaptcha.com/tai-lieu-api/lay-danh-sach-dich-vu.md?ask= ``` -------------------------------- ### GET Request to List Services Source: https://docs.omocaptcha.com/tai-lieu-api/lay-danh-sach-dich-vu Use this GET request to retrieve a list of available services and their associated pricing. The 'type' query parameter should be set to 'service'. ```http GET https://omocaptcha.com/api/getServicePrice?type=service ``` -------------------------------- ### Get Service List Source: https://docs.omocaptcha.com/tai-lieu-api Retrieve a list of available services. ```APIDOC ## Get Service List ### Description Retrieves a list of all available services. ### Method GET ### Endpoint /api/v1/services ``` -------------------------------- ### HTML with data-sitekey for reCAPTCHA v2 Source: https://docs.omocaptcha.com/tai-lieu-api/recaptcha/recaptchav2tokentask Example HTML structure showing where to find the data-sitekey attribute required for reCAPTCHA v2. ```html
``` -------------------------------- ### Get Service Information Source: https://docs.omocaptcha.com/tai-lieu-api Retrieve information about available service packages. ```APIDOC ## Get Service Information ### Description Retrieves details about the available service packages. ### Method GET ### Endpoint /api/v1/services/packages ``` -------------------------------- ### Get Task Result Success Response Source: https://docs.omocaptcha.com/tai-lieu-api/tiktok/tiktok3dselectobjectphonetask A successful response indicates the task is ready with status 'ready' and provides the solution coordinates for pointA and pointB. ```json { "errorId": 0, "status": "ready", "solution": { "pointA": { "x": 50, "y": 30 }, "pointB": { "x": 100, "y": 70 } } } ``` -------------------------------- ### Get Task Result Request Source: https://docs.omocaptcha.com/tai-lieu-api/recaptcha/recaptchav3tokentask To retrieve the result of a previously created task, send a POST request with your `clientKey` and the corresponding `taskId`. ```json { "clientKey": "API_KEY", "taskId": "49f9f60a-c809-4af0-93c0-0409b72e67e0" } ``` -------------------------------- ### Get Task Result Success Response Source: https://docs.omocaptcha.com/tai-lieu-api/geetest/geetesticoncrushwebtask A successful response indicates the task is ready, with errorId 0 and status 'ready'. The solution contains the captcha solving data, such as swap_positions. ```json { "errorId": 0, "errorCode": "", "errorDescription": "", "status": "ready", "solution": { "swap_positions": [ 4, 7 ] } } ``` -------------------------------- ### Get GeetestIconCrushWebTask Result Source: https://docs.omocaptcha.com/tai-lieu-api/geetest/geetesticoncrushwebtask Use this endpoint to retrieve the solution for a previously created Geetest Icon Crush Web Task. You need to provide your client key and the taskId obtained from the task creation response. ```json { "clientKey": "API_KEY", "taskId": "49f9f60a-c809-4af0-93c0-0409b72e67e0" } ``` -------------------------------- ### Get Task Result Success Response Source: https://docs.omocaptcha.com/tai-lieu-api/zalo/zalosliderphonetask A successful response indicates the task is ready with an errorId of 0 and status 'ready'. The solution contains the start and end coordinates for the slider. ```json { "errorId": 0, "status": "ready", "solution": { "start": { "x": 100, "y": 250 }, "end": { "x": 300, "y": 250 } } } ``` -------------------------------- ### Open App Main Activity Source: https://docs.omocaptcha.com/lenh-adb-dieu-khien-apk Launches the main activity of the specified APK. Ensure the package name is correctly set. ```cmd adb shell am start -n %PKG%/com.captcha.reslover.UI.MainActivity ``` -------------------------------- ### Create Task Source: https://docs.omocaptcha.com/tai-lieu-api/geetest/geetesticoncrushwebtask Initiates a new CAPTCHA solving task for Geetest Icon Crush. Requires a client key, task type, and the CAPTCHA image in base64 format. ```APIDOC ## POST https://api.omocaptcha.com/v2/createTask ### Description Creates a new CAPTCHA solving task. ### Method POST ### Endpoint https://api.omocaptcha.com/v2/createTask ### Parameters #### Request Body - **clientKey** (String) - Required - Your customer account key. - **task.type** (String) - Required - The name of the CAPTCHA service class to solve. - **task.imageBase64** (String) - Required - The CAPTCHA image encoded in base64. ### Request Example ```json { "clientKey": "API_KEY", "task": { "type": "GeetestIconCrushWebTask", "imageBase64": "BASE64_BODY_HERE" } } ``` ### Response #### Success Response (200) - **errorId** (Integer) - 0 indicates success. - **taskId** (String) - The unique identifier for the task. #### Response Example ```json { "errorId": 0, "taskId": "49f9f60a-c809-4af0-93c0-0409b72e67e0" } ``` #### Error Response (Non-200) - **errorId** (Integer) - 1 indicates failure. - **errorCode** (String) - The error code. - **errorDescription** (String) - A description of the error. #### Error Response Example ```json { "errorId": 1, "errorCode": "", "errorDescription": "" } ``` ``` -------------------------------- ### Create Task Source: https://docs.omocaptcha.com/tai-lieu-api/geetest/geetestgobangwebtask Initiates a CAPTCHA solving task for Geetest Gobang Web Task. Requires a client key, task type, and the CAPTCHA image encoded in base64. ```APIDOC ## POST /v2/createTask ### Description Creates a new CAPTCHA solving task for the Geetest Gobang Web Task. ### Method POST ### Endpoint https://api.omocaptcha.com/v2/createTask ### Parameters #### Request Body - **clientKey** (String) - Required - Your account's client key. - **task** (Object) - Required - Details of the task to be performed. - **type** (String) - Required - The type of CAPTCHA service, e.g., "GeetestGobangWebTask". - **imageBase64** (String) - Required - The CAPTCHA image encoded in base64. ### Request Example ```json { "clientKey": "API_KEY", "task": { "type": "GeetestGobangWebTask", "imageBase64": "BASE64_BODY_HERE" } } ``` ### Response #### Success Response (200) - **errorId** (Integer) - 0 for success. - **taskId** (String) - A unique identifier for the created task. #### Response Example ```json { "errorId": 0, "taskId": "49f9f60a-c809-4af0-93c0-0409b72e67e0" } ``` #### Error Response (Non-200) - **errorId** (Integer) - 1 for failure. - **errorCode** (String) - Specific error code. - **errorDescription** (String) - Description of the error. #### Error Response Example ```json { "errorId": 1, "errorCode": "", "errorDescription": "" } ``` ``` -------------------------------- ### Get TiktokSelectObjectWebTask Result Source: https://docs.omocaptcha.com/tai-lieu-api/tiktok/tiktokselectobjectwebtask Retrieve the result of a previously created TiktokSelectObjectWebTask using its taskId. ```APIDOC ## POST /v2/getTaskResult ### Description Retrieves the result of a previously submitted TiktokSelectObjectWebTask. ### Method POST ### Endpoint https://api.omocaptcha.com/v2/getTaskResult ### Parameters #### Request Body - **clientKey** (String) - Required - Your account key. - **taskId** (String) - Required - The unique identifier of the task to retrieve. ### Request Example ```json { "clientKey": "API_KEY", "taskId": "49f9f60a-c809-4af0-93c0-0409b72e67e0" } ``` ### Response #### Success Response (200) - **errorId** (Number) - 0 indicates success. - **status** (String) - "ready" when the result is available. - **solution** (Object) - Contains the coordinates of the selected objects. - **pointA** (Object) - Coordinates for the first point. - **x** (Number) - X-coordinate. - **y** (Number) - Y-coordinate. - **pointB** (Object) - Coordinates for the second point. - **x** (Number) - X-coordinate. - **y** (Number) - Y-coordinate. #### Response Example (Ready) ```json { "errorId": 0, "status": "ready", "solution": { "pointA": { "x": 50, "y": 30 }, "pointB": { "x": 100, "y": 70 } } } ``` #### Processing Response (200) - **errorId** (Number) - 0 indicates success. - **status** (String) - "processing" if the task is still being worked on. Wait 2 seconds and try again. #### Response Example (Processing) ```json { "status": "processing", "errorId": 0, "errorCode": "", "errorDescription": "" } ``` #### Error Response (Non-200) - **errorId** (Number) - 1 indicates an error. - **status** (String) - "fail". - **errorCode** (String) - The specific error code. - **errorDescription** (String) - A description of the error. - **solution** (Object) - Empty object in case of error. #### Error Response Example ```json { "errorId": 1, "errorCode": "ERROR_JOB_STATUS", "errorDescription": "Job failed", "status": "fail", "solution": {} } ``` ``` -------------------------------- ### Set Package and Receiver Variables Source: https://docs.omocaptcha.com/lenh-adb-dieu-khien-apk Define package name and receiver path for subsequent commands. These variables simplify command construction. ```cmd set PKG=omocaptcha.com set RCV=%PKG%/com.captcha.reslover.Api.LocalApiReceiver ``` -------------------------------- ### Get AmznSelectObjectTask Result Source: https://docs.omocaptcha.com/tai-lieu-api/amzn-captcha/amznselectobjecttask Retrieves the result of a previously created AmznSelectObjectTask using its taskId. ```APIDOC ## POST https://api.omocaptcha.com/v2/getTaskResult ### Description Retrieves the result of a previously created AmznSelectObjectTask using its taskId. ### Method POST ### Endpoint https://api.omocaptcha.com/v2/getTaskResult ### Parameters #### Request Body - **clientKey** (String) - Required - Your customer account key. - **taskId** (String) - Required - The unique identifier of the task to retrieve results for. ### Request Example ```json { "clientKey": "API_KEY", "taskId": "49f9f60a-c809-4af0-93c0-0409b72e67e0" } ``` ### Response #### Success Response (200) - **errorId** (Integer) - 0 indicates success. - **status** (String) - The status of the task (e.g., "ready", "processing"). - **solution** (Object) - Contains the solution if the status is "ready". - **objects** (Array of Integers) - The indices of the selected objects. #### Response Example (Ready) ```json { "errorId": 0, "status": "ready", "solution": { "objects": [ 0, 1, 2, 3 ] } } ``` #### Response Example (Processing) ```json { "status": "processing", "errorId": 0, "errorCode": "", "errorDescription": "" } ``` #### Error Response - **errorId** (Integer) - 1 indicates an error. - **status** (String) - "fail". - **errorCode** (String) - The error code. - **errorDescription** (String) - A description of the error. - **solution** (Object) - An empty object. #### Error Response Example ```json { "errorId": 1, "errorCode": "ERROR_JOB_STATUS", "errorDescription": "Job failed", "status": "fail", "solution": {} } ``` ``` -------------------------------- ### Grant Accessibility and Battery Permissions Source: https://docs.omocaptcha.com/lenh-adb-dieu-khien-apk Sets the Accessibility service and whitelists the package for battery optimization. Accessibility permission requires manual confirmation on some devices. ```cmd adb shell settings put secure enabled_accessibility_services %PKG%/com.captcha.reslover.Core.MainService adb shell settings put secure accessibility_enabled 1 ``` ```cmd adb shell dumpsys deviceidle whitelist +%PKG% ``` -------------------------------- ### Create GeetestIconWebTask Request Source: https://docs.omocaptcha.com/tai-lieu-api/geetest/geetesticonwebtask Send this JSON payload to the /v2/createTask endpoint to initiate a GeetestIconWebTask. Ensure you replace 'API_KEY' with your actual key and provide base64 encoded images. ```json { "clientKey": "API_KEY", "task": { "type": "GeetestIconWebTask", "imageBase64": "BASE64_BODY_HERE", "anchorImageBase64s": ["BASE64_ICON_1", "BASE64_ICON_2", "BASE64_ICON_3"] } } ``` -------------------------------- ### Get Tencent Slider Task Result Source: https://docs.omocaptcha.com/tai-lieu-api/tencent/tencentslider Retrieves the result of a previously created CAPTCHA solving task. ```APIDOC ## POST https://api.omocaptcha.com/v2/getTaskResult ### Description Fetches the result of a CAPTCHA solving task using its ID. ### Method POST ### Endpoint https://api.omocaptcha.com/v2/getTaskResult ### Parameters #### Request Body - **clientKey** (String) - Required - Your account key. - **taskId** (String) - Required - The ID of the task to retrieve the result for. ### Request Example ```json { "clientKey": "API_KEY", "taskId": "49f9f60a-c809-4af0-93c0-0409b72e67e0" } ``` ### Response #### Success Response (200) - **errorId** (Number) - 0 indicates success. - **status** (String) - "ready" when the result is available. - **solution** (Object) - Contains the solution details, such as coordinates. - **rects** (Array) - An array of objects, each with x, y, w, h properties representing the sliding position. #### Response Example (Ready) ```json { "errorId": 0, "status": "ready", "solution": { "rects": [ { "x": 183, "y": 109, "w": 56, "h": 70 } ] } } ``` #### Processing Response (200) - **errorId** (Number) - 0 indicates success. - **status** (String) - "processing" when the task is still being worked on. #### Response Example (Processing) ```json { "status": "processing", "errorId": 0, "errorCode": "", "errorDescription": "" } ``` #### Error Response (Non-200) - **errorId** (Number) - 1 indicates an error. - **status** (String) - "fail". - **errorCode** (String) - The error code. - **errorDescription** (String) - A description of the error. - **solution** (Object) - An empty object. #### Error Response Example ```json { "errorId": 1, "errorCode": "ERROR_JOB_STATUS", "errorDescription": "Job failed", "status": "fail", "solution": {} } ``` ``` -------------------------------- ### Get RecaptchaV3TokenTask Result Source: https://docs.omocaptcha.com/tai-lieu-api/recaptcha/recaptchav3tokentask Retrieve the result of a previously created reCAPTCHA v3 task using its task ID. ```APIDOC ## POST https://omocaptcha.com/v2/getTaskResult ### Description Retrieves the result of a previously created reCAPTCHA v3 task. ### Method POST ### Endpoint https://omocaptcha.com/v2/getTaskResult ### Parameters #### Request Body - **clientKey** (String) - Required - Your customer account key. - **taskId** (String) - Required - The ID of the task to retrieve the result for. ### Request Example ```json { "clientKey": "API_KEY", "taskId": "49f9f60a-c809-4af0-93c0-0409b72e67e0" } ``` ### Response #### Success Response (200) - **errorId** (Integer) - 0 indicates success. - **status** (String) - "ready" when the result is available. - **solution** (Object) - Contains the captcha solution. - **gRecaptchaResponse** (String) - The reCAPTCHA v3 token. #### Response Example (Ready) ```json { "errorId": 0, "status": "ready", "solution": { "gRecaptchaResponse": "3AHJ_VuvYIBNBW5yyv0zRYJ75VkOKvhKj9_xGBJKnQimF72rfoq3Iy-DyGHMwLAo6a3" } } ``` #### Processing Response (200) - **status** (String) - "processing" indicates the task is still being worked on. #### Response Example (Processing) ```json { "status": "processing", "errorId": 0, "errorCode": "", "errorDescription": "" } ``` #### Error Response (Non-200 or Fail Status) - **errorId** (Integer) - 1 indicates an error. - **status** (String) - "fail" indicates the task failed. - **errorCode** (String) - The error code. - **errorDescription** (String) - A description of the error. - **solution** (Object) - Empty if the task failed. #### Error Response Example ```json { "errorId": 1, "errorCode": "ERROR_JOB_STATUS", "errorDescription": "Job failed", "status": "fail", "solution": {} } ``` ``` -------------------------------- ### Create Shopee Slider Task (Standard) Source: https://docs.omocaptcha.com/tai-lieu-api/shopee/shopeesliderwebtask Use this endpoint to create a task for a standard Shopee slider captcha. Provide the client key and base64 encoded images for the mask and background. ```json { "clientKey": "API_KEY", "task": { "type": "ShopeeSliderWebTask", "imageBase64s": ["BASE64_MASK_BODY_HERE", "BASE64_BACKGROUND_BODY_HERE"] } } ``` -------------------------------- ### Get ZaloSliderPhoneTask Result Source: https://docs.omocaptcha.com/tai-lieu-api/zalo/zalosliderphonetask Retrieves the result of a previously created ZaloSliderPhoneTask. Use the taskId obtained from the createTask endpoint. ```APIDOC ## POST /v2/getTaskResult ### Description Retrieves the result of a captcha solving task. ### Method POST ### Endpoint https://api.omocaptcha.com/v2/getTaskResult ### Parameters #### Request Body - **clientKey** (String) - Required - Your customer account key. - **taskId** (String) - Required - The ID of the task to retrieve the result for. ### Request Example ```json { "clientKey": "API_KEY", "taskId": "49f9f60a-c809-4af0-93c0-0409b72e67e0" } ``` ### Response #### Success Response (200) - **errorId** (Integer) - 0 for success. - **status** (String) - The current status of the task (e.g., 'ready', 'processing'). - **solution** (Object) - Contains the solution details if the status is 'ready'. - **start** (Object) - The starting coordinates for the slider. - **x** (Integer) - The x-coordinate. - **y** (Integer) - The y-coordinate. - **end** (Object) - The ending coordinates for the slider. - **x** (Integer) - The x-coordinate. - **y** (Integer) - The y-coordinate. #### Success Response Example ```json { "errorId": 0, "status": "ready", "solution": { "start": { "x": 100, "y": 250 }, "end": { "x": 300, "y": 250 } } } ``` #### Processing Response Example ```json { "status": "processing", "errorId": 0, "errorCode": "", "errorDescription": "" } ``` #### Error Response Example ```json { "errorId": 1, "errorCode": "ERROR_JOB_STATUS", "errorDescription": "Job failed", "status": "fail", "solution": {} } ``` ``` -------------------------------- ### Create ZaloSelectObjectTask Request Source: https://docs.omocaptcha.com/tai-lieu-api/zalo/zaloselectobjecttask Send a POST request to create a ZaloSelectObjectTask. Ensure the clientKey is valid and the task parameters, including imageBase64 and the 'other' field specifying the selection criteria, are correctly formatted. ```json { "clientKey": "API_KEY", "task": { "type": "ZaloSelectObjectTask", "imageBase64": "BASE64_BODY_HERE", "other": "Chọn tất cả ảnh có: biến báo giao thông" } } ``` -------------------------------- ### TencentSelectObjectTask Source: https://docs.omocaptcha.com/tai-lieu-api Solve Tencent object selection challenges. ```APIDOC ## TencentSelectObjectTask ### Description Solves Tencent object selection challenges. ### Method POST ### Endpoint /api/v1/tencent/select/object ``` -------------------------------- ### Get ZaloSelectObjectTask Result Source: https://docs.omocaptcha.com/tai-lieu-api/zalo/zaloselectobjecttask This endpoint retrieves the result of a previously created ZaloSelectObjectTask. It requires the client key and the task ID. ```APIDOC ## POST /v2/getTaskResult ### Description Retrieves the result of a ZaloSelectObjectTask CAPTCHA. ### Method POST ### Endpoint https://api.omocaptcha.com/v2/getTaskResult ### Parameters #### Request Body - **clientKey** (String) - Required - Your customer account key. - **taskId** (String) - Required - The ID of the task to get the result for. ### Request Example ```json { "clientKey": "API_KEY", "taskId": "49f9f60a-c809-4af0-93c0-0409b72e67e0" } ``` ### Response #### Success Response (200) - **errorId** (Integer) - 0 for success. - **status** (String) - The status of the task (e.g., "ready", "processing"). - **solution** (Object) - Contains the solution if the status is "ready". - **objects** (Array of Integers) - The indices of the selected objects. #### Response Example (Ready) ```json { "errorId": 0, "status": "ready", "solution": { "objects": [ 0, 1, 2, 3 ] } } ``` #### Response Example (Processing) ```json { "status": "processing", "errorId": 0, "errorCode": "", "errorDescription": "" } ``` #### Error Response - **errorId** (Integer) - 1 for failure. - **errorCode** (String) - The error code. - **errorDescription** (String) - A description of the error. - **status** (String) - The status of the task (e.g., "fail"). - **solution** (Object) - An empty object. #### Error Response Example ```json { "errorId": 1, "errorCode": "ERROR_JOB_STATUS", "errorDescription": "Job failed", "status": "fail", "solution": {} } ``` ``` -------------------------------- ### ZaloSelectObjectTask Source: https://docs.omocaptcha.com/tai-lieu-api Solve object selection challenges for Zalo. ```APIDOC ## ZaloSelectObjectTask ### Description Solves object selection challenges for Zalo. ### Method POST ### Endpoint /api/v1/zalo/select/object ``` -------------------------------- ### Get Task Result Source: https://docs.omocaptcha.com/tai-lieu-api/recaptcha/recaptchav2imagetask Retrieve the result of a previously submitted reCAPTCHA v2 image task using its task ID. ```APIDOC ## POST https://api.omocaptcha.com/v2/getTaskResult ### Description Retrieves the result of a submitted reCAPTCHA v2 image task. ### Method POST ### Endpoint https://api.omocaptcha.com/v2/getTaskResult ### Parameters #### Request Body - **clientKey** (String) - Required - Your account API key. - **taskId** (String) - Required - The ID of the task to retrieve the result for. ### Request Example ```json { "clientKey": "API_KEY", "taskId": "49f9f60a-c809-4af0-93c0-0409b72e67e0" } ``` ### Response #### Success Response (200) - **errorId** (Integer) - 0 for success. - **status** (String) - "ready" when the task is completed. - **solution** (Object) - Contains the solution details. - **objects** (Array of Integers) - The indices of the images to click. - **type** (String) - The type of solution (e.g., "multi"). #### Response Example (Success) ```json { "errorId": 0, "status": "ready", "solution": { "objects": [1,5,8], "type": "multi" } } ``` #### Processing Response - **errorId** (Integer) - 0 for success. - **status** (String) - "processing" indicates the task is still being worked on. Wait 2 seconds and try again. #### Response Example (Processing) ```json { "status": "processing", "errorId": 0, "errorCode": "", "errorDescription": "" } ``` #### Error Response - **errorId** (Integer) - 1 for failure. - **errorCode** (String) - The error code. - **errorDescription** (String) - A description of the error. - **status** (String) - "fail". - **solution** (Object) - Empty object. #### Response Example (Error) ```json { "errorId": 1, "errorCode": "ERROR_JOB_STATUS", "errorDescription": "Job failed", "status": "fail", "solution": {} } ``` ``` -------------------------------- ### Set API Key Source: https://docs.omocaptcha.com/lenh-adb-dieu-khien-apk Broadcasts an intent to set the API key for the application. Replace 'CLIENT_KEY_XXX' with your actual client key. ```cmd adb shell am broadcast -n %RCV% -a %PKG%.api.SET_KEY --es key "CLIENT_KEY_XXX" ``` -------------------------------- ### Create SliderAllWebTask Source: https://docs.omocaptcha.com/tai-lieu-api/slider-all/sliderallwebtask Submit a new SliderAllWebTask for solving. This requires your client key, the task type, the captcha image in base64 format, and the display dimensions of the captcha on the web. ```APIDOC ## POST /v2/createTask ### Description Creates a new captcha task for solving. ### Method POST ### Endpoint https://api.omocaptcha.com/v2/createTask ### Parameters #### Request Body - **clientKey** (String) - Required - Your account key. - **task.type** (String) - Required - The service class name for the captcha to be solved (e.g., "SliderAllWebTask"). - **task.imageBase64** (String) - Required - The captcha image encoded in base64. - **task.widthView** (Number) - Required - The width of the image as displayed on the web. - **task.heightView** (Number) - Optional - The height of the image as displayed on the web. ### Request Example ```json { "clientKey": "API_KEY", "task": { "type": "SliderAllWebTask", "imageBase64": "BASE64_BODY_HERE", "widthView": 300, "heightView": 150 } } ``` ### Response #### Success Response (200) - **errorId** (Number) - 0 indicates success. - **taskId** (String) - The unique identifier for the created task. #### Response Example ```json { "errorId": 0, "taskId": "49f9f60a-c809-4af0-93c0-0409b72e67e0" } ``` #### Error Response (Non-200) - **errorId** (Number) - 1 indicates an error. - **errorCode** (String) - The error code. - **errorDescription** (String) - A description of the error. #### Error Response Example ```json { "errorId": 1, "errorCode": "", "errorDescription": "" } ``` ``` -------------------------------- ### Get Task Result Processing Response Source: https://docs.omocaptcha.com/tai-lieu-api/recaptcha/recaptchav3tokentask If the task is still processing, the response will show `status = processing`. Wait for a few seconds and try again. ```json { "status": "processing", "errorId": 0, "errorCode": "", "errorDescription": "" } ``` -------------------------------- ### ShopeeSliderWebTask Source: https://docs.omocaptcha.com/tai-lieu-api Solve slider challenges for Shopee on the web. ```APIDOC ## ShopeeSliderWebTask ### Description Solves slider challenges for Shopee on the web. ### Method POST ### Endpoint /api/v1/shopee/slider/web ``` -------------------------------- ### Get Task Result Source: https://docs.omocaptcha.com/tai-lieu-api/geetest/geetesticoncrushwebtask Retrieves the result of a previously created CAPTCHA solving task. Requires your client key and the task ID. ```APIDOC ## POST https://api.omocaptcha.com/v2/getTaskResult ### Description Retrieves the result of a CAPTCHA solving task. ### Method POST ### Endpoint https://api.omocaptcha.com/v2/getTaskResult ### Parameters #### Request Body - **clientKey** (String) - Required - Your customer account key. - **taskId** (String) - Required - The ID of the task to retrieve the result for. ### Request Example ```json { "clientKey": "API_KEY", "taskId": "49f9f60a-c809-4af0-93c0-0409b72e67e0" } ``` ### Response #### Success Response (200) - **errorId** (Integer) - 0 indicates success. - **status** (String) - The status of the task (e.g., 'ready', 'processing'). - **solution** (Object) - Contains the solution if the status is 'ready'. For GeetestIconCrushWebTask, this might include 'swap_positions'. #### Response Example (Ready) ```json { "errorId": 0, "errorCode": "", "errorDescription": "", "status": "ready", "solution": { "swap_positions": [ 4, 7 ] } } ``` #### Response Example (Processing) ```json { "status": "processing", "errorId": 0, "errorCode": "", "errorDescription": "" } ``` #### Error Response (Fail) - **errorId** (Integer) - 1 indicates failure. - **errorCode** (String) - The error code. - **errorDescription** (String) - A description of the error. - **status** (String) - 'fail'. - **solution** (Object) - Empty object. #### Error Response Example ```json { "errorId": 1, "errorCode": "ERROR_JOB_STATUS", "errorDescription": "Job failed", "status": "fail", "solution": {} } ``` ``` -------------------------------- ### Get Task Result Source: https://docs.omocaptcha.com/tai-lieu-api/geetest/geetestgobangwebtask Retrieves the result of a previously created CAPTCHA solving task. Requires the client key and the task ID. ```APIDOC ## POST /v2/getTaskResult ### Description Retrieves the result of a CAPTCHA solving task. ### Method POST ### Endpoint https://api.omocaptcha.com/v2/getTaskResult ### Parameters #### Request Body - **clientKey** (String) - Required - Your account's client key. - **taskId** (String) - Required - The ID of the task to retrieve results for. ### Request Example ```json { "clientKey": "API_KEY", "taskId": "49f9f60a-c809-4af0-93c0-0409b72e67e0" } ``` ### Response #### Success Response (200) - **errorId** (Integer) - 0 for success. - **status** (String) - The current status of the task (e.g., "ready", "processing", "fail"). - **solution** (Object) - Contains the solution if the task is completed successfully. For GeetestGobangWebTask, this might include `swap_positions`. #### Response Example (Success) ```json { "errorId": 0, "errorCode": "", "errorDescription": "", "status": "ready", "solution": { "swap_positions": [ 2, 21 ] } } ``` #### Response Example (Processing) ```json { "status": "processing", "errorId": 0, "errorCode": "", "errorDescription": "" } ``` #### Response Example (Failure) ```json { "errorId": 1, "errorCode": "ERROR_JOB_STATUS", "errorDescription": "Job failed", "status": "fail", "solution": {} } ``` ``` -------------------------------- ### Create Geetest Slider Web Task Source: https://docs.omocaptcha.com/tai-lieu-api/geetest/geetestsliderwebtask Initiates a new Geetest Slider Web Task by sending the client key and the base64 encoded image to the API. ```APIDOC ## POST /v2/createTask ### Description Creates a new Geetest Slider Web Task. ### Method POST ### Endpoint https://api.omocaptcha.com/v2/createTask ### Parameters #### Request Body - **clientKey** (String) - Required - Your customer account key. - **task** (Object) - Required - Task details. - **type** (String) - Required - The name of the CAPTCHA service class to solve. - **imageBase64** (String) - Required - The base64 encoded image. ### Request Example ```json { "clientKey": "API_KEY", "task": { "type": "GeetestSliderWebTask", "imageBase64": "BASE64_BODY_HERE" } } ``` ### Response #### Success Response (200) - **errorId** (Integer) - 0 indicates success. - **taskId** (String) - The unique identifier for the created task. #### Response Example ```json { "errorId": 0, "taskId": "49f9f60a-c809-4af0-93c0-0409b72e67e0" } ``` #### Error Response - **errorId** (Integer) - 1 indicates an error. - **errorCode** (String) - The error code. - **errorDescription** (String) - A description of the error. #### Error Response Example ```json { "errorId": 1, "errorCode": "", "errorDescription": "" } ``` ``` -------------------------------- ### Get Tiktok Slider Phone Task Result Source: https://docs.omocaptcha.com/tai-lieu-api/tiktok/tiktoksliderphonetask Retrieve the result of a previously created Tiktok Slider Phone Task using its taskId. ```APIDOC ## POST https://api.omocaptcha.com/v2/getTaskResult ### Description Retrieves the result of a previously created Tiktok Slider Phone Task. ### Method POST ### Endpoint https://api.omocaptcha.com/v2/getTaskResult ### Parameters #### Request Body - **clientKey** (String) - Required - Your account API key. - **taskId** (String) - Required - The ID of the task to retrieve the result for. ### Request Example ```json { "clientKey": "API_KEY", "taskId": "49f9f60a-c809-4af0-93c0-0409b72e67e0" } ``` ### Response #### Success Response (200) - **errorId** (Integer) - 0 indicates success. - **status** (String) - The current status of the task ('ready' or 'processing'). - **solution** (Object) - Contains the solution details if the status is 'ready'. - **start** (Object) - The starting coordinates for the slider. - **x** (Integer) - The x-coordinate. - **y** (Integer) - The y-coordinate. - **end** (Object) - The ending coordinates for the slider. - **x** (Integer) - The x-coordinate. - **y** (Integer) - The y-coordinate. - **end2** (Object) - An alternative ending coordinate (if applicable). - **x** (Integer) - The x-coordinate. - **y** (Integer) - The y-coordinate. #### Success Response Example ```json { "errorId": 0, "status": "ready", "solution": { "start": { "x": 50, "y": 30 }, "end": { "x": 100, "y": 70 }, "end2": { "x": 100, "y": 70 } } } ``` #### Processing Response - **errorId** (Integer) - 0 indicates success. - **status** (String) - 'processing' indicates the task is still being worked on. #### Processing Response Example ```json { "status": "processing", "errorId": 0, "errorCode": "", "errorDescription": "" } ``` #### Error Response - **errorId** (Integer) - 1 indicates failure. - **status** (String) - 'fail'. - **errorCode** (String) - The error code. - **errorDescription** (String) - A description of the error. - **solution** (Object) - An empty object. #### Error Response Example ```json { "errorId": 1, "errorCode": "ERROR_JOB_STATUS", "errorDescription": "Job failed", "status": "fail", "solution": {} } ``` ``` -------------------------------- ### FuncaptchaImageTask Result Ready Response Source: https://docs.omocaptcha.com/tai-lieu-api/funcaptcha/funcaptchaimagetask When the task is ready, the server returns errorId 0, status 'ready', and the solution. For this task type, the solution is an index. Note that the returned index may require adjustment based on web element positioning. ```json { "errorId":0, "status":"ready", "solution": { "index": 1 } } ``` -------------------------------- ### TencentSlider Source: https://docs.omocaptcha.com/tai-lieu-api Solve Tencent slider challenges. ```APIDOC ## TencentSlider ### Description Solves Tencent slider challenges. ### Method POST ### Endpoint /api/v1/tencent/slider ``` -------------------------------- ### Get Tiktok3DSelectObjectPhoneTask Result Source: https://docs.omocaptcha.com/tai-lieu-api/tiktok/tiktok3dselectobjectphonetask This endpoint is used to retrieve the result of a previously created Tiktok3DSelectObjectPhoneTask. You need to provide your client key and the task ID. ```APIDOC ## POST /v2/getTaskResult ### Description Retrieves the result of a Tiktok3DSelectObjectPhoneTask. ### Method POST ### Endpoint https://omocaptcha.com/v2/getTaskResult ### Parameters #### Request Body - **clientKey** (String) - Required - Your customer account key. - **taskId** (String) - Required - The ID of the task to get the result for. ### Request Example ```json { "clientKey": "API_KEY", "taskId": "49f9f60a-c809-4af0-93c0-0409b72e67e0" } ``` ### Response #### Success Response (200) - **errorId** (Integer) - 0 indicates success. - **status** (String) - Indicates the status of the task (e.g., "ready", "processing"). - **solution** (Object) - Contains the solution if the status is "ready". - **pointA** (Object) - The coordinates of the first selected point. - **x** (Integer) - The x-coordinate. - **y** (Integer) - The y-coordinate. - **pointB** (Object) - The coordinates of the second selected point. - **x** (Integer) - The x-coordinate. - **y** (Integer) - The y-coordinate. #### Success Response Example ```json { "errorId": 0, "status": "ready", "solution": { "pointA": { "x": 50, "y": 30 }, "pointB": { "x": 100, "y": 70 } } } ``` #### Processing Response - **errorId** (Integer) - 0 indicates success. - **status** (String) - "processing" indicates the task is still being worked on. #### Processing Response Example ```json { "status": "processing", "errorId": 0, "errorCode": "", "errorDescription": "" } ``` #### Error Response - **errorId** (Integer) - 1 indicates an error. - **errorCode** (String) - The error code. - **errorDescription** (String) - A description of the error. - **status** (String) - "fail" indicates the task failed. - **solution** (Object) - An empty object. #### Error Response Example ```json { "errorId": 1, "errorCode": "ERROR_JOB_STATUS", "errorDescription": "Job failed", "status": "fail", "solution": {} } ``` ``` -------------------------------- ### Get Task Result Success Response Source: https://docs.omocaptcha.com/tai-lieu-api/recaptcha/recaptchav2tokentask Successful response when the task is ready, providing the solution in gRecaptchaResponse. This token should be placed in the 'g-recaptcha-response' textarea. ```json { "errorId": 0, "status": "ready", "solution": { "gRecaptchaResponse": "3AHJ_VuvYIBNBW5yyv0zRYJ75VkOKvhKj9_xGBJKnQimF72rfoq3Iy-DyGHMwLAo6a3" } } ```