Skip to content

Dify Integration

Add proxy-protected web access to your Dify workflows.

In Dify’s HTTP Request node, configure the proxy:

  1. Add an HTTP Request node to your workflow
  2. Set the URL to your target
  3. In Advanced Settings, add proxy configuration:
Proxy URL: http://session_id:token@us-res.proxy.hydraskill.ai:8080

For more control, use a Code node:

import requests
import hashlib
import time
API_KEY = "sk-your-key"
TARGET = "amazon.com"
# Get proxy from HydraSkill API
proxy_resp = requests.get(
"https://api.hydraskill.ai/v1/proxy",
params={"target": TARGET, "session_lock": "true"},
headers={"Authorization": f"Bearer {API_KEY}"}
).json()
# Use the proxy
proxy_url = f"http://{proxy_resp['username']}:{proxy_resp['password']}@{proxy_resp['host']}:{proxy_resp['port']}"
result = requests.get(
f"https://{TARGET}/product-page",
proxies={"http": proxy_url, "https": proxy_url}
)
return {"content": result.text, "status": result.status_code}
  • Workflow nodes that access external URLs won’t fail due to IP blocks
  • Consistent sessions across multi-step workflows
  • No need to handle proxy errors in your workflow logic