NEW與 createTask 和 in.php 相同的 API,換個位址就能串接查看 API 文件
GATESOLVER
開始使用

最簡單的 AWS WAF 驗證碼辨識 API

GateSolver 以 AI 自動辨識 AWS WAF 驗證碼。1,000 次 $1.40,通常 3 秒 內產生結果,只為成功的任務付費。

什麼是 AWS WAF 驗證碼?

AWS WAF 驗證碼是 Amazon Web Services 防火牆跳出的驗證畫面。通過後會取得 aws-waf-token Cookie。

將取得的 cookie 值設為 aws-waf-token Cookie 後重新請求。

AWS WAF

< 3s · $1.40 / 1k

為什麼用 GateSolver 辨識 AWS WAF

價格與速度

任務 type速度價格
AntiAwsWafTaskProxyLess / AntiAwsWafTask< 3s$1.40 / 1k

AWS WAF 辨識方法:API 說明

只需兩次請求:用 createTask 建立任務,用 getTaskResult 取得答案。

步驟 1:建立任務

POST https://gatesolver.com/createTask

欄位必填說明
type是AntiAwsWafTaskProxyLess 或 AntiAwsWafTask
websiteURL是出現驗證畫面的網址
awsKey否頁面中的 key 值
awsIv否頁面中的 iv 值
awsContext否頁面中的 context 值
proxy否使用 AntiAwsWafTask 時的代理

請求

{
  "clientKey": "YOUR_API_KEY",
  "task": {
    "type": "AntiAwsWafTaskProxyLess",
    "websiteURL": "https://example.com/login"
  }
}

回應

{
  "errorId": 0,
  "taskId": "61138bb6-19fb-11ec-a9c8-0242ac110006"
}

步驟 2:取得結果

POST https://gatesolver.com/getTaskResult

用 taskId 每 3 秒查詢一次結果。status 為 processing 時繼續等待,變成 ready 後使用 solution。

請求

{
  "clientKey": "YOUR_API_KEY",
  "taskId": "61138bb6-19fb-11ec-a9c8-0242ac110006"
}

回應

{
  "errorId": 0,
  "taskId": "61138bb6-19fb-11ec-a9c8-0242ac110006",
  "status": "ready",
  "solution": {
    "cookie": "223d1f60-0e9f-4238-..."
  }
}

將取得的 cookie 值設為 aws-waf-token Cookie 後重新請求。

程式碼範例

import requests, time

API = "https://gatesolver.com"
KEY = "YOUR_API_KEY"
task = {
    "type": "AntiAwsWafTaskProxyLess",
    "websiteURL": "https://example.com/login"
}

r = requests.post(f"{API}/createTask", json={"clientKey": KEY, "task": task}).json()
task_id = r["taskId"]
while True:
    time.sleep(3)
    res = requests.post(f"{API}/getTaskResult", json={"clientKey": KEY, "taskId": task_id}).json()
    if res.get("status") == "ready":
        print(res["solution"])
        break
    if res.get("errorId"):
        raise RuntimeError(res["errorCode"])

AWS WAF 常見問題

AWS WAF 1,000 次多少錢?

AWS WAF 價格:1,000 次 $1.40。每 1 次任務從餘額扣款,只為產生結果的任務付費。

AWS WAF 多快能產生結果?

通常 3 秒 內產生結果。每隔幾秒呼叫 getTaskResult,status 變成 ready 後就能使用答案。

AWS WAF 任務要用哪個 type?

預設 type:AntiAwsWafTaskProxyLess。其他名稱(例如使用代理的版本)也以相同價格接受。

失敗會扣款嗎?

不會。未辨識成功或逾時的任務不收費。

支援的其他驗證碼