Hyper Solutions SDK - Python Library for Bot Protection Bypass (Akamai, Incapsula, Kasada, DataDome)
A powerful Python SDK for bypassing modern bot protection systems including Akamai Bot Manager, Incapsula, Kasada, and DataDome. Generate valid cookies, solve anti-bot challenges, and automate protected endpoints with ease.
Perfect for web scraping, automation, and data collection from protected websites.
🔑 Getting API Access
Before using this SDK, you'll need an API key from Hyper Solutions:
- Visit hypersolutions.co to create your account
- Choose your plan:
- 💳 Pay-as-you-go: Perfect for testing and small-scale usage
- 📊 Subscription plans: Cost-effective for high-volume applications
- Get your API key from the dashboard
- Start bypassing bot protection with this SDK!
🚀 Quick Start
from hyper_sdk import Session, SensorInput
session = Session("your-api-key")
# Generate Akamai sensor data
result = session.generate_sensor_data(SensorInput(
# sensor input fields
))
print(f"Generated sensor data: {result.payload}")
print(f"Sensor context: {result.context}")
Every generate_* method returns a result object (SensorResult, SbsdResult, ...), so fields the API adds later arrive without breaking your code.
Client hints (Accept-CH)
Sensor, SBSD, Reese84, Kasada payload and DataDome results carry client_hints: the sec-ch-*, device-memory, dpr, viewport-width, ect, rtt and downlink headers for the device the payload was generated for, keyed by lowercase header name and ready to send verbatim. Send only the ones the site asked for in its Accept-CH response header:
requested = [h.strip().lower() for h in response.headers.get("accept-ch", "").split(",") if h.strip()]
hints = {name: result.client_hints[name] for name in requested if result.client_hints and name in result.client_hints}
client_hints is None when the API returns none (Safari user agents, and payloads built by a remote browser).
✨ Features
- 🛡️ Akamai Bot Manager: Generate sensor data, handle pixel challenges, validate cookies
- 🔒 Incapsula Protection: Generate Reese84 sensors and UTMVC cookies
- ⚡ Kasada Bypass: Generate payload data (CT) and POW tokens (CD)
- 🎯 DataDome Solutions: Solve tags, slider captchas and interstitial challenges
- 🔧 Easy Integration: Simple Python API with async/await support
- ⚙️ Flexible Configuration: Custom HTTP clients and session management
📦 Installation
Install the Hyper Solutions SDK for Python using:
pip install hyper-sdk
📋 Table of Contents
- Quick Start
- Installation
- Basic Usage
- Akamai Bot Manager
- Incapsula Protection
- Kasada Bypass
- DataDome Solutions
- Documentation
- Contributing
- License
🔧 Basic Usage
Creating a Session
Initialize the SDK with your API key to start bypassing bot protection:
from hyper_sdk import Session
# Basic session
session = Session("your-api-key")
# Advanced session with custom configuration
session = Session(
api_key="your-api-key",
jwt_key="your-jwt-key",
app_key="your-app-key",
app_secret="your-app-secret",
client=custom_http_client
)
Checking Usage
get_usage returns the key's pay-as-you-go balance and the remaining requests of each plan. It is not counted as usage. SessionAsync has the same method.
usage = session.get_usage()
print(f"balance: €{usage.balance_euro}")
for plan in usage.plans:
print(f"{plan.product}: {plan.requests_remaining} of {plan.requests_quota} left, expires {plan.expires_at}")
🛡️ Akamai Bot Manager
Bypass Akamai Bot Manager protection with sensor data generation, cookie validation, and challenge solving.
Generating Sensor Data
Generate sensor data for valid Akamai cookies and bot detection bypass:
result = await session.generate_sensor_data(SensorInput(
# Configure sensor parameters
))
# result.payload is the sensor data, result.context goes into the next SensorInput
SBSD
Generate SBSD payloads. The first request of a session sends the script, later ones send the returned context. A hard block (an SBSD POST with a t parameter) always sends the script with an empty context, never one from an earlier request:
from hyper_sdk import SbsdInput
result = session.generate_sbsd_data(SbsdInput(
# other sbsd input fields
script=script,
script_url=script_url, # optional: absolute src of the SBSD script tag, query included
))
# POST result.payload; pass result.context in the next SbsdInput instead of script
Handling Sec-Cpt Challenges
Solve sec-cpt challenges with built-in parsing and payload generation:
from hyper_sdk.akamai import SecCptChallenge
# Parse sec-cpt challenge from HTML
challenge = SecCptChallenge.parse(html_content)
# Or parse from JSON response
challenge = SecCptChallenge.parse_from_json(json_response)
# Generate challenge response payload
payload = challenge.generate_sec_cpt_payload(sec_cpt_cookie)
# Handle challenge timing requirements
challenge.sleep()
Cookie Validation
Validate Akamai _abck cookies and session states:
from hyper_sdk.akamai import is_cookie_valid, is_cookie_invalidated
# Check if cookie is valid for the current request count
is_valid = is_cookie_valid(cookie_value, request_count)
# Check if cookie has been invalidated and needs refresh
needs_refresh = is_cookie_invalidated(cookie_value)
Pixel Challenge Solving
Handle Akamai pixel challenges for advanced bot detection bypass:
from hyper_sdk import PixelInput
from hyper_sdk.akamai import parse_pixel_html_var, parse_pixel_script_url, parse_pixel_script_var
# Parse pixel challenge data
html_var = parse_pixel_html_var(html_content)
script_url, post_url = parse_pixel_script_url(html_content)
script_var = parse_pixel_script_var(script_content)
# Generate pixel data
result = session.generate_pixel_data(PixelInput(
# pixel input fields
))
# result.payload is the pixel data
🔒 Incapsula Protection
Bypass Incapsula bot detection with Reese84 sensors and UTMVC cookie generation.
Generating Reese84 Sensors
Create Reese84 sensor data for Incapsula bypass:
from hyper_sdk import ReeseInput
result = session.generate_reese84_sensor(ReeseInput(
# reese input fields
))
# result.payload is the sensor, result.client_hints the Accept-CH headers
UTMVC Cookie Generation
Generate UTMVC cookies for Incapsula protection bypass:
from hyper_sdk import UtmvcInput
result = session.generate_utmvc_cookie(UtmvcInput(
# utmvc input fields
))
# result.payload is the ___utmvc cookie, result.swhanedl the swhanedl value
Script Path Parsing
Parse UTMVC script paths and generate submit paths:
from hyper_sdk.incapsula import parse_utmvc_script_path, get_utmvc_submit_path
# Parse script path from content
script_path = parse_utmvc_script_path(script_content)
# Generate unique submit path
submit_path = get_utmvc_submit_path()
Dynamic Reese Script Parsing
Parse dynamic Reese84 script paths from interruption pages:
from hyper_sdk.incapsula import parse_dynamic_reese_script
sensor_path, script_path = parse_dynamic_reese_script(html_content, "https://example.com")
⚡ Kasada Bypass
Defeat Kasada Bot Manager with payload generation and POW solving.
Generating Payload Data (CT)
Create x-kpsdk-ct tokens for Kasada bypass:
from hyper_sdk import KasadaPayloadInput
result = session.generate_kasada_payload(KasadaPayloadInput(
# kasada payload input fields
# strict=True refuses a payload built on a signal the API cannot identify
# yet, instead of returning one built on a guess. Optional, off by default.
))
# POST the base64-decoded result.payload to /tl with the x-kpsdk-* values in result.headers.
# result.client_hints are the Accept-CH headers: send only the ones the site asked for.
Generating POW Data (CD)
Solve Kasada Proof-of-Work challenges for x-kpsdk-cd tokens:
from hyper_sdk import KasadaPowInput
result = session.generate_kasada_pow(KasadaPowInput(
# kasada pow input fields
))
# result.payload is the x-kpsdk-cd value
🤖 Vercel BotID
Bypass Vercel BotID protection by generating the required x-is-human header.
Generating the x-is-human Header
Create the x-is-human header for Vercel BotID bypass:
from hyper_sdk import BotIDHeaderInput
result = session.generate_botid_header(BotIDHeaderInput(
script=script_body, # The c.js script content
user_agent="your-user-agent",
ip="your-proxy-ip",
accept_language="en-US,en;q=0.9",
))
# Use the header in your requests
headers = {
"x-is-human": result.payload,
# ... other headers
}
Script Path Extraction
Extract Kasada script paths from blocked pages (HTTP 429):
from hyper_sdk.kasada import parse_kasada_script_path
script_path = parse_kasada_script_path(blocked_page_html)
# Returns: /ips.js?timestamp=...
Mobile User-Agent Generation
Generate the Kasada mobile user-agent value sent on the native app flow. The mobile SDK derives it as the lowercase hex MD5 of "<os_version> / <bundle_id> <app_version>":
from hyper_sdk import generate_kasada_user_agent
user_agent = generate_kasada_user_agent("18.0.1", "com.example.app", "9.15.0")
# iOS: os_version = UIDevice.systemVersion, bundle_id = CFBundleIdentifier
# Android: os_version = Build.VERSION.SDK_INT, bundle_id = package name
# Returns: 7016adc4ba8d433533954ebad33be424
Available in hyper_sdk 3.1.0 and later.
Mobile x-kpsdk-dv Generation
On iOS the Kasada SDK (x-kpsdk-v i-2.x) also sends an x-kpsdk-dv header describing the device and the app. Build it from the same values as the user-agent, plus the model identifier, and pass the same value as dv on the payload request so the payload is generated on an iPhone with that model's screen and iOS version:
from hyper_sdk import KasadaPayloadInput, generate_kasada_dv, generate_kasada_user_agent
user_agent = generate_kasada_user_agent("18.0.1", "com.example.app", "9.15.0")
dv = generate_kasada_dv("18.0.1", "iPhone13,2", "com.example.app", "9.15.0")
# hardware_id is the model identifier from utsname.machine ("iPhone13,2" is an iPhone 12)
result = session.generate_kasada_payload(KasadaPayloadInput(
user_agent, ips_link, script, "en-US,en;q=0.9", ip,
dv=dv, # the x-kpsdk-dv value you send to the site
))
Available in hyper_sdk 4.2.0 and later.
🎯 DataDome Solutions
Solve DataDome captchas including slider challenges and interstitial pages.
Interstitial Challenge Solving
Bypass DataDome interstitial pages:
from hyper_sdk import DataDomeInterstitialInput
result = session.generate_interstitial_payload(DataDomeInterstitialInput(
# interstitial input fields
))
# POST result.payload to https://geo.captcha-delivery.com/interstitial/
# result.client_hints are the Accept-CH headers for the device
Slider Captcha Solving
Solve DataDome slider captchas automatically:
from hyper_sdk import DataDomeSliderInput
result = session.generate_slider_payload(DataDomeSliderInput(
# slider input fields
))
# GET request to result.payload (the check URL)
# result.client_hints are the Accept-CH headers for the device
Tags Payload Generation
Generate DataDome tags payload:
from hyper_sdk import DataDomeTagsInput
result = session.generate_tags_payload(DataDomeTagsInput(
# tags input fields
))
# result.payload is the tags payload
DeviceLink URL Parsing
Extract DataDome device check URLs from blocked pages:
from hyper_sdk.datadome import parse_interstitial_device_check_link, parse_slider_device_check_link
# Parse interstitial device links
device_link = parse_interstitial_device_check_link(
html_content,
datadome_cookie,
referer_url
)
# Parse slider device links
device_link = parse_slider_device_check_link(
html_content,
datadome_cookie,
referer_url
)
Challenge Script
DataDome sometimes serves a challenge page with the challenge script in its own file instead of inlining it in the page:
<script defer src="https://ct.captcha-delivery.com/interstitial.1.33.0.202609141.js"></script>
It switches between the two forms per request, so check every challenge page. When the page uses a separate file, fetch it with your own client so the request keeps your proxy, TLS fingerprint and headers, then pass the body as script:
from hyper_sdk import DataDomeInterstitialInput
from hyper_sdk.datadome import parse_challenge_script_url
script = ""
script_url = parse_challenge_script_url(html_content)
if script_url is not None:
script = your_client.get(script_url).text
result = session.generate_interstitial_payload(DataDomeInterstitialInput(
# other interstitial input fields
html=html_content,
script=script, # empty when the page inlines the script
))
The same applies to DataDomeSliderInput. One helper covers both challenge types, since the captcha page uses the same tag. script is optional and leaving it empty keeps working.
📖 Documentation
For detailed documentation on how to use the SDK, including examples and API reference, please visit our documentation website:
Getting Help
- Check our documentation
- Join our Discord community
🤝 Contributing
If you find any issues or have suggestions for improvement, please open an issue or submit a pull request.
📄 License
This SDK is licensed under the MIT License.
Keywords: Python SDK, bot protection bypass, web scraping, Akamai bypass, Incapsula bypass, Kasada bypass, DataDome bypass, anti-bot, captcha solver, automation, reverse engineering, bot detection, web automation
Metadata
Release files for hyper-sdk 4.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hyper_sdk-4.3.1.tar.gz | 37.3 kB | Without provenance | Details for hyper_sdk-4.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hyper_sdk-4.3.1-py3-none-any.whl | Python 3 | none | any | Details for hyper_sdk-4.3.1-py3-none-any.whl |
Total release size: 73.6 kB
Release files / hyper_sdk-4.3.1.tar.gz
| Download URL | hyper_sdk-4.3.1.tar.gz |
|---|---|
| Size | 37.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
14ca21e2a606c0e2b55461eb8ad7b2f38b02215ad9de838b2ee1e1013d6cde56
|
|
BLAKE2b-256 checksum How to use checksums |
b47142630bae60ec75bbee3fd3d637cd162b606f0156cbc6524d87abc1978bd4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Release files / hyper_sdk-4.3.1-py3-none-any.whl
| Download URL | hyper_sdk-4.3.1-py3-none-any.whl |
|---|---|
| Size | 36.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
64f608f153de7108497dec6daf610ace3e6c2dd80d3ee47ce790066c6f006060
|
|
BLAKE2b-256 checksum How to use checksums |
68e94d0a2ebf99ffcbf7e277c42d5f322d9317e6617234922d393e04214a0e5f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Security for hyper-sdk 4.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.