BuyProxy logo
Log inSign up

Concepts

Session types

Rotating sessions assign a new residential IP on every request. This is the default mode and best suited for high-volume scraping where each request is independent.

// No sticky setting: every request leaves from a new IP
res, err := client.Plans.Generate(ctx, plan.ID, &buyproxy.GenerateParams{Country: "US"})

Sticky sessions

Sticky sessions stay on one IP across requests. On Core Residential, sticky is on or off and usually keeps the same IP for around 10 minutes, and a longer session can move to another IP. On Premium Residential you set the length, from 3 minutes to 24 hours, so a multi-step flow keeps its identity.

res, err := client.Plans.Generate(ctx, plan.ID, &buyproxy.GenerateParams{
	Country:       "DE",
	StickyMinutes: 10, // Premium Residential: 3 minutes to 24 hours
})

Choosing a session type

Use rotating sessions for independent page fetches at scale. Use sticky sessions on Premium Residential for logins, checkouts, or any flow where the target site expects one IP for a set time.

Was this page helpful?