import Kernel from '@onkernel/sdk';
const client = new Kernel({
apiKey: process.env['KERNEL_API_KEY'], // This is the default and can be omitted
});
const proxies = await client.proxies.list();
console.log(proxies);[
{
"type": "datacenter",
"id": "<string>",
"name": "<string>",
"protocol": "https",
"status": "available",
"last_checked": "2023-11-07T05:31:56Z",
"config": {
"country": "US"
}
}
]List proxies owned by the caller’s organization.
import Kernel from '@onkernel/sdk';
const client = new Kernel({
apiKey: process.env['KERNEL_API_KEY'], // This is the default and can be omitted
});
const proxies = await client.proxies.list();
console.log(proxies);[
{
"type": "datacenter",
"id": "<string>",
"name": "<string>",
"protocol": "https",
"status": "available",
"last_checked": "2023-11-07T05:31:56Z",
"config": {
"country": "US"
}
}
]Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
List of proxies
Proxy type to use. In terms of quality for avoiding bot-detection, from best to worst: mobile > residential > isp > datacenter.
datacenter, isp, residential, mobile, custom Readable name of the proxy.
Protocol to use for the proxy connection.
http, https Current health status of the proxy.
available, unavailable Timestamp of the last health check performed on this proxy.
Configuration specific to the selected proxy type.
Show child attributes