### Create Get Balance Task Request Source: https://apidocs.salamoonder.com/tasks/get-balance This JSON request demonstrates how to initiate a 'getBalance' task using the createTask API endpoint. It requires an 'api_key' and a 'task' object specifying the type. ```json POST https://salamoonder.com/api/createTask Host: salamoonder.com Content-Type: application/json { "api_key": "sr-xxxx-xxxx-xxxx", "task": { "type": "getBalance" } } ``` -------------------------------- ### Get Task Result - JSON Request Example Source: https://apidocs.salamoonder.com/tasks/kasada-solver Demonstrates the structure of a POST request to the getTaskResult API endpoint. It requires an 'api_key' and a 'taskId' to uniquely identify the task whose results are being requested. ```json POST https://salamoonder.com/api/getTaskResult Host: salamoonder.com Content-Type: application/json { "api_key": "", "taskId": "d4611a5f-9b4e-4f4a-94a2-8303d97562e1" } ``` -------------------------------- ### Get Task Result - JSON Response Example Source: https://apidocs.salamoonder.com/tasks/kasada-solver Illustrates a typical JSON response from the getTaskResult API endpoint. The response includes an 'errorId', 'status' (e.g., 'ready'), and a 'solution' object containing various identifiers and timestamps if the task is completed. ```json { "errorId": 0, "solution": { "user-agent": "", "x-is-human": "", "x-kpsdk-cd": "", "x-kpsdk-cr": "", "x-kpsdk-ct": "", "x-kpsdk-r": "", "x-kpsdk-st": "1704673650160" }, "status": "ready" } ``` -------------------------------- ### POST /api/createTask Source: https://apidocs.salamoonder.com/tasks/get-balance Creates a new task to perform an action, such as retrieving a balance. Use the createTask method to initiate a task and then use getTaskResult to fetch the outcome. ```APIDOC ## POST /api/createTask ### Description Creates a new task to perform an action, such as retrieving a balance. Use the createTask method to initiate a task and then use getTaskResult to fetch the outcome. ### Method POST ### Endpoint https://salamoonder.com/api/createTask ### Parameters #### Request Body - **api_key** (string) - Required - Your API key for authentication. - **task** (object) - Required - An object containing the task details. - **type** (string) - Required - The type of task to perform (e.g., "getBalance"). ### Request Example ```json { "api_key": "sr-xxxx-xxxx-xxxx", "task": { "type": "getBalance" } } ``` ### Response #### Success Response (200) - **error_code** (integer) - 0 indicates success. - **error_description** (string) - An empty string if the request was successful. - **wallet** (string) - The wallet balance if the task was of type "getBalance". #### Response Example ```json { "error_code": 0, "error_description": "", "wallet": "499.81070" } ``` ``` -------------------------------- ### Create Task Request Example (JSON) Source: https://apidocs.salamoonder.com/api/createtask-create-task This JSON snippet demonstrates the structure of a POST request to the /api/createTask endpoint. It includes the API key and the task object with its type and parameters. Ensure you replace placeholder values with your actual credentials and desired task configuration. ```json POST https://salamoonder.com/api/createTask Host: salamoonder.com Content-Type: application/json { "api_key": "sr-xxxx-xxxx-xxxx", "task": { "type": "KasadaCaptchaSolver", "pjs": "https://example.com/xxxx/p.js", "cdOnly": "true/false" } } ``` -------------------------------- ### Create Task Response Example (JSON) Source: https://apidocs.salamoonder.com/api/createtask-create-task This JSON snippet shows a successful response from the createTask API. It contains an error_code, error_description, and a taskId that can be used to query the status of the created task. An error_code of 0 indicates success. ```json { "error_code": 0, "error_description": "", "taskId": "118b941e-c035-4429-8ec3-18d5d19ccf9b" } ``` -------------------------------- ### Get Balance Task Creation Response Source: https://apidocs.salamoonder.com/tasks/get-balance This JSON response indicates the successful creation of a 'getBalance' task. It includes an 'error_code', 'error_description', and the 'wallet' balance if the task was processed successfully. ```json { "error_code": 0, "error_description": "", "wallet": "499.81070" } ``` -------------------------------- ### Get Task Result - POST Request Source: https://apidocs.salamoonder.com/api/gettaskresult-task-result This snippet demonstrates how to make a POST request to the /getTaskResult endpoint to retrieve the status and solution of a task. It requires an api_key and the taskId in the request body. The response indicates if the solution is ready. ```json POST https://salamoonder.com/api/getTaskResult { "api_key": "sr-xxxx-xxxx-xxxx", "taskId": "118b941e-c035-4429-8ec3-18d5d19ccf9b" } ``` ```json { "errorId": 0, "solution": { // Solution details here }, "status": "ready" } ``` -------------------------------- ### Get Scraper Task Result Request (JSON) Source: https://apidocs.salamoonder.com/tasks/twitch/scraper This JSON request shows how to retrieve the results of a previously created scraping task using the getTaskResult method. It requires the 'api_key' and the 'taskId' obtained from the createTask method. ```json POST https://salamoonder.com/api/getTaskResult Host: salamoonder.com Content-Type: application/json { "api_key": "xxx", "taskId": "d4611a5f-9b4e-4f4a-94a2-8303d97562e1" } ``` -------------------------------- ### Get Task Result API Source: https://apidocs.salamoonder.com/tasks/twitch/public-integrity Retrieves the results of a previously created task using its task ID. ```APIDOC ## POST /api/getTaskResult ### Description Retrieves the results of a Public Integrity task using the provided task ID. ### Method POST ### Endpoint https://salamoonder.com/api/getTaskResult ### Parameters #### Request Body - **api_key** (string) - Required - Your API key. - **taskId** (string) - Required - The ID of the task for which to retrieve results. ### Request Example ```json { "api_key": "xxx", "taskId": "d4611a5f-9b4e-4f4a-94a2-8303d97562e1" } ``` ### Response #### Success Response (200) - **errorId** (integer) - Indicates success (0 for no error). - **solution** (object) - Contains the task solution details. - **device_id** (string) - The device ID. - **integrity_token** (string) - The integrity token. - **proxy** (string) - The proxy used for the task. - **user-agent** (string) - The user agent string. - **client-id** (string) - The client ID. - **status** (string) - The current status of the task (e.g., 'ready'). #### Response Example ```json { "errorId": 0, "solution": { "device_id": "xxxx", "integrity_token": "v4.public.xxxx", "proxy": "xxxx", "user-agent": "xxxx", "client-id": "xxx" }, "status": "ready" } ``` ``` -------------------------------- ### Get Scraper Task Result Response (JSON) Source: https://apidocs.salamoonder.com/tasks/twitch/scraper This JSON response provides the results of a scraping task. It includes 'errorId' (0 for success), 'status' (e.g., 'ready'), and the 'solution' object containing scraped data like 'biography', 'profile_picture', and 'username'. ```json { "errorId": 0, "solution": { "biography": "xxx", "profile_picture": "https://static-cdn.jtvnw.net/jtv_user_pictures/xxxx", "username": "xxx" }, "status": "ready" } ``` -------------------------------- ### Get Task Result Response (JSON) Source: https://apidocs.salamoonder.com/tasks/twitch/public-integrity This JSON snippet represents a successful response from the getTaskResult method when the task is ready. It contains an 'errorId' of 0, a 'solution' object with details like 'integrity_token', 'device_id', and 'user-agent', and a 'status' indicating 'ready'. ```json { "errorId": 0, "solution": { "device_id": "xxxx", "integrity_token": "v4.public.xxxx", "proxy": "xxxx", "user-agent": "xxxx", "client-id": "xxx" }, "status": "ready" } ``` -------------------------------- ### Get Local Integrity Task Result Response (JSON) Source: https://apidocs.salamoonder.com/tasks/twitch/local-integrity This JSON snippet represents a successful response from the getTaskResult endpoint when the task is ready. It includes an errorId (0 for success) and a 'solution' object containing the device_id, integrity_token, proxy details, user-agent, and client-id. The 'status' field indicates 'ready'. ```json { "errorId": 0, "solution": { "device_id": "xxx", "integrity_token": "v4.local.xxx", "proxy": "xxxx", "user-agent": "xxx", "client-id": "xxx" }, "status": "ready" } ``` -------------------------------- ### Get Local Integrity Task Result Request (JSON) Source: https://apidocs.salamoonder.com/tasks/twitch/local-integrity This JSON snippet illustrates the request format for the getTaskResult endpoint. It requires the user's API key and the taskId obtained from the createTask method. This request is used to poll for the completion of a previously submitted task. ```json { "api_key": "xxx", "taskId": "d4611a5f-9b4e-4f4a-94a2-8303d97562e1" } ``` -------------------------------- ### Create Task API Source: https://apidocs.salamoonder.com/tasks/kasada-solver This endpoint allows you to create a new task. You need to provide project-specific data. ```APIDOC ## POST /api/createtask ### Description Creates a new task for processing. ### Method POST ### Endpoint /api/createtask ### Parameters #### Request Body - **pjs** (string) - Required - Project-specific data. - **cdOnly** (string) - Required - Flag indicating if only challenge detection is needed. ### Request Example ```json { "pjs": "project_data_here", "cdOnly": "true" } ``` ### Response #### Success Response (200) - **taskId** (string) - The unique identifier for the created task. #### Response Example ```json { "taskId": "task_12345abc" } ``` ``` -------------------------------- ### Create Captcha Task Source: https://apidocs.salamoonder.com/tasks/kasada-solver This endpoint allows you to create a captcha solving task. You provide an API key, task type, the pjs URL for the target site, and a flag for client-side detection only. ```APIDOC ## POST /api/createTask ### Description Creates a captcha solving task for a specified domain and configuration. ### Method POST ### Endpoint /api/createTask ### Parameters #### Request Body - **api_key** (string) - Required - Your unique API key for authentication. - **task** (object) - Required - Contains details of the task to be performed. - **type** (string) - Required - The type of captcha task, e.g., "KasadaCaptchaSolver". - **pjs** (string) - Required - The URL of the p.js file for the target domain. - **cdOnly** (boolean) - Optional - A flag to indicate if only client-side detection should be performed. ### Request Example ```json { "api_key": "YOUR_API_KEY", "task": { "type": "KasadaCaptchaSolver", "pjs": "https://example.com/xxxx/p.js", "cdOnly": "true/false" } } ``` ### Response #### Success Response (200) - **error_code** (integer) - Indicates the status of the operation. 0 for success. - **error_description** (string) - Provides a description of any errors. Empty if successful. - **taskId** (string) - A unique identifier for the created task. #### Response Example ```json { "error_code": 0, "error_description": "", "taskId": "d4611a5f-9b4e-4f4a-94a2-8303d97562e1" } ``` ``` -------------------------------- ### Salamoonder API: Create Captcha Solving Task (JSON) Source: https://apidocs.salamoonder.com/tasks/kasada-solver This code snippet demonstrates how to send a POST request to the Salamoonder API to create a captcha-solving task. It includes the request body format, specifying the task type, proxy script URL, and a boolean for client-side detection only. The API key is required for authentication. ```json POST https://salamoonder.com/api/createTask Host: salamoonder.com Content-Type: application/json { "api_key": "YOUR_API_KEY", "task": { "type": "KasadaCaptchaSolver", "pjs": "https://example.com/xxxx/p.js", "cdOnly": "true/false" } } ``` -------------------------------- ### POST /api/createTask Source: https://apidocs.salamoonder.com/api/createtask-create-task Creates a task for solving a specified CAPTCHA type. Use this endpoint to initiate a CAPTCHA-solving task by providing your API key and the desired task type. ```APIDOC ## POST /api/createTask ### Description Generates a task for solving a specified captcha type by indicating the type in the parameter. For instance, use "KasadaCaptchaSolver." Explore [all the supported task types](https://apidocs.salamoonder.com/tasks). ### Method POST ### Endpoint https://salamoonder.com/api/createTask ### Parameters #### Request Body - **api_key** (string) - Required - Your API key for authentication. - **task** (object) - Required - An object containing task-specific parameters. - **type** (string) - Required - The type of CAPTCHA solver to use (e.g., "KasadaCaptchaSolver"). - **pjs** (string) - Optional - URL to the PJS file if required by the solver. - **cdOnly** (string) - Optional - A boolean string ('true'/'false') indicating if the task should be client-side only. ### Request Example ```json { "api_key": "sr-xxxx-xxxx-xxxx", "task": { "type": "KasadaCaptchaSolver", "pjs": "https://example.com/xxxx/p.js", "cdOnly": "true/false" } } ``` ### Response #### Success Response (200) - **error_code** (integer) - 0 if the request was successful. - **error_description** (string) - An empty string if the request was successful. - **taskId** (string) - A unique identifier for the created task. #### Response Example ```json { "error_code": 0, "error_description": "", "taskId": "118b941e-c035-4429-8ec3-18d5d19ccf9b" } ``` ``` -------------------------------- ### POST /api/createTask Source: https://apidocs.salamoonder.com/tasks/twitch/local-integrity Creates a new Local Integrity task. You need to provide your proxy details, and optionally a device ID and client ID. ```APIDOC ## POST /api/createTask ### Description Creates a new Local Integrity task. You need to provide your proxy details, and optionally a device ID and client ID. ### Method POST ### Endpoint https://salamoonder.com/api/createTask ### Parameters #### Request Body - **api_key** (string) - Required - Your API key. - **task** (object) - Required - Task details. - **type** (string) - Required - The type of task, should be "Twitch_LocalIntegrity". - **proxy** (string) - Required - Your proxy details in the format username:password@ip:port. - **deviceId** (string) - Optional - The device ID. - **clientId** (string) - Optional - The client ID. ### Request Example ```json { "api_key": "sr-xxxx-xxxx-xxxx", "task": { "type": "Twitch_LocalIntegrity", "proxy": "ip:port", "deviceId": "xxx", "clientId": "xxx" } } ``` ### Response #### Success Response (200) - **error_code** (integer) - 0 indicates success. - **error_description** (string) - Empty if successful. - **taskId** (string) - The ID of the created task. #### Response Example ```json { "error_code": 0, "error_description": "", "taskId": "d4611a5f-9b4e-4f4a-94a2-8303d97562e1" } ``` ``` -------------------------------- ### Create Scraper Task Request (JSON) Source: https://apidocs.salamoonder.com/tasks/twitch/scraper This JSON request demonstrates how to create a scraping task using the createTask method. It requires an API key and specifies the task type as 'Twitch_Scraper'. The response contains a 'taskId' to track the task's progress. ```json POST https://salamoonder.com/api/createTask Host: salamoonder.com Content-Type: application/json { "api_key": "sr-xxxx-xxxx-xxxx", "task": { "type": "Twitch_Scraper" } } ``` -------------------------------- ### POST /api/createTask Source: https://apidocs.salamoonder.com/tasks/twitch/scraper Creates a new scraping task. Upon successful submission, a taskId is returned to track the task. ```APIDOC ## POST /api/createTask ### Description Create a task with the `createTask` method to create a task. ### Method POST ### Endpoint https://salamoonder.com/api/createTask ### Parameters #### Request Body - **api_key** (string) - Required - Your API key. - **task** (object) - Required - The task details. - **type** (string) - Required - The type of scraper task (e.g., "Twitch_Scraper"). ### Request Example ```json { "api_key": "sr-xxxx-xxxx-xxxx", "task": { "type": "Twitch_Scraper" } } ``` ### Response #### Success Response (200) - **error_code** (integer) - 0 if successful. - **error_description** (string) - Empty if successful. - **taskId** (string) - The ID of the created task. #### Response Example ```json { "error_code": 0, "error_description": "", "taskId": "d4611a5f-9b4e-4f4a-94a2-8303d97562e1" } ``` ``` -------------------------------- ### Create Task API Source: https://apidocs.salamoonder.com/tasks/twitch/public-integrity Creates a new task for the Public Integrity service. Requires proxy and access token, with optional device ID and client ID. ```APIDOC ## POST /api/createTask ### Description Creates a task for the Public Integrity service. You must use your own proxies; IP authentication proxies are not permitted. Proxies should be formatted as username:password@ip:port. ### Method POST ### Endpoint https://salamoonder.com/api/createTask ### Parameters #### Request Body - **api_key** (string) - Required - Your API key. - **task** (object) - Required - The task details. - **type** (string) - Required - Must be 'Twitch_PublicIntegrity'. - **access_token** (string) - Required - Your Twitch account OAuth token. - **proxy** (string) - Required - Your proxy in the format username:password@ip:port. - **deviceId** (string) - Optional - The device ID. - **clientId** (string) - Optional - The client ID. ### Request Example ```json { "api_key": "sr-xxxx-xxxx-xxxx", "task": { "type": "Twitch_PublicIntegrity", "access_token": "your_twitch_account_oauth", "proxy": "ip:port", "deviceId": "xxx", "clientId": "xxx" } } ``` ### Response #### Success Response (200) - **error_code** (integer) - Indicates success (0 for no error). - **error_description** (string) - Description of the error, if any. - **taskId** (string) - The unique identifier for the created task. #### Response Example ```json { "error_code": 0, "error_description": "", "taskId": "d4611a5f-9b4e-4f4a-94a2-8303d97562e1" } ``` ``` -------------------------------- ### POST /api/getTaskResult Source: https://apidocs.salamoonder.com/tasks/kasada-solver Retrieves the result of a previously submitted task. Requires an API key and the taskId. ```APIDOC ## POST /api/getTaskResult ### Description Retrieves the result of a submitted task using its unique identifier. ### Method POST ### Endpoint /api/getTaskResult ### Parameters #### Request Body - **api_key** (string) - Required - Your API key for authentication. - **taskId** (string) - Required - The unique identifier of the task for which to retrieve the result. ### Request Example ```json { "api_key": "YOUR_API_KEY", "taskId": "d4611a5f-9b4e-4f4a-94a2-8303d97562e1" } ``` ### Response #### Success Response (200) - **errorId** (integer) - Indicates if an error occurred (0 for success). - **solution** (object) - Contains various solution-related headers. - **user-agent** (string) - The user agent string. - **x-is-human** (string) - Human verification status. - **x-kpsdk-cd** (string) - SDK configuration data. - **x-kpsdk-cr** (string) - SDK configuration response. - **x-kpsdk-ct** (string) - SDK configuration type. - **x-kpsdk-r** (string) - SDK configuration region. - **x-kpsdk-st** (string) - SDK configuration timestamp. - **status** (string) - The current status of the task (e.g., 'ready'). #### Response Example ```json { "errorId": 0, "solution": { "user-agent": "", "x-is-human": "", "x-kpsdk-cd": "", "x-kpsdk-cr": "", "x-kpsdk-ct": "", "x-kpsdk-r": "", "x-kpsdk-st": "1704673650160" }, "status": "ready" } ``` ``` -------------------------------- ### Create Local Integrity Task Request (JSON) Source: https://apidocs.salamoonder.com/tasks/twitch/local-integrity This JSON snippet demonstrates how to structure a request to the createTask endpoint for the Twitch_LocalIntegrity task. It includes essential parameters like the API key, task type, proxy, and optional device and client IDs. The proxy format must be ip:port. ```json { "api_key": "sr-xxxx-xxxx-xxxx", "task": { "type": "Twitch_LocalIntegrity", "proxy": "ip:port", "deviceId": "xxx", "clientId": "xxx" } } ``` -------------------------------- ### POST /api/getTaskResult Source: https://apidocs.salamoonder.com/api/gettaskresult-task-result Retrieves the solution for a given task ID. This endpoint requires an API key and the task ID in the request body. ```APIDOC ## POST /api/getTaskResult ### Description Retrieves the solution for a given task ID. This endpoint requires an API key and the task ID in the request body. ### Method POST ### Endpoint https://salamoonder.com/api/getTaskResult ### Parameters #### Request Body - **api_key** (string) - Required - Your API key for authentication. - **taskId** (string) - Required - The ID of the task for which to retrieve the solution. ### Request Example ```json { "api_key": "sr-xxxx-xxxx-xxxx", "taskId": "118b941e-c035-4429-8ec3-18d5d19ccf9b" } ``` ### Response #### Success Response (200) - **errorId** (integer) - Indicates if an error occurred (0 for no error). - **solution** (object) - Contains the details of the solution if the task is ready. - **status** (string) - The status of the task (e.g., "ready"). #### Response Example ```json { "errorId": 0, "solution": {}, "status": "ready" } ``` ``` -------------------------------- ### Create Scraper Task Response (JSON) Source: https://apidocs.salamoonder.com/tasks/twitch/scraper This JSON response indicates the successful creation of a scraping task. It includes an 'error_code' (0 for success) and an 'error_description' (empty on success), along with the 'taskId' that uniquely identifies the created task. ```json { "error_code": 0, "error_description": "", "taskId": "d4611a5f-9b4e-4f4a-94a2-8303d97562e1" } ``` -------------------------------- ### Create Task Request (JSON) Source: https://apidocs.salamoonder.com/tasks/twitch/public-integrity This JSON snippet demonstrates how to structure a request to the createTask method for the Twitch_PublicIntegrity task. It includes required parameters like proxy and access_token, along with optional deviceId and clientId. The response contains a taskId for subsequent result retrieval. ```json { "api_key": "sr-xxxx-xxxx-xxxx", "task": { "type": "Twitch_PublicIntegrity", "access_token": "your_twitch_account_oauth", "proxy": "ip:port", "deviceId": "xxx", "clientId": "xxx" } } ``` -------------------------------- ### POST /api/getTaskResult Source: https://apidocs.salamoonder.com/tasks/twitch/scraper Retrieves the results of a previously created task using its taskId. ```APIDOC ## POST /api/getTaskResult ### Description Retrieve the results using the `getTaskResult` method. ### Method POST ### Endpoint https://salamoonder.com/api/getTaskResult ### Parameters #### Request Body - **api_key** (string) - Required - Your API key. - **taskId** (string) - Required - The ID of the task to retrieve results for. ### Request Example ```json { "api_key": "xxx", "taskId": "d4611a5f-9b4e-4f4a-94a2-8303d97562e1" } ``` ### Response #### Success Response (200) - **errorId** (integer) - 0 if successful. - **solution** (object) - The scraping results. - **biography** (string) - User biography. - **profile_picture** (string) - URL to the user's profile picture. - **username** (string) - The user's username. - **status** (string) - The status of the task (e.g., "ready"). #### Response Example ```json { "errorId": 0, "solution": { "biography": "xxx", "profile_picture": "https://static-cdn.jtvnw.net/jtv_user_pictures/xxxx", "username": "xxx" }, "status": "ready" } ``` ``` -------------------------------- ### POST /api/getTaskResult Source: https://apidocs.salamoonder.com/tasks/twitch/local-integrity Retrieves the result of a Local Integrity task using its task ID. ```APIDOC ## POST /api/getTaskResult ### Description Retrieves the result of a Local Integrity task using its task ID. ### Method POST ### Endpoint https://salamoonder.com/api/getTaskResult ### Parameters #### Request Body - **api_key** (string) - Required - Your API key. - **taskId** (string) - Required - The ID of the task to retrieve results for. ### Request Example ```json { "api_key": "xxx", "taskId": "d4611a5f-9b4e-4f4a-94a2-8303d97562e1" } ``` ### Response #### Success Response (200) - **errorId** (integer) - 0 indicates success. - **solution** (object) - The task solution. - **device_id** (string) - The device ID. - **integrity_token** (string) - The local integrity token. - **proxy** (string) - The proxy used. - **user-agent** (string) - The user agent. - **client-id** (string) - The client ID. - **status** (string) - The status of the task (e.g., "ready"). #### Response Example ```json { "errorId": 0, "solution": { "device_id": "xxx", "integrity_token": "v4.local.xxx", "proxy": "xxxx", "user-agent": "xxx", "client-id": "xxx" }, "status": "ready" } ``` ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.