Skip to content
StatusConsole

Guides

Find Turnstile parameters

A Turnstile task needs websiteURL (the page showing the widget) and websiteKey (the site key, usually starting with 0x). First make sure it is Turnstile and not the challenge page; see Identify the captcha type.

Method 1: page source. In the Elements panel of the developer tools (F12), search for data-sitekey:

<div class="cf-turnstile" data-sitekey="0x4AAAAAAAxxxxxxxxxxxxxx"></div>

Method 2: scripts. If the widget is rendered with JavaScript, right-click in the Sources panel, choose “Search in all files”, search for turnstile.render, and read sitekey in its options:

turnstile.render('#container', { sitekey: '0x4AAAAAAAxxxxxxxxxxxxxx', callback: onDone });

Method 3: network requests. Search the Network panel for challenges.cloudflare.com; the widget’s iframe URL contains the site key starting with 0x.

The full URL of the page that shows the widget, for example https://example.com/login.

Most sites don’t need them. Look for them only when you are sure websiteKey and websiteURL are correct and tasks still fail: check the turnstile.render options or the widget element for action and cData (data-action and data-cdata on the element):

turnstile.render('#container', { sitekey: '0x4AAAAAAAxxxxxxxxxxxxxx', action: 'login', cData: 'c0bd4b36-7419-4e18-83c6-378699f2a9a2' });

If they are there, pass action as pageAction and cData as data when you create the task; see Turnstile.

When the task is done, put token into the form’s hidden field named cf-turnstile-response (if the page uses turnstile.render with a callback, call that callback with the token), then submit the form. Use the result’s userAgent as the User-Agent of the submission.