【滑块验证码 滑块校验登陆 点选文字验证码 点选图片验证码】支持滑块验证码、点选文字验证码、点选图片验证码等多种行为验证技术,高效拦截恶意登录机器行为,有效减少垃圾账号注册,实时保障验证安全。
返回首页
滑动验证API-行为验证码-滑块验证码
请求示例
curl -X POST https://api.zhuimengapi.com/api/v1/captcha \
-H "X-API-Key: RPA-xxxxxxxx"
-d "captchaAppId=your_captchaAppId \
-d "ticket=your_ticket \
-d "randstr=your_randstr \
-d "captchaSign=your_captchaSign \
-d "ip=your_ip"import requests
url = "https://api.zhuimengapi.com/api/v1/captcha"
headers = {"X-API-Key": "RPA-xxxxxxxx"}
data = {
"captchaAppId": "your_captchaAppId",
"ticket": "your_ticket",
"randstr": "your_randstr",
"captchaSign": "your_captchaSign",
"ip": "your_ip"
}
res = requests.post(url, data=data, headers=headers)
print(res.json())const axios = require('axios');
axios.post("https://api.zhuimengapi.com/api/v1/captcha", {
captchaAppId: "your_captchaAppId",
ticket: "your_ticket",
randstr: "your_randstr",
captchaSign: "your_captchaSign",
ip: "your_ip"
}, {
headers: { "X-API-Key": "RPA-xxxxxxxx" }
}).then(res => console.log(res.data));响应示例
{
"code": 0,
"msg": "返回码对应描述",
"success": false,
"taskNo": "本次请求唯一号",
"data": {
"evilLevel": 0,
"evilBitmap": 0
}
}
接口信息
请求地址
https://api.zhuimengapi.com/api/v1/captcha
请求方式
POST
Content-Type
application/x-www-form-urlencoded
鉴权方式
X-API-Key: RPA-xxxxxxxx
请求参数
captchaAppId
string
必填 验证码CaptchaAppId(联系服务商开通),和客户端一致。注意:不可使用客户端类型为小程序的captchaAppId,会导致数据统计错误
ticket
string
必填 验证码返回给用户的票据
randstr
string
必填 验证票据需要的随机字符串
captchaSign
string
必填 验证码签名。sign = sha256(captchaAppId + captchaAppSecret + ticket + randstr)。用服务商分配的captchaAppId、服务商分配的captchaAppSecret,前端验证返回的ticket和randstr,按上述顺序拼接成字符串,再进行sha256哈希得到
ip
string
用户操作来源的外网IP
返回字段
code
int
必填 返回码,200表示验证通过
msg
string
必填 返回码对应描述
success
boolean
必填 true=验证通过,false=失败
taskNo
string
必填 本次请求唯一号
data
object
必填 返回数据
evilLevel
int
必填 风控等级,0=无风险,100=有恶意
evilBitmap
int
命中的风控规则编号,null=未命中
- 200请求成功
- 401API Key 无效或已过期,请检查密钥是否正确
- 402余额不足,请充值后再试
- 403IP 地址不在允许范围内或被限制访问
- 404接口路由不存在,请检查接口地址
- 429请求频率超限,请稍后再试
- 500服务器内部错误,请联系技术支持
- 502接口异常,或者传参错误,请联系技术支持
请求地址
https://api.zhuimengapi.com/api/v1/captcha
请求方式
POST
Content-Type
application/x-www-form-urlencoded
鉴权 Header
X-API-Key
Params
GET 请求只通过 URL 查询参数发送
Body 表单模式
POST + application/x-www-form-urlencoded 使用表单键值对请求体
快速信息
| 接口路由 | captcha |
| 接口分类 | - |
| 请求方式 | POST |
| 计费方式 | 1 积分/次 |
| 频率限制 | 不限制 |
| 认证方式 | X-API-Key |
| 接口提供 | 官方接口 |