Documentation
Examples
Simple examples showing how to use Vanadum API.
Python Examples
import requests
# Simple GET request
response = requests.get('http://localhost:8000/', headers={
'X-Url': 'https://example.com',
'X-Profile': 'chrome'
})
print(response.text)
# POST request with data
response = requests.post('http://localhost:8000/',
headers={
'X-Url': 'https://api.example.com/login',
'X-Profile': 'chrome',
'Content-Type': 'application/json'
},
json={'username': 'user', 'password': 'pass'}
)
# Using proxy
response = requests.get('http://localhost:8000/', headers={
'X-Url': 'https://example.com',
'X-Proxy': 'http://proxy.example.com:8080'
})
# Different browser profiles
for profile in ['chrome', 'safari', 'edge', 'firefox', 'okhttp']:
response = requests.get('http://localhost:8000/', headers={
'X-Url': 'https://httpbin.org/user-agent',
'X-Profile': profile
})
print(f'{profile}: {response.json()["user-agent"]}')
# Custom randomized fingerprint
response = requests.get('http://localhost:8000/', headers={
'X-Url': 'https://tls.browserleaks.com/json',
'X-Profile': 'custom'
})
print('Custom TLS fingerprint generated')
# Force HTTP/1.1 for problematic servers
response = requests.get('http://localhost:8000/', headers={
'X-Url': 'https://legacy-server.example.com',
'X-Profile': 'http11'
})