Skip to main content
GET
/
proxies
JavaScript
import Kernel from '@onkernel/sdk';

const client = new Kernel({
  apiKey: 'My API Key',
});

const proxies = await client.proxies.list();

console.log(proxies);
[
  {
    "id": "<string>",
    "name": "<string>",
    "type": "datacenter",
    "protocol": "https",
    "status": "available",
    "last_checked": "2023-11-07T05:31:56Z",
    "config": {
      "country": "US"
    }
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

List of proxies

type
enum<string>
required

Proxy type to use. In terms of quality for avoiding bot-detection, from best to worst: mobile > residential > isp > datacenter.

Available options:
datacenter,
isp,
residential,
mobile,
custom
id
string
name
string

Readable name of the proxy.

protocol
enum<string>
default:https

Protocol to use for the proxy connection.

Available options:
http,
https
status
enum<string>

Current health status of the proxy.

Available options:
available,
unavailable
last_checked
string<date-time>

Timestamp of the last health check performed on this proxy.

config
object

Configuration specific to the selected proxy type. Configuration for a datacenter proxy.

  • Option 1
  • Option 2
  • Option 3
  • Option 4
  • Option 5
I