Skip to content

Akamai ​

POST /v1/solve/akamai

Produces BMP sensors: first / second / third. The caller POSTs those three bodies back to the page script URL to advance _abck.

url alone is enough: the server opens the home page, finds the BMP script, and fetches the JS. Passing the home-page cookie and script together is faster and more stable.

payload ​

FieldAliasesMeaning
script_srcscriptSrcFull BMP script URL
js_codejsCode / jsScript source. If omitted, the server GETs it

When cookie, script_src, and js_code are all present, the home page is not fetched.

Request examples ​

Site only:

json
{
  "url": "https://www.akamai.com/zh",
  "timeout": 90000
}

When you already fetched the page, pass cookie + script for a faster solve:

json
{
  "url": "https://www.akamai.com/zh",
  "cookie": "_abck=...; bm_sz=...",
  "user_agent": "Mozilla/5.0 ... Chrome/153.0.0.0 ...",
  "payload": {
    "script_src": "https://www.akamai.com/xxxx",
    "js_code": "/* bmp js */"
  }
}
bash
curl -s -X POST '{BASE}/v1/solve/akamai' \
  -H 'content-type: application/json' \
  -H 'Authorization: Bearer <site-key>' \
  -d '{"url":"https://www.akamai.com/zh","payload":{"script_src":"..."}}'

data ​

json
{
  "sensors": {
    "first": "...",
    "second": "...",
    "third": "..."
  },
  "cookie": "_abck=...; bm_sz=...",
  "script_src": "https://...",
  "url": "https://www.akamai.com/zh",
  "_abck": "...",
  "bm_sz": "..."
}
FieldMeaning
sensors.first/second/thirdThree POST bodies. May be strings
cookieCookie snapshot used during generation
script_srcBMP URL actually used; POST all three here
urlFinal page after redirects
_abck / bm_szSplit out of cookie for convenience

Inner generate timeout caps at 90s and never exceeds this request's timeout.