Peak.fo API Client - Solve Turnstile, CloudFlare WAF, and AWS WAF challenges
Project description
Peak.fo Python SDK
Official Python client library for Peak.fo - the fastest captcha solving API for Turnstile, CloudFlare WAF, and AWS WAF challenges.
🚀 Features
- Turnstile Solver - Solve CloudFlare Turnstile challenges
- CloudFlare WAF Solver - Bypass CloudFlare 5-second challenges
- AWS WAF Solver - Solve AWS WAF challenges for iOS/Android mobile apps
📦 Installation
pip install peakfo
🎁 Free Trial
New users receive $0.50 free trial credits when signing up at peak.fo!
🔧 Quick Start
from peakfo import PeakClient
# Initialize client with your API key
client = PeakClient("pk_your_api_key_here")
# Check your balance
balance = client.get_balance()
print(f"Balance: ${balance['balance']}")
📖 Usage Examples
Solve Turnstile
from peakfo import PeakClient
client = PeakClient("pk_your_api_key")
result = client.solve_turnstile(
sitekey="0x4AAAAAAXXXXXXXXXXXXXXX",
url="https://example.com/login",
proxy="http://user:pass@ip:port"
)
print(f"Token: {result['token']}")
Solve CloudFlare WAF (5-second challenge)
from peakfo import PeakClient
client = PeakClient("pk_your_api_key")
result = client.solve_cloudflare_waf(
url="https://example.com/", # Must end with /
proxy="http://user:pass@ip:port"
)
print(f"Cookies: {result['cookies']}")
print(f"User-Agent: {result['user_agent']}")
⚠️ Note: URL must end with trailing slash. Only Windows Chrome user agents are supported.
Solve AWS WAF (Mobile SDK)
from peakfo import PeakClient
client = PeakClient("pk_your_api_key")
result = client.solve_aws_waf(
url="https://app.example.com/",
sdk_url="https://xxx.edge.sdk.awswaf.com/xxx/xxx",
proxy="http://user:pass@ip:port",
user_agent="ExampleApp/1.0 (iOS 17.0)",
os="ios" # or "android"
)
print(f"Token: {result['token']}")
⚠️ Note: AWS WAF solver is for mobile apps only (iOS/Android SDK), not web browsers.
🔑 Finding AWS WAF SDK URL
The SDK URL can be found by:
- Intercepting your app's network traffic (using Charles, mitmproxy, etc.)
- Looking for requests to
*.edge.sdk.awswaf.com - The URL format is:
https://{id}.edge.sdk.awswaf.com/{id}/{token}
⚠️ Error Handling
from peakfo import PeakClient, AuthenticationError, InsufficientBalanceError, SolveError
client = PeakClient("pk_your_api_key")
try:
result = client.solve_turnstile(
sitekey="0x4AAAAAAXXXXXXX",
url="https://example.com/",
proxy="http://user:pass@ip:port"
)
except AuthenticationError:
print("Invalid API key")
except InsufficientBalanceError:
print("Please top up your balance")
except SolveError as e:
print(f"Solve failed: {e}")
💰 Pricing
| Task Type | Price per 1K |
|---|---|
| Turnstile | $1.00 |
| CloudFlare WAF | $1.20 |
| AWS WAF | $1.00 |
📞 Support
- Website: peak.fo
- Live Chat: Available on website
- Telegram: @jujucodings
📄 License
MIT License - see LICENSE for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file peakfo-1.0.0.tar.gz.
File metadata
- Download URL: peakfo-1.0.0.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a2918ddda09865ded74e8abf1caf2e55d5b7b2d55ac8d66955cc6a8ca8dd7d6a
|
|
| MD5 |
5a1074ad84989d82eaa81e967d14518e
|
|
| BLAKE2b-256 |
d214ece4b86bd9dda6e5c3db48c70ed3ca26b40cd4804811d284eaedc474f5d9
|
File details
Details for the file peakfo-1.0.0-py3-none-any.whl.
File metadata
- Download URL: peakfo-1.0.0-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
87cb7ca5543c50dc0ed421b2accc6c4b1539c1c86b970a98ea5cc72a588c6426
|
|
| MD5 |
ad8ac94524ce44359ba2280b445dc5cf
|
|
| BLAKE2b-256 |
36dd472fed6b67c31bceddfc58c028d31e7101330d04a02bb22d449338758cfa
|