Skip to content

Akamai

Get a valid Akamai Bot Manager _abck cookie and the full cookie jar with the akamai type. Fields, user agent and proxy rules, code and fixes.

Use the akamai type for sites protected by Akamai Bot Manager. You send the page, and ideally your user agent and proxy. You get the _abck cookie and every other cookie the site set.

Overview

Akamai Bot Manager (often called Akamai BMP) checks visitors in the background with a script on the page. When the browser passes, Akamai marks the _abck cookie as passed. Requests without a good _abck can get a 403, an “Access Denied” page or broken answers.

type akamai
Needs a site key No
Strongly suggested user_agent, proxy
You get solution.cookies, solution.cookie_header, solution.token, solution.valid, solution.abck_status

Before you start

  1. Create an API key in the dashboard under API keys (starts with drx_) and add funds.
  2. Make sure the site uses Akamai Bot Manager: open it in your browser, then the developer tools, Application (Chrome) or Storage (Firefox), Cookies. A cookie named _abck (often next to bm_sz) means Akamai.
  3. Pick the page your script needs. That is your website_url.
  4. Pick the user agent and proxy your script will use from now on. You will send both in the task and in your own requests.

Request fields

Field Required What to put
type Yes akamai
website_url Yes The full address of the protected page, starting with https://.
user_agent No, but suggested The browser user agent your script sends, ideally a recent Chrome. If empty, a Chrome user agent of ours is used and is not returned to you.
proxy No, but suggested user:pass@host:port, or with a scheme like http:// or socks5://. The solve goes through it.

No site key is needed.

Create the task

curl

curl -s -X POST https://draxon.one/api/captcha/v1/tasks \
  -H "Authorization: Bearer $DRAXON_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: booking-8124" \
  -d '{
    "type": "akamai",
    "website_url": "https://www.example-airline.com/booking",
    "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36",
    "proxy": "http://user:[email protected]:8080"
  }'

Python

import os
import requests

API = "https://draxon.one/api/captcha/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['DRAXON_KEY']}"}
PAGE = "https://www.example-airline.com/booking"
UA = ("Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 "
      "(KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36")
PROXY = "http://user:[email protected]:8080"

task = requests.post(f"{API}/tasks", headers=HEADERS, timeout=30, json={
    "type": "akamai",
    "website_url": PAGE,
    "user_agent": UA,
    "proxy": PROXY,
}).json()

while task["status"] in ("queued", "processing"):
    task = requests.get(f"{API}/tasks/{task['id']}", params={"wait": 30},
                        headers=HEADERS, timeout=60).json()

if task["status"] == "solved" and task["solution"]["valid"]:
    page = requests.get(PAGE, proxies={"http": PROXY, "https": PROXY}, timeout=30, headers={
        "User-Agent": UA,
        "Cookie": task["solution"]["cookie_header"],
    })
    print(page.status_code)

Node.js

const API = "https://draxon.one/api/captcha/v1";
const headers = {
  Authorization: `Bearer ${process.env.DRAXON_KEY}`,
  "Content-Type": "application/json",
};
const userAgent =
  "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36";

let task = await (await fetch(`${API}/tasks`, {
  method: "POST",
  headers,
  body: JSON.stringify({
    type: "akamai",
    website_url: "https://www.example-airline.com/booking",
    user_agent: userAgent,
    proxy: "http://user:[email protected]:8080",
  }),
})).json();

while (task.status === "queued" || task.status === "processing") {
  task = await (await fetch(`${API}/tasks/${task.id}?wait=30`, { headers })).json();
}

if (task.status === "solved" && task.solution.valid) {
  const { cookie_header } = task.solution;
  // Send cookie_header with User-Agent: userAgent, through the same proxy.
}

Get the result

Use ?wait=30 (0 to 120 seconds) to get the answer in one request.

curl -s -H "Authorization: Bearer $DRAXON_KEY" \
  "https://draxon.one/api/captcha/v1/tasks/<id>?wait=30"

A solved task (cost fields left out):

{
  "id": "8a3f2c10-4e7b-49d1-b5c6-7d0e1f2a3b4c",
  "type": "akamai",
  "status": "solved",
  "website_host": "www.example-airline.com",
  "attempts": 1,
  "created_at": "2026-10-30T10:00:00Z",
  "completed_at": "2026-10-30T10:00:08Z",
  "solution": {
    "token": "0~YAAQ...",
    "valid": true,
    "abck_status": "0",
    "cookies": {
      "_abck": "8D1C...~0~YAAQ...~-1",
      "bm_sz": "4F2A..."
    },
    "cookie_header": "_abck=8D1C...~0~YAAQ...~-1; bm_sz=4F2A..."
  },
  "error": null
}

What the fields mean:

  • cookies: every cookie the site set, by name. Send them all.
  • cookie_header: the same cookies, joined into one Cookie header.
  • token: the token part of _abck.
  • abck_status: the status Akamai wrote into _abck. 0 means passed.
  • valid: true when the cookie is marked as passed.

Use the answer

  • Send solution.cookie_header as your Cookie header, or load solution.cookies into your client’s cookie jar for the site’s domain. Send all of them, not just _abck.
  • Send the same user agent you put in the task.
  • Send through the same proxy.
  • Use a client whose connection looks like a normal browser. Akamai also checks how the connection is made, so the cookie can be refused on a very basic HTTP client.
  • Keep using the cookies for a series of requests. When the site starts refusing you again, create a new task.
  • If valid is false, don’t use the cookies. Create a new task.

Compatible API names

Change your tool’s address to https://draxon.one/api/captcha/compat and use your DraxonCloud key as the client key.

Service style Name for this type
CapSolver / Anti-Captcha createTask AkamaiBMPTask, AkamaiBMPTaskProxyless, AkamaiWebTask, AkamaiCookieTask
2Captcha in.php method=akamai_bmp
curl -s -X POST https://draxon.one/api/captcha/compat/createTask \
  -H "Content-Type: application/json" \
  -d '{
    "clientKey": "'"$DRAXON_KEY"'",
    "task": {
      "type": "AkamaiWebTask",
      "websiteURL": "https://www.example-airline.com/booking",
      "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) ... Chrome/141.0.0.0 Safari/537.36",
      "proxy": "http://user:[email protected]:8080"
    }
  }'

When getTaskResult says ready, the solution has token, cookies (the whole jar) and cookie (a ready header). On 2Captcha, res.php returns the token. See Compatible APIs.

Errors and fixes

When you create a task:

Error What it means What to do
422 validation_error on website_url Not a full http(s):// address, or too long. Send the full page address.
422 validation_error on user_agent or proxy The value is too long. Send only the value itself.
422 target_blocked This website is not served. Pick a site you are allowed to automate.
402 insufficient_balance / spend_cap_reached Not enough funds, or the key’s daily limit. Add funds or raise the limit.

When a task ends without cookies:

error.code What it means What to do
solve_failed No usable _abck came back. The page may not use Akamai, or the proxy was refused. Check the cookies in your browser for _abck, try another proxy IP.
provider_timeout It took too long. Check that the proxy is fast, then try again.
expired Not finished within about 3 minutes. Try again.

Failed and expired tasks cost nothing. Solved, but the site still refuses you? The usual causes are a different user agent, a different IP, missing cookies (send the whole jar), or a client that doesn’t look like a browser. More codes on the errors page.

Price and billing

Each solved Akamai task costs the price on the pricing page, also in GET /api/captcha/v1/families. Creating a task holds the amount. You are charged only when it is solved. A failed or expired task releases the hold.