MTCaptcha Task
with this POST
request you get MTCaptcha Challenge solved.
Creating Task: /CreateTask
Section titled “Creating Task: /CreateTask”POST https://api.nocaptchaai.com/createTaskHost: api.nocaptchaai.comContent-Type: application/json
Task structure specification :
Section titled “Task structure specification :”Properties | Value | Required | Description |
---|---|---|---|
type | String | Required | MtCaptchaTaskProxyless |
websiteURL | String | Required | WebPage source URL Required |
websiteKey | String | Required | WebPage Challenge Key URL Required |
Request
Section titled “Request”{ "clientKey": "YOUR_API_KEY", "task": { "type": "MtCaptchaTaskProxyless", "websiteURL": "www.mtcaptcha.com", "websiteKey": "MTPublic-tqNCRE0GS" }}
Example Response
Section titled “Example Response”{ "errorId": 0, "status": "idle", "taskId": "MTeTWrD8Rl"}
Getting Result: /getTaskResult
Section titled “Getting Result: /getTaskResult”POST https://api.nocaptchaai.com/getTaskResultHost: api.nocaptchaai.comContent-Type: application/json
{ "clientKey": "YOUR_API_KEY", # your noCaptchaAi.com APIKEY "taskId": "CFTCirZWgod"}
Example Response
Section titled “Example Response”{ "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"}
API Testing Example Scripts
Section titled “API Testing Example Scripts”# pip install requestsimport 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)