Skip to content

MTCaptcha Task

with this POST request you get MTCaptcha Challenge solved.

POST https://api.nocaptchaai.com/createTask
Host: api.nocaptchaai.com
Content-Type: application/json
PropertiesValueRequiredDescription
typeStringRequiredMtCaptchaTaskProxyless
websiteURLStringRequiredWebPage source URL Required
websiteKeyStringRequiredWebPage Challenge Key URL Required
{
"clientKey": "YOUR_API_KEY",
"task": {
"type": "MtCaptchaTaskProxyless",
"websiteURL": "www.mtcaptcha.com",
"websiteKey": "MTPublic-tqNCRE0GS"
}
}
{
"errorId": 0,
"status": "idle",
"taskId": "MTeTWrD8Rl"
}
POST https://api.nocaptchaai.com/getTaskResult
Host: api.nocaptchaai.com
Content-Type: application/json
{
"clientKey": "YOUR_API_KEY", # your noCaptchaAi.com APIKEY
"taskId": "CFTCirZWgod"
}
{
"errorCode": "",
"errorDescription": "",
"errorId": 0,
"solution": {
"token": "v1(b77c1ca7,5a5c9214,MTPublic-tqNCRE0GS,b9932366cb515e33dcf64603c60e94c6,4VJHpmB6vI84OnXv1nsxmiKvi0za9ha599mAm2qjY0ZW7UVPOSG205kMlubNY3gC3x9fnhulmUpyz_NhVsaRPa44xm5tJvSxBZOTqWh_ZRjI3cAx1JYtQbmx-Iy_pORE4qIfj4MXqZtk72XSD7MHv5oeLbqmaS-A-_eMiTiw1zcBsfPi23Tmu_TRQKZWZEdvzrxTixoXzrr5D7W7t1WeNNy9tpzMrqUINxR1gY7f1WppFFNbYcvN9LTtTX8P7N_aj2DBOglNoQ2nrWB-IvXrUu7GqMl2E3BR38oNg0CBsDTO0eHD0XtmhLvd2r3CzSGui765Tm1AAgMo65PcbyGx8IZ7fLL13GRLt_68vfPZjJfdaRD5O-96UWUK_0sgNpc5OkXNy2hH2gzddT0INXLUM2JdmRt-7SQRwUhB_Nic9tstqnASaaW0VjYOCXXM5Jqo)"
},
"status": "ready"
}
# pip install requests
import requests, time
API_KEY = "API_KEY"
SITE_KEY = "0x4XXXXXXXXXXXXXXX"
SITE_URL = "https://example.com"
def solve_nocaptchaai():
session = requests.Session()
task = session.post("https://api.nocaptchaai.com/createTask", json={
"clientKey": API_KEY,
"task": {
"type": "AntiCloudflareTask",
"proxy": "123.123.0.1:0000:xxxxxx:xxxxxxxx" # your proxy
"websiteURL": SITE_URL,
}
}).json()
task_id = task.get("taskId")
if not task_id:
raise Exception(f"Task creation failed: {task}")
while True:
time.sleep(1)
result = session.post("https://api.nocaptchaai.com/getTaskResult", json={
"clientKey": API_KEY,
"taskId": task_id
}).json()
if result.get("status") == "ready":
return result["solution"]["token"]
if result.get("status") == "failed" or result.get("errorId"):
raise Exception(f"Captcha solving failed: {result}")
if __name__ == "__main__":
token = solve_nocaptchaai()
print("Captcha Token:", token)