CAPSOLVER

Cloudflare Turnstile 验证码求解器

cloudflare

Cloudflare是什么?

Cloudflare 采用各种技术来检测和减少不需要的流量。  其中包括 Cloudflare Challenge,它通常涉及 JavaScript 挑战或 CAPTCHA 测试,以及 Turnstile,这是一种更加用户友好的 CAPTCHA,可最大限度地减少用户交互。

Cloudflare Turnstile Demo

Cloudflare Challenge Demo

www.demo.com
Verifying you are human by completing the action below.

www.demo.com needs to review the security of your connection before proceeding.

Cloudflare Turnstile 最佳解决方案 - CapSolver

CapSolver是绕过Cloudflare Turnstile的最便宜和最快速的解决方案。

CapSolver使用基于人工智能的验证码解决算法,具有更快的解决速度和大幅降低的成本,为开发者提供出色的体验。

高度可靠

我们在同类供应商中拥有最快的更新速度。

没有风险

您只需支付已解决的验证码费用。严格的合作审查将禁止任何非法活动。

利用人工智能技术驱动

我们使用人工智能进行全自动验证码解决。

兼容性

CapSolver与常见的手动验证码识别服务的API兼容。

多样化解决方案

CapSolver提供API服务和Chrome扩展。

值得信赖

超过1000个平台已经集成了我们的API。

使用CapSolver解决验证码问题的方法如下:

在使用CapSolver服务后,当用户遇到验证码问题时,他们向CapSolver发送请求。收到相应验证码问题的请求后,CapSolver会高效快速地为用户解决验证码问题。

</> Cloudflare Turnstile 解决方案API:

(在github上有更多第三方库)
解决方案价格
Cloudflare Turnstile

AntiTurnstileTaskProxyLess

$1.2/1000 requests

如何绕过Cloudflare Turnstile-API指南

CapSolver自动验证码解决服务可以轻松绕过Cloudflare Turnstile。CapSolver提供两种验证码解决服务,帮助您解决Cloudflare Turnstile。

其中之一的服务是使用 CapSolver's API 另一个服务是在Chrome中下载 扩展程序 在Chrome中

CapSolver并获取我们的验证码服务

Step 1 : Creating a Task

Create the task with the createTask.

In the process of using turnstile, we must input websiteURL and websiteKey, other parameters are optional.

Task Object Structure

Properties Type Required Description
type String Required AntiTurnstileTaskProxyLess
websiteURL String Required The address of the target page.
websiteKey String Required Turnstile website key.
metadata Map<String,String> Optional Turnstile extra data . Turnstile Documentation
metadata.action String Optional The value of the data-action attribute of the Turnstile element if it exists.
metadata.cdata String Optional The value of the data-cdata attribute of the Turnstile element if it exists.

Example Request

txt 复制代码
POST https://api.capsolver.com/createTask
Host: api.capsolver.com
Content-Type: application/json
json lines 复制代码
{
  "clientKey": "YOUR_API_KEY",
  "task": {
    "type": "AntiTurnstileTaskProxyLess",
    "websiteURL": "https://www.yourwebsite.com",
    "websiteKey": "0x4XXXXXXXXXXXXXXXXX",
    "metadata": {
      "action": "login", //optional
      "cdata": "0000-1111-2222-3333-example-cdata" //optional
    }
  }
}

Example Response

json lines 复制代码
{
  "errorId": 0,
  "status": "idle",
  "taskId": "61138bb6-19fb-11ec-a9c8-0242ac110006" // record taskId
}

Step 2 : Getting Results

Use the getTaskResult method to get the recognition results

Depending on the system load, you will get the results within the interval of 1s to 20s

Example Request

txt 复制代码
POST https://api.capsolver.com/getTaskResult
Host: api.capsolver.com
Content-Type: application/json
json lines 复制代码
{
  "clientKey": "YOUR_API_KEY",
  "taskId": "61138bb6-19fb-11ec-a9c8-0242ac110006"
}

Example Response

json lines 复制代码
{
  "errorId": 0,
  "taskId": "61138bb6-19fb-11ec-a9c8-0242ac110006",
  "status": "ready",
  "errorCode": null,
  "errorDescription": null,
  "solution": {
    "token": "0.mF74FV8wEufAWOdvOak_xFaVy3lqIDel7SwNhw3GgpICSWwTjYfrQB8mRT1dAJJBEoP7N1sESdp6WH9cTS1T0catWLecG3ayNcjwxVtr3hWfS-dmcBGRTx4xYwI64sAVboYGpIyuDBeMIRC3W8dK35v1nDism9xa595Da5VlXKM7hk7pIXg69lodfiftasIkyD_KUGkxBwxvrmz7dBo10-Y5zvro9hD4QKRjOx7DYj9sumnkyYCDx0m4ImDIIkNswfVTWI2V22wlnpHdvMgdtKYgOIIAU28y9gtdrdDkpkH0GHcDyd15sxQGd9VjwhGZA_mpusUKMsEoGgst2rJ3zA.UWfZupqLlGvlATkPo3wdaw.38d55cd0163610d8ce8c42fcff7b62d8981495cc1afacbb2f14e5a23682a4e13",
    "type": "turnstile",
    "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"
  }
}

使用CapSolver SDK解决Cloudflare Turnstile

支持的常见验证码类型

轻松使用CapSolver绕过验证码

我们确保将我们的产品无缝集成到您的网络爬虫基础设施中。多语言支持和现成的代码示例,确保您的网络爬虫项目能够快速轻松地启动。

开发者文档

# pip install --upgrade capsolver
# export CAPSOLVER_API_KEY='...'

import capsolver

# capsolver.api_key = "..."
solution = capsolver.solve({
  "type": "AntiTurnstileTaskProxyLess",
  "websiteURL": "https://www.yourwebsite.com",
  "websiteKey": "0x4XXXXXXXXXXXXXXXXX",
  "metadata": {
     "action": "login"  # optional
  }
})
package main

import (
  "fmt"
  capsolver_go "github.com/capsolver/capsolver-go"
  "log"
)

func main() {
  // first you need to install sdk
  //go get github.com/capsolver/capsolver-go

  capSolver := capsolver_go.CapSolver{ApiKey: "..."}
  solution, err := capSolver.Solve(map[string]any{
    "type":       "AntiTurnstileTaskProxyLess",
    "websiteURL": "https://www.yourwebsite.com",
    "websiteKey": "0x4XXXXXXXXXXXXXXXXX",
    "metadata": map[string]string{
      "action": "login"  // optional
    },
  })
  if err != nil {
    log.Fatal(err)
    return
  }
  fmt.Println(solution)
}

免费试用

识别其他15种验证码类型