Join And Get Free Trial!

getToken#


getToken API 旨在通过创建任务并立即返回结果来简化解决验证码挑战的过程。与需要使用 getTaskResult 端点来检索结果的传统方法不同,getToken API 消除了此步骤,从而提供了更多的高效、更无缝的体验。

API 端点: https://api-v2.nextcaptcha.com/getToken

方法: POST

内容类型: application/json

请求属性#

名称类型必须使用的描述
clientKey字符串是的你的API密钥
task对象是的描述验证码任务的对象,具体类型请参见Captcha任务类型文档
callbackUrl字符串注册的网络服务器的URL,用于接收和处理验证码解决结果
softId整数在我们的软件目录中注册的您的软件ID

请求示例#

{
    "clientKey":"api key",
    "task": {
        "type":"Recaptchav2TaskProxyless",
        "websiteURL":"https://www.google.com/recaptcha/api2/demo",
        "websiteKey":"6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-"
    }
}

响应示例#

此 API 简化了工作流程,增强了用户体验,并提供了更多的简化的验证码处理方法。如果成功,API 将返回“0|TOKEN”;如果失败,则返回“1|ERROR_MSG”。
STATUS|TOKEN or ERROR_MSG

Success:
0|03AFcWeA7CFbZ7rbZac259n0RBO5L3Hs3_8TqBaXcgGWOUsqx3kfqdBbkC933g-GwJB8g6mN6eytpX6xb6KBT7V1B-0zyzya9eaoZfJ9c1ewZJS1swU1JGUw2ilPFs5Eb9MCW7cPHboWibfRpuIhn3bO4gL2sby7hFmWh9F6cBGcYGXEa-HQgNmSasfwlIN4C3U_sU29Mj6oh29rYQoN3-Q-mPyC4elNH7akJ1qKKRiIQWDAHTYfHwVrKIx6gmmPD_D1CrFbWxUAK74PrbQrLqSEBYNx_rXnb7L8oJnJTH2ScA37D5qLwzI0fRsnzbwX8hDSbH1vkm-yLKJEk3KztE_vpkpNhL5i9pwd0yGxkQOouZOUGWrsLjnAnbU4k_34LXQHS3dAC8U0ZF6WxwlGSoS0MlBCsf7nH15LieaSd41UCWwDhBTlbOAuRtnRrj-nhl8YNkJnQ0a-mv8Fd2O4z5W9AO5rDyKNbfzbPuhjVuqDdwvI1_dUkbPlLMYVyoV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BxaILIPSgMqhnuvbmvvecf9oMB_x6nzTp9zQrfMJ4fIb46o0I_2EcwtmykNedHy21mJifva29oL2WamMmi6gOFXCYk3Z9EdciKDrhv2U8YoGjU2YcXD3P2kygD813jE_5m7NXSXLNYryxfSZVmSNGwGSgXHNreK36znbH9qq_U44uG_1Md3PlY_x8EKw4w_wXKWC4q_IToIdHlnDFdYr-CjN2IO0Wd48jm4Fzf8daguVHR7C95tmheBcy6Ea3xX49r5s5NiH4wNNsgjSaaNZcG8nPYwsaPjp2P_vcI3hk93nxYN3d1RnTif1_ap0R-91KEZF7gn693Bvy09KwZYwZaRPnt_-75oqfpFcAPH4yZkUtb7-Sy1DFosCflEJdAnND8pMSNvqQHapyzIDzdFBw8hSiC4pthumLFHvCvXhIu-ow

Failure:
1|The CAPTCHA challenge failed to be resolved.

相关链接#