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
| Field | Aliases | Meaning |
|---|---|---|
script_src | scriptSrc | Full BMP script URL |
js_code | jsCode / js | Script 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": "..."
}| Field | Meaning |
|---|---|
sensors.first/second/third | Three POST bodies. May be strings |
cookie | Cookie snapshot used during generation |
script_src | BMP URL actually used; POST all three here |
url | Final page after redirects |
_abck / bm_sz | Split out of cookie for convenience |
Inner generate timeout caps at 90s and never exceeds this request's timeout.