Set residential geo and session mode
set_residential_geoRead or change geo targeting and session mode for a residential proxy. Pass proxy_id alone to view current settings; add location or session options to update connection strings.
Instructions
Reads or changes the geo targeting and session mode of a residential proxy. With only proxy_id it returns the current settings; any other parameter changes them. Free and reversible. Geo codes come from get_residential_locations; the backend ignores unknown codes and keeps the previous location. A change rewrites the provider login, and the response carries the updated http/socks5 connection strings. session_mode="rotating" gives a new IP per request; "sticky" holds one IP for session_time minutes (max 120).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asn | No | ASN code, e.g. "AS7922" | |
| city | No | City code (requires state) | |
| state | No | Region code (requires country) | |
| country | No | ISO2 code from get_residential_locations | |
| proxy_id | Yes | Residential proxy id | |
| session_mode | No | ||
| session_time | No | Sticky session lifetime in minutes, 1-120 (only with session_mode="sticky") |