Skip to content

Commit f3fad77

Browse files
dprevoznikclaude
andauthored
Document reading ISP proxy static IP via ip_address (#499)
* Document reading ISP proxy static IP via ip_address Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * Use absolute URLs for API reference links Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 425517e commit f3fad77

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

proxies/isp.mdx

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,3 +147,39 @@ func main() {
147147
</CodeGroup>
148148

149149
See the [overview](/proxies/overview#bypass-hosts) for full bypass host rules and examples.
150+
151+
## Getting the static IP address
152+
153+
Because an ISP proxy has a static exit IP, you can read that IP once and reuse it — for example, to add it to an IP allowlist. The IP is returned as `ip_address` in the response when you [create a proxy](https://kernel.sh/docs/api-reference/proxies/create-a-proxy) and when you [get a proxy by ID](https://kernel.sh/docs/api-reference/proxies/get-proxy-by-id).
154+
155+
<CodeGroup>
156+
```typescript Typescript/Javascript
157+
const proxy = await kernel.proxies.create({
158+
type: 'isp',
159+
name: 'my-isp-proxy',
160+
});
161+
162+
console.log(proxy.ip_address);
163+
```
164+
165+
```python Python
166+
proxy = kernel.proxies.create(
167+
type="isp",
168+
name="my-isp-proxy",
169+
)
170+
171+
print(proxy.ip_address)
172+
```
173+
174+
```go Go
175+
proxy, err := client.Proxies.New(ctx, kernel.ProxyNewParams{
176+
Type: kernel.ProxyNewParamsTypeIsp,
177+
Name: kernel.String("my-isp-proxy"),
178+
})
179+
if err != nil {
180+
panic(err)
181+
}
182+
183+
fmt.Println(proxy.IPAddress)
184+
```
185+
</CodeGroup>

0 commit comments

Comments
 (0)