Quick Start
Quick Start
Section titled “Quick Start”This guide gets you from zero to a working proxy request in under 2 minutes.
Prerequisites
Section titled “Prerequisites”- A HydraSkill account (sign up free)
- An API key (from Dashboard → API Keys)
- Python 3.8+ (or Node.js 18+)
Step 1: Install
Section titled “Step 1: Install”pip install hydraskillStep 2: Initialize
Section titled “Step 2: Initialize”from hydraskill import ProxyClient
client = ProxyClient(api_key="sk-your-key-here")Or set the environment variable and skip the parameter:
export HYDRASKILL_API_KEY="sk-your-key-here"client = ProxyClient() # auto-reads from envStep 3: Get a Proxy
Section titled “Step 3: Get a Proxy”proxy = client.get_proxy( target="amazon.com", session_lock=True, country="US")
print(proxy.ip) # 203.0.113.42print(proxy.country) # USprint(proxy.type) # residentialStep 4: Use It
Section titled “Step 4: Use It”import requests
response = requests.get( "https://www.amazon.com/dp/B09V3KXJPB", proxies=proxy.to_dict())
print(response.status_code) # 200What Happens Behind the Scenes
Section titled “What Happens Behind the Scenes”- HydraSkill analyzes the target domain (
amazon.com) - Selects the optimal IP type (residential for e-commerce)
- Assigns an IP from the US pool
- Locks that IP to your session (won’t change until you release it)
- If the IP gets blocked → auto-switches to a new one, retries transparently
Full Example: Web Scraping Agent
Section titled “Full Example: Web Scraping Agent”from hydraskill import ProxyClientimport requests
client = ProxyClient()
# Scrape 100 product pages with the same IPproxy = client.get_proxy(target="amazon.com", session_lock=True)
for product_id in product_ids: url = f"https://www.amazon.com/dp/{product_id}" resp = requests.get(url, proxies=proxy.to_dict())
if resp.status_code == 200: parse_product(resp.text) # No need to handle 403/429 — HydraSkill auto-heals
# Done — release the proxyproxy.release()Node.js Example
Section titled “Node.js Example”import { ProxyClient } from 'hydraskill';
const client = new ProxyClient({ apiKey: process.env.HYDRASKILL_API_KEY });
const proxy = await client.getProxy({ target: 'amazon.com', sessionLock: true, country: 'US',});
const response = await fetch('https://www.amazon.com/dp/B09V3KXJPB', { agent: proxy.toAgent(),});
console.log(response.status); // 200await proxy.release();Next Steps
Section titled “Next Steps”- Session Lock — understand IP binding
- Auto-Heal — how failover works
- API Reference — full endpoint docs