Proxies quickstart
Create a Raspbytes proxy connection and verify it from your application.
Create your first proxy connection
Read the options endpoint before creating a connection. It returns the products,
countries, protocols, session types, targeting values, and sticky-session limits
available to the account.
curl --fail-with-body --silent --show-error \
'https://api.raspbytes.com/api/v1/proxy/proxies/options/?proxy_type=residential' \
-H "X-API-Key: $RASPBYTES_API_KEY"Create a rotating residential connection:
curl --fail-with-body --silent --show-error \
-X POST 'https://api.raspbytes.com/api/v1/proxy/proxies/get_proxy/' \
-H "X-API-Key: $RASPBYTES_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"proxy_type": "residential",
"session_type": "rotating",
"country": "US",
"protocol": "http",
"protocol_selection": "all"
}'Use the returned connection exactly as supplied:
export RASPBYTES_PROXY_URL='<proxy_url returned by Raspbytes>'
curl --proxy "$RASPBYTES_PROXY_URL" https://ipinfo.io/jsonTreat the complete URL as a secret and pass it directly to the proxy client.
Next, review proxy types,
geographic targeting, and
session behaviour before adding optional controls.
Updated 16 days ago
Did this page help you?

