What is Castle?
Castle (castle.io) is a fraud and bot-detection product rather than a picture captcha. A page that uses it loads Castle’s script, which quietly builds a fingerprint of the visitor — canvas and audio output, WebGL parameters, screen and window details, installed fonts, the IP address, the timezone, the language list, the platform — and signs it into a token. The site’s own server checks that token on the request it arrives with.
There is no checkbox and no puzzle. The whole decision is whether the fingerprint is internally consistent and looks like a real device. That is why the request fields matter more here than for any other type: the token has to describe the connection that will submit it. A token minted for a Berlin timezone and then attached to a request from Taipei is worse than no token at all.
A few of those signals cannot be computed anywhere but on a real device — canvas and audio output above all. They come from harvested device profiles rather than being invented, so the variety of devices we can present is a property of the template pool, not of the request. If a site is particularly strict about one device family, say so and we will tell you what is available before you build on it.
How to solve Castle with DraxonCloud
- Open the page that loads Castle and copy its address.
- Find the site key (see below).
- Write down the identity you will submit with: IP, timezone, languages and platform.
- Send all of it to our API with the type
castle. - Wait for the answer in one request.
- Send the token to the site the way the page does, and continue.
There is nothing to install and no browser to run, and nothing to recognise — the token is built from the identity you stated.
What you send
website_url: the full address of the page that loads Castle, likehttps://example.com/signup.website_key: the Castle public key, starting withpk_. To find it:- Open the page source and search for
castle— the configuration passed to Castle’s script carries the key. - Or pass the captcha once by hand with the Network tab open and read the payload of the
X-Castle-Request-Tokenheader the script sends.
- Open the page source and search for
ip: the address the token will be submitted from. IPv4 or IPv6.timezone: an IANA name,Europe/Berlinrather thanBerlin.languages: the tags the browser reports, in its own order:"de-DE,de". At most eight.platform:Win32,MacIntel,Linux x86_64or similar. It has to agree with the user agent.user_agent(optional): the user agent the request will carry. Leave it out to use ours.
What you get back
A solved task gives you solution.token, the request token, a string that starts with EZK-.
To use it:
- Watch the Network tab once while you pass the captcha by hand, and see where the page puts the
token. Castle’s script attaches it as the
X-Castle-Request-Tokenheader on the site’s own requests; some sites pass it in a form field or a cookie instead. - Send our token in the same place, and submit from the same address and with the same user agent you stated when you created the task.
- Use it soon. It carries a timestamp, so it is short-lived.
A quick example
Start a task:
curl -s -X POST https://draxon.one/api/captcha/v1/tasks \
-H "Authorization: Bearer $DRAXON_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "castle",
"website_url": "https://example.com/signup",
"website_key": "pk_live_abc123",
"ip": "203.0.113.42",
"timezone": "Europe/Berlin",
"languages": "de-DE,de",
"platform": "Win32"
}'
Wait for the answer:
curl -s -H "Authorization: Bearer $DRAXON_KEY" \
"https://draxon.one/api/captcha/v1/tasks/<id>?wait=60"
When it is ready (some fields left out):
{
"status": "solved",
"solution": {
"token": "EZK-f_Qb|JABBMGNUUjBOSEkwY2pSd..."
}
}
Then send it the way the page does:
curl -s -X POST https://example.com/signup \
-H "Content-Type: application/json" \
-H "X-Castle-Request-Token: EZK-f_Qb|JABBMGNUUjBOSEkwY2pSd..." \
-d '{"email":"[email protected]"}'
Already using another service?
Castle is not part of the compatibility layer. CapSolver, 2Captcha and CapSolver-style tools have no
task type that carries ip, timezone, languages and platform, and without them a Castle token
describes nothing. Call /api/captcha/v1/tasks directly for this type.
What it costs
You pay for each solved Castle task. The live price is in the box at the top of this page and on the pricing page. The price is held when the task starts, charged only when you get the answer, and returned in full if the task fails or runs out of time. A task is never charged twice.
Tips that save you time
- State the identity you will actually use. The token is a signature over it, so a timezone, platform or address that does not match the submission is worse than sending nothing.
- Keep the platform and the user agent in agreement.
MacIntelwith a Windows user agent is the kind of contradiction a fingerprint is built to find. - Create the task late. The token is timestamped, so minting one minutes before you need it is wasted.
- Reuse an identity sparingly. One identity behind a large burst from one address is exactly the
pattern Castle scores against; a rotating proxy with matching
ipvalues spreads it out. We do not make the outbound request, so the proxy is yours to choose — onlyiphas to agree with it.