受支持的任务类型
API 方法
文章
教程
GitHub
文献资料菜单

AntiGateTask:用于绕过人机验证保护措施的最终解决方案

执行这种任务时,您的应用会提供页面 URL 地址,以及向我们工作人员分配的自定义任务。工作人员会逐步完成分配的任务,然后将其完整浏览器指纹和 Cookie 送回您的应用,可用其继续进行会话。

关于技术的完整描述,请参考这个文章,或这个YouTube教程。YouTube教程。

请注意,有一些代理参数是自愿使用的参数。仅会接受 HTTPS 代理,“proxyAddress”必须是 IP 地址。

任务对象

属性 类型 必须使用 用途
type 字符串 AntiGateTask
websiteURL 字符串 我们的工作人员将从中进行浏览的目标网页的地址。
templateName 字符串 我们数据库中某个方案模板的名称。可使用现有模板,也可自行创建模板。可在此表下面搜索现有模板。
variables 对象 含有模板变量及其值的对象。
domainsOfInterest 数组 我们应该收集cookies和localStorage数据的域名列表。这个列表也可以在编辑模板时静态地定义。
proxyAddress 字符串 ipv4/ipv6 代理服务器 IP 地址。禁止使用主机名或本地网络中的 IP 地址。
proxyPort 整数 代理服务器端口
proxyLogin 字符串 用于需要授权(基本授权)的代理服务器的登录名
proxyPassword 字符串 代理服务器密码

模板收集


模板名称和说明
未通过您的查询找到模板
通过代理服务器执行任务
          Click "view" button at one of the templates
        
不通过代理服务器执行任务
          Click "view" button at one of the templates
        
模板步骤
          
        
作者的联系信息

回应示例

JSON 没有错误
          {
    "errorId": 0,
    "taskId": 7654321
}
        
JSON 有错误
          {
    "errorId": 1,
    "errorCode": "ERROR_KEY_DOES_NOT_EXIST",
    "errorDescription": "Account authorization key not found in the system"
}
        

重获破解结果

用方法 getTaskResult 请求提供破解结果。首次提出请求之前,要给工作人员一些时间,例如 5 秒钟。如果工作人员还在忙,则过 3 秒再重试。

任务破解结果对象

属性 类型 用途
cookies 对象 含有从工作人员访问的最后一页中获取的 Cookie 的对象。
localStorage 对象 含有 localStorage 值的对象也在最后一页中获取,这类似于 Cookie。
fingerprint 对象 浏览器指纹参数。可一同使用这些参数与 Cookie 和 localStorage,以便在您的软件中重新创建工作人员浏览器会话。
url 字符串 页面的 URL 是已完成的模板步骤的执行结果
domain 字符串 最终页面的域名
HTMLsInBase64 数组 以base64编码的页面区域的HTML快照数组。快照由AntiGate模板中的 "TAKE_HTML_SNAPSHOT_BY_SELECTOR "步骤获取。
screenshots 数组 如果有的话,从工人的浏览器中获取的截图。要订购屏幕截图,请在你的模板中添加TAKE_SCREENSHOT步骤。
requestHeaders 数组 来自 "domainsOfInterest "的请求头信息,如果有的话。要订购头信息,请在你的模板中启用 "从感兴趣的域收集请求的HTTP头信息 "选项。
responseHeaders 数组 来自 "domainsOfInterest "的响应头信息,如果有的话。要订购头信息,请在你的模板中启用 "从感兴趣的域收集响应的HTTP头信息 "选项。

回应示例

JSON 没有错误
          {
    "errorId": 0,
    "status": "ready",
    "solution": {
        "cookies": {
            "_ym_uid": "1637841149407895406",
            "_ym_d": "1637841149",
            "_ym_isad": "2",
            "i18n_redirected2": "en"
        },
        "localStorage": {
            "_ym40786994_lsid": "322553582843",
            "_ym40786994_reqNum": "3",
            "_ym_fip": "\"65aac1083a9e31e5db7fc4a33816f1da-a81f3b9bcdd80a361c14af38dc09b309-a81f3b9bcdd80a361c14af38dc09b309-4bd84c89c35a312599d807af285e7b5f-615e6e8d95ae2de0910b550b0e4dfce2-00b2e6de4e7f2e69dd7de8ef95c7338a-61b9878bbce18de73aafc8582a198c0c-33ad8703f96139d946191563a4c623e6-a81f3b9bcdd80a361c14af38dc09b309-c6d7b47b2dcff33f80cab17f3a360d0b-a95e7098ce4ab7ec9daa7fb4154b8ff4\"",
            "_ym_retryReqs": "{}",
            "_ym40786994_lastHit": "1637841164076",
            "_ym_uid": "\"1637841149407895406\""
        },
        "fingerprint": {
            "self.navigator.userAgent": "Mozilla\/5.0 (Windows NT 6.3; Win64; x64; rv:94.0) Gecko\/20100101 Firefox\/94.0",
            "self.screen.width": 1280,
            "self.screen.height": 768,
            "self.screen.availWidth": 1280,
            "self.screen.availHeight": 728,
            "self.screen.availLeft": 0,
            "self.screen.availTop": 0,
            "self.navigator.vendorSub": "",
            "self.navigator.productSub": "20100101",
            "self.navigator.vendor": "",
            "self.navigator.maxTouchPoints": 0,
            "self.navigator.hardwareConcurrency": 2,
            "self.navigator.cookieEnabled": true,
            "self.navigator.appCodeName": "Mozilla",
            "self.navigator.appName": "Netscape",
            "self.navigator.appVersion": "5.0 (Windows)",
            "self.navigator.platform": "Win32",
            "self.navigator.product": "Gecko",
            "self.navigator.language": "en-US",
            "self.navigator.onLine": true,
            "self.navigator.doNotTrack": "unspecified"
        },
        "url": "https:\/\/anti-captcha.com\/tutorials\/success-page?login=some%20login&pass=the%20password",
        "domain": "anti-captcha.com",
        "domainsOfInterest": {
            "any-other-domain.com": {
                "cookies": {
                    "example": "value",
                    "comment": "This will be available when you fill a list of Domains Of Interest in the template itself or via domainsOfInterest parameter in the task object"
                },
                "localStorage": {
                    "example": "localStorage value"
                },
                "url": "https://any-other-domain.com/some/path",
                "domain": "any-other-domain.com"
            }
        },
        "screenshots": [],
        "requestHeaders": [],
        "responseHeaders": []
    },
    "cost": "0.00858",
    "ip": "5.25.11.114",
    "createTime": 1637841143,
    "endTime": 1637841189,
    "solveCount": 0
}