|
| 1 | +--- |
| 2 | +title: "Mobile Proxies" |
| 3 | +--- |
| 4 | + |
| 5 | +Mobile proxies use real mobile IPs from devices on cellular networks worldwide. These IPs are distributed by ISPs to mobile devices, where real users opt-in to share their connection. |
| 6 | + |
| 7 | +## Configuration |
| 8 | + |
| 9 | +Mobile proxies support carrier selection and advanced targeting options: |
| 10 | + |
| 11 | +<CodeGroup> |
| 12 | + |
| 13 | +```typescript Typescript/Javascript |
| 14 | +import { Kernel } from '@onkernel/sdk'; |
| 15 | +const kernel = new Kernel(); |
| 16 | + |
| 17 | +const proxy = await kernel.proxies.create({ |
| 18 | + type: 'mobile', |
| 19 | + name: 'LA Mobile', |
| 20 | + config: { |
| 21 | + country: 'US', |
| 22 | + city: 'losangeles' |
| 23 | + } |
| 24 | +}); |
| 25 | + |
| 26 | +const browser = await kernel.browsers.create({ |
| 27 | + proxy_id: proxy.id |
| 28 | +}); |
| 29 | +``` |
| 30 | + |
| 31 | +```Python Python |
| 32 | +import kernel |
| 33 | +client = kernel.Kernel() |
| 34 | + |
| 35 | +proxy = client.proxies.create( |
| 36 | + type='mobile', |
| 37 | + name='LA Mobile', |
| 38 | + config={ |
| 39 | + 'country': 'US', |
| 40 | + 'city': 'losangeles' |
| 41 | + } |
| 42 | +) |
| 43 | + |
| 44 | +browser = client.browsers.create( |
| 45 | + proxy_id=proxy.id |
| 46 | +) |
| 47 | +``` |
| 48 | + |
| 49 | +</CodeGroup> |
| 50 | + |
| 51 | +## Configuration Parameters |
| 52 | + |
| 53 | +- **`country`** - ISO 3166 country code |
| 54 | +- **`carrier`** - Mobile carrier name (see available carriers below) |
| 55 | +- **`state`** - Two-letter state code. Only supported for US and Australia. Cannot be used with `city` |
| 56 | +- **`city`** - City name (lowercase, no spaces, e.g., `newyork`, `losangeles`). Required if `zip` is provided |
| 57 | +- **`zip`** - US ZIP code (5 digits). Requires `city` to be provided |
| 58 | +- **`asn`** - Autonomous System Number. Mutually exclusive with geo-location targeting |
| 59 | + |
| 60 | +## Supported Carriers |
| 61 | + |
| 62 | +Major carriers worldwide are supported: |
| 63 | + |
| 64 | +**US Carriers:** |
| 65 | +- `att` - AT&T |
| 66 | +- `verizon` - Verizon |
| 67 | +- `tmobile` - T-Mobile |
| 68 | +- `sprint` - Sprint |
| 69 | +- `comcast` - Xfinity Mobile |
| 70 | +- `cox` - Cox Mobile |
| 71 | + |
| 72 | +**International Carriers:** |
| 73 | +- `vodafone` - Vodafone |
| 74 | +- `orange` - Orange |
| 75 | +- `telefonica` - Telefónica |
| 76 | +- `dt` - Deutsche Telekom |
| 77 | +- `docomo` - NTT Docomo |
| 78 | +- `chinamobile` - China Mobile |
| 79 | +- `airtel` - Bharti Airtel |
| 80 | +- `telstra` - Telstra |
| 81 | + |
| 82 | +See API reference for complete list of carriers. |
| 83 | + |
| 84 | +## Limitations |
| 85 | + |
| 86 | +Highly specific geotargeting may not have available IP addresses. Try creating a mobile proxy configuration to see if a specific geotargeting combination is available. Use less specific geotargeting where not available, or use residential proxies which are the most flexible option. |
0 commit comments