Skip to content

By the end of this page you will have listed your organization's services and read one service's usage. None of the steps charges your balance.

Create a token

In the panel, create a new token on your organization's API access page. For this guide the orders:read scope is enough. The token is shown only once; store it somewhere safe.

export PROXYNET_TOKEN="pxn_live_…"

Verify the token

The /me endpoint returns the token's scopes, organization, plan and balance.

curl -H "Authorization: Bearer $PROXYNET_TOKEN" \
  https://api.proxynet.io/api/v1/me
const res = await fetch("https://api.proxynet.io/api/v1/me", {
  headers: { Authorization: `Bearer ${process.env.PROXYNET_TOKEN}` },
});
console.log(await res.json());
import os, requests

res = requests.get(
    "https://api.proxynet.io/api/v1/me",
    headers={"Authorization": f"Bearer {os.environ['PROXYNET_TOKEN']}"},
)
print(res.json())

List your services

/orders returns all five types together. Note each service's id field; the other endpoints work with this ID.

curl -H "Authorization: Bearer $PROXYNET_TOKEN" \
  "https://api.proxynet.io/api/v1/orders?limit=25"

Read a service's usage

Service details return the days left, the state and the usage counters.

curl -H "Authorization: Bearer $PROXYNET_TOKEN" \
  https://api.proxynet.io/api/v1/orders/4b51e9e6-375a-48c8-a347-957b66fe5f4f

Next steps