Captcha

API Cloudflare Turnstile

42 lượt bán · 840 lượt xem · Cập nhật 03/09/2026

Chọn gói dịch vụ

Chọn hạn mức hoặc thời hạn. Thanh toán tự động, nhận API Key ngay.

Chọn gói
Thanh toán —

Chi tiết

#Cloudflare Turnstile Solver API Specification

#Base URL

text
https://phamgiang.net/api/v1/services/cloudflare-turnstile

#POST /tasks

Submit a Turnstile challenge request to the processing queue.

#Headers

http
Content-Type: application/json

#Request Body

json
{
  "url": "https://example.com/login",
  "sitekey": "0x4AAAAAAEkOstBJp3mtTS93",
  "action": "login",
  "cdata": "custom-data",
  "proxy": "http://user:[email protected]:8080"
}
Field Type Required Description
url string Yes Target website URL where the challenge is rendered
sitekey string Yes Cloudflare Turnstile Sitekey (starts with 0x4...)
action string No Optional Turnstile action parameter
cdata string No Optional Turnstile cData parameter
proxy string No Custom proxy for this single task (http://user:pass@host:port or host:port:user:pass)

#Responses

  • 201 Created

    json
    {
      "task_id": "b1b0cb7c-a81d-4074-9ec4-3151f1faee31"
    }
    
  • 400 Bad Request

    json
    {
      "error": "invalid json"
    }
    
  • 503 Service Unavailable

    json
    {
      "error": "queue is full"
    }
    

#GET /tasks/{taskId}

Poll the task status and retrieve the solved token. Recommended polling interval is 1000ms.

#Path Parameters

Parameter Type Required Description
taskId string Yes The task ID returned by POST /tasks

#Responses

  • 200 OK (Processing)

    json
    {
      "status": "processing"
    }
    
  • 200 OK (Solved - ready)

    json
    {
      "status": "ready",
      "token": "0.hdLsU2Rz...",
      "elapsedMs": 4320
    }
    
  • 200 OK (Failed - failed)

    json
    {
      "status": "failed",
      "error": "solve timeout",
      "elapsedMs": 25010
    }
    
  • 404 Not Found

    json
    {
      "error": "task not found"
    }
    

Chi phí theo endpoint

Mỗi request khớp route trừ đúng số credit. Chi phí 0 không trừ hạn mức. Chế độ danh mục: path không nằm trong bảng sẽ bị từ chối.

Bảng chi phí endpoint
Phương thứcĐường dẫnChi phí
POST/tasks1 credit
GET/tasks/*Miễn phí