Writing Skills
writing-skills
效率与协作技能,来自 obra/superpowers,查看原文获取完整用途和操作说明。
turnstile【部署与运维】Solve Cloudflare Turnstile CAPTCHAs via AceDataCloud API. Use when you need to bypass or solve a Cloudflare Turnstile challenge by providing the site key and page URL to get back a valid token. Supports synchronous and asynchronous modes.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Solve Cloudflare Turnstile CAPTCHA challenges through AceDataCloud's captcha API. Submit the site key and target URL to receive a valid cf-turnstile-response token.
Setup: See authentication for token setup.
curl -X POST https://api.acedata.cloud/captcha/token/turnstile \
-H "Authorization: ******" \
-H "Content-Type: application/json" \
-d '{
"website_key": "0x4AAAAAAADnPIDROrmt1Wwj",
"website_url": "https://react-turnstile.vercel.app"
}'
A successful synchronous response:
{
"token": "0.mNQ2f9uP6mQ0y3H5Q8bqO7iM...",
"started_at": 1784885653.0,
"finished_at": 1784885665.0,
"elapsed": 12.4
}
Use the returned token as the cf-turnstile-response value when submitting forms to the target site. The token is single-use with a ~120s validity — use it within 60s.
website_keycf-turnstiledata-sitekey attribute value is the website_key| Parameter | Required | Description |
|---|---|---|
website_key | ✓ | The Turnstile site key (data-sitekey) from the target page |
website_url | ✓ | The full URL of the page containing the Turnstile widget |
action | Custom action value — only needed when the target page sets a custom action | |
cdata | Custom cData value — only needed when the target page sets a custom cData | |
async | When true, return immediately with a task_id; poll POST /captcha/tasks to retrieve the token |
| Field | Description |
|---|---|
token | The solved Turnstile token to submit as cf-turnstile-response |
started_at | ISO-8601 timestamp when solving began |
finished_at | ISO-8601 timestamp when solving completed |
elapsed | Total solving time in seconds |
Pass async: true to return a task_id immediately instead of blocking:
POST /captcha/token/turnstile
{
"website_key": "0x4AAAAAAADnPIDROrmt1Wwj",
"website_url": "https://react-turnstile.vercel.app",
"async": true
}
Then poll POST /captcha/tasks with the returned task_id:
POST /captcha/tasks
{"task_id": "<task_id>"}
Async: See async task polling for the full polling contract.
Submit the token to the target site as cf-turnstile-response:
import requests
token = "0.mNQ2f9uP6mQ0y3H5Q8bqO7iM..."
response = requests.post(
"https://react-turnstile.vercel.app",
data={"cf-turnstile-response": token}
)
website_key and website_url are requiredaction and cdata are optional and only required when the target site explicitly uses themasync: true for non-blocking operationMCP: See MCP servers for tool-use integration.