Skip to content

type: castle

Castle tokens, minted to match the client.

Castle does not show a puzzle. It signs a fingerprint of the visitor and checks that fingerprint against the request carrying it. Send the page, the site key and the identity you are using, and we send back the request token.

Castle at a glance
type
castle
you send
website_url, website_key, ip, timezone, languages, platform
optional
proxy, user_agent
you get
Castle request token (EZK-…)
price
$0.000600 per solve, $0.60 per 1,000
not solved?
nothing is charged

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

  1. Open the page that loads Castle and copy its address.
  2. Find the site key (see below).
  3. Write down the identity you will submit with: IP, timezone, languages and platform.
  4. Send all of it to our API with the type castle.
  5. Wait for the answer in one request.
  6. 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, like https://example.com/signup.
  • website_key: the Castle public key, starting with pk_. 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-Token header the script sends.
  • ip: the address the token will be submitted from. IPv4 or IPv6.
  • timezone: an IANA name, Europe/Berlin rather than Berlin.
  • languages: the tags the browser reports, in its own order: "de-DE,de". At most eight.
  • platform: Win32, MacIntel, Linux x86_64 or 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-Token header 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. MacIntel with 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 ip values spreads it out. We do not make the outbound request, so the proxy is yours to choose — only ip has to agree with it.

Questions people ask

Short, plain answers. The docs have every detail.

What do I need to send?

The full address of the page, the Castle site key (it starts with pk_), and the client's identity: IP address, timezone, language tags and platform. A user agent is optional.

Why does it need the IP and the timezone?

Because the token is a signature over that identity, and Castle compares it with the request it arrives on. A token that claims a Berlin timezone from a Taipei address, or a Mac platform with a Windows user agent, is the disagreement Castle exists to catch. Those values have to be true of the connection you will submit on.

Is there a puzzle to solve?

No. There is nothing to look at, which is why this type is fast and why it has no challenge-specific price. Castle decides with the fingerprint alone.

What do I get back?

solution.token: the request token, a string that starts with EZK-. Send it the way the page sends its own.

How long is the token good for?

It carries a timestamp, so it is short-lived. Create the task when you are ready to submit and send the token right away.

Do I need a proxy?

Not for the token itself: there is nothing to fetch and no browser to run. But if you submit through one, the ip you send must be that proxy's address, because the token is a signature over the identity you stated.

What happens if a solve fails?

You pay nothing. The price is only held while the task runs and goes back to your balance if it fails or runs out of time.

Can I keep my CapSolver or 2Captcha code?

Not for this one. Castle needs four fields no other captcha type takes, and the compatibility layer has no name for it. Call /api/captcha/v1/tasks directly.

Am I allowed to use this on any site?

Only on sites you have the right to automate. Some sites are blocked on our side. Please read the Terms before you start.

Castle without a browser of your own

What each way of getting a token asks of you, and the three steps this one takes.

Ways to get a Castle token, compared
Approach What you run Where the token comes from What tends to break
Your own browser automation A real browser per solve, with a driver and a display You answer the puzzle yourself, or you babysit it Puzzle layouts change and the script that clicked them stops working
A solver stack of your own Recognition models, a browser, and the plumbing between them Yours, as long as the models keep up with the puzzles Puzzles that need a browser session still need a browser session
DraxonCloud One HTTPS request from anything that can send one The Castle token, returned by the API Nothing you host; the response tells you why a task failed

Costs above are what each approach asks of you, not a claim about which is cheaper at every volume. The Castle docs list every field and every error code.

  1. 01

    Create a key

    Make an account and create an API key from the dashboard. It starts with drx_ and carries the scopes you pick.

  2. 02

    Send the Castle details

    One request with the page address, the site key and the type castle. Add rqdata, a proxy or a user agent only if the site needs them.

  3. 03

    Use the token

    The answer carries the token your form expects. Submit the form through the same proxy and user agent you solved with.

Start solving Castle today.

Make an account, add funds, create a key. If a captcha is not solved, you pay nothing.