Skip to content

Commit 6e46d82

Browse files
committed
Update docs with new config for residential proxy
1 parent ef093c5 commit 6e46d82

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

proxies/residential.mdx

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ const proxy = await kernel.proxies.create({
1919
name: 'my-california-residential',
2020
config: {
2121
country: 'US',
22-
city: 'sanfrancisco',
23-
zip: '94102',
24-
os: 'windows'
22+
city: 'los_angeles'
2523
}
2624
});
2725

@@ -36,12 +34,10 @@ client = kernel.Kernel()
3634

3735
proxy = client.proxies.create(
3836
type='residential',
39-
name='my-california-residential',
37+
name='my-la-residential',
4038
config={
4139
'country': 'US',
42-
'city': 'sanfrancisco',
43-
'zip': '94102',
44-
'os': 'windows'
40+
'city': 'los_angeles'
4541
}
4642
)
4743

@@ -54,9 +50,8 @@ browser = client.browsers.create(
5450

5551
## Configuration Parameters
5652

57-
- **`country`** - ISO 3166 country code
53+
- **`country`** - ISO 3166 country code. Must be provided when providing other targeting options.
5854
- **`state`** - Two-letter state code. Only supported for US and Australia. Cannot be used with `city`
5955
- **`city`** - City name (lowercase, no spaces, e.g., `sanfrancisco`, `newyork`). Required if `zip` is provided
6056
- **`zip`** - US ZIP code (5 digits). Requires `city` to be provided
61-
- **`os`** - Operating system: `windows`, `macos`, or `android`
62-
- **`asn`** - Autonomous System Number. Mutually exclusive with geo-location targeting
57+
- **`asn`** - Autonomous System Number. Conflicts with city and state.

0 commit comments

Comments
 (0)