UTMVC

Solve UTMVC challenges with our straightforward API.

Parameters

Parameter
Type
Required

website

String

Yes

Creating a Task

Send a POST request to create a new UTMVC solving task using the createTask method.

Request

POST https://salamoonder.com/api/createTask
Host: salamoonder.com
Content-Type: application/json

{
  "api_key": "YOUR_API_KEY",
  "task": {
    "type": "IncapsulaUTMVCSolver",
    "website": "https://group.accor.com/"
  }
}

Response Fields:

  • taskId - Unique identifier for this task. Use this to retrieve results.

Getting Results

Retrieve the solution using the getTaskResult method.

Request

POST https://salamoonder.com/api/getTaskResult
Host: salamoonder.com
Content-Type: application/json

{
  "api_key": "YOUR_API_KEY",
  "taskId": "d4611a5f-9b4e-4f4a-94a2-8303d97562e1"
}

Response

{
  "errorId": 0,
  "solution": {
    "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/1xx.0.0.0 Safari/537.36",
    "utmvc": "oh7B0lJUDUsIMcMjz2441jusv+4c8BKNB4gbFaaojd+mSTQZL1aPah7ZdN9VePZcAsJ+...."
  },
  "status": "ready"
}

Response Fields:

  • user-agent - Browser user-agent to use with this solution

  • utmvc - The UTMVC challenge data.

Quick Start Example

Here's a proof-of-concept Python example to get you started:

python

import requests
import time

API_KEY = "YOUR_API_KEY"
BASE_URL = "https://salamoonder.com/api"
TARGET_URL = "https://group.accor.com/"


# Step 1: Create task
task_data = {
    "api_key": API_KEY,
    "task": {
        "type": "IncapsulaUTMVCSolver",
        "website": TARGET_URL
    }
}

response = requests.post(f"{BASE_URL}/createTask", json=task_data)
task_id = response.json()["taskId"]
print(f"Task created: {task_id}")

# Step 2: Poll for results
while True:
    result_data = {
        "api_key": API_KEY,
        "taskId": task_id
    }
    
    response = requests.post(f"{BASE_URL}/getTaskResult", json=result_data)
    result = response.json()
    
    if result["status"] == "ready":
        user_agent = result["solution"]["user-agent"]
        utmvc_token = result["solution"]["utmvc"]
        print(f"User-Agent: {user_agent}")
        print(f"UTMVC Token: {utmvc_token}")
        break
    
    time.sleep(2)

Last updated

Was this helpful?