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

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

const proxy = await client.proxies.retrieve('id');

console.log(proxy.id);
{
  "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.

Path Parameters

id
string
required

Response

Proxy retrieved

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

Configuration for routing traffic through a proxy. Configuration for a datacenter proxy.

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
country
string
required

ISO 3166 country code.

Example:

"US"

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