ReCaptchaV2创建任务
POST
https://api.ez-captcha.com/createTask
请求参数
Body 参数application/json
clientKey
string
必需
task
object
任务参数对象
websiteURL
string
必需
websiteKey
string
必需
type
string
必需
isInvisible
boolean
必需
示例
{
"clientKey": "cc9c18d3e263515c2c072b36a7125eecc078618f",
"task": {
"websiteURL": "https://www.google.com/recaptcha/api2/demo",
"websiteKey": "6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-",
"type": "ReCaptchaV2TaskProxyless",
"isInvisible": false
}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.ez-captcha.com/createTask' \
--header 'Content-Type: application/json' \
--data-raw '{
"clientKey": "cc9c18d3e263515c2c072b36a7125eecc078618f",
"task": {
"websiteURL": "https://www.google.com/recaptcha/api2/demo",
"websiteKey": "6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-",
"type": "ReCaptchaV2TaskProxyless",
"isInvisible": false
}
}'
返回响应
🟢200结果
application/json
Body
errorId
integer
必需
errorCode
string
必需
errorDescription
string
必需
taskId
string
必需
示例
{
"errorId": 0,
"errorCode": "string",
"errorDescription": "string",
"taskId": "string"
}
修改于 2023-09-30 14:13:55