Proxy API

Load the proxies you bought as a list, find the ones that dropped off and check them without opening the cabinet. Handy when there are too many proxies to watch by hand. Parameters, errors and sample responses are below.

01 What the functions do

These functions let you manage your proxy pool without the interface: view the list, add proxies, check them, change settings and delete. It helps when you have a lot of proxies or when your own program should look after them. How to call a function and read the response is in the API catalog.

  • See your pool. proxy/list returns proxies page by page and filters them by status, IP version, country, type, host, port, login and password. For each proxy you see its state, exit IP and country, and how many slots are free and how many are taken. proxy/list?show=ids returns only the IDs. proxy/get adds the connect link and the check times for one proxy.
  • Find broken proxies and check them. Filter proxy/list with status=2 to get the proxies with the “Error” status. The errors field tells you how many checks in a row failed. Take their IDs with proxy/list?show=ids and run them through proxy/check. One request takes up to 25 proxies and returns the new status of each. To replace broken proxies on many accounts at once, use accs/fix with the fixproxy parameter.
  • Fill the pool. proxy/add adds one proxy by fields. proxy/load uploads a list with one proxy per line and detects the format of each line by itself. You can put the number of slots and the IP reset link in the same line. Duplicates are skipped, and the response says how many proxies were added, skipped and not parsed.
  • Change settings or remove proxies. proxy/edit changes the host, port, login, password, type, number of slots and the reset link. When the host, port, login, password or type changes, the settings sync with the anti-detect browser by themselves. proxy/del deletes proxies. Accounts linked to a deleted proxy are left without one and do not run until you link new ones to them.
Back to contents

02 Listing proxies

URLhttps://ggl.farm/api/proxy/list.json?id={apitoken}

Returns a list of proxies that match your filters. Each entry has the type, host, port, login and password, state, exit IP, country and slot usage. The connect link and the check times come from the single proxy function.

Parameters

FieldDescription
pagePage number, 1 by default. Pages are numbered from 1.
showHow many proxies to return per page, 100 by default. There is no upper limit.
statusProxy status: 0 — Waiting, 1 — Working, 2 — Error.
ip6Proxy IP version: 0 — IPv4, 1 — IPv6.
geoCountry of the proxy exit IP.
typeProxy type: 0 — HTTP, 1 — HTTPS, 2 — SOCKS5, 3 — SOCKS5H.
hostProxy host, exact match only.
portProxy port, exact match only.
userProxy login, exact match only.
passProxy password, exact match only.
sSearch by any string in the host, port, login, password and reset link.

Response

FieldDescription
statusResponse status: ok or error.
navPagination. The fields are described below.
datasetReference dictionaries: types — proxy type names, statuses — status names.
dataThe matching proxies. It is an object: the key is the proxy ID, the value holds the proxy fields, which are described below.

Fields of the nav block:

FieldDescription
totalHow many proxies matched in total.
pageCurrent page number.
pagesHow many pages there are.
showProxies per page.

Proxy fields:

FieldDescription
idProxy ID in GGL.
statusProxy status: 0 — Waiting, 1 — Working, 2 — Error.
errorsHow many checks in a row have failed.
typeProxy type: 0 — HTTP, 1 — HTTPS, 2 — SOCKS5, 3 — SOCKS5H.
hostIP address or domain of the proxy.
portProxy port.
userProxy login.
passProxy password.
ipExit IP of the proxy. false if it has not been checked yet.
ip6Whether the exit IP is an IPv6 address.
geoCountry of the proxy exit IP.
availHow many slots are free.
countHow many slots are taken.
maxHow many slots the proxy has in total.
urlLink for resetting the proxy IP. false if not set.
{
    "status": "ok",
    "nav": {
        "total": 237,
        "page": 1,
        "pages": 3,
        "show": 100
    },
    "dataset": {
        "types": [ "HTTP", "HTTPS", "SOCKS5", "SOCKS5H" ],
        "statuses": [ "Waiting", "Working", "Error" ]
    },
    "data": {
        "501": {
            "id": 501,
            "status": 1,
            "errors": 0,
            "type": 2,
            "host": "12.34.56.78",
            "port": 1488,
            "user": "usr",
            "pass": "pwd",
            "ip": "88.17.42.9",
            "ip6": false,
            "geo": "de",
            "avail": 24,
            "count": 1,
            "max": 25,
            "url": false
        },
        ...
    }
}
Back to contents

03 Getting proxy IDs

URLhttps://ggl.farm/api/proxy/list.json?id={apitoken}&show=ids

Returns only the proxy IDs. Use them in the check and delete functions. The parameters are the same as in listing proxies, plus show=ids.

Response

The data field holds an array of IDs.

{
    "status": "ok",
    "data": [ 501, 502, 515, 516 ]
}
Back to contents

04 Getting a proxy

URLhttps://ggl.farm/api/proxy/get.json?id={apitoken}&proxy={id}

Returns one proxy by its ID, in more detail than the list. On top of the list data it adds the connect link and the check times.

Parameters

FieldDescription
proxy*Proxy ID in GGL.

Response

The fields are the same as in the list, plus three more:

FieldDescription
linkConnect link in the proto://login:pass@host:port format.
checkWhen the proxy will be checked next, UNIX timestamp.
lastWhen the proxy was last checked, UNIX timestamp.
{
    "status": "ok",
    "dataset": {
        "types": [ "HTTP", "HTTPS", "SOCKS5", "SOCKS5H" ],
        "statuses": [ "Waiting", "Working", "Error" ]
    },
    "data": {
        "id": 501,
        "status": 1,
        "errors": 0,
        "type": 2,
        "host": "12.34.56.78",
        "port": 1488,
        "user": "usr",
        "pass": "pwd",
        "link": "socks5:\/\/usr:pwd@12.34.56.78:1488",
        "url": false,
        "ip": "88.17.42.9",
        "ip6": false,
        "geo": "de",
        "avail": 24,
        "count": 1,
        "max": 25,
        "check": 1763010000,
        "last": 1762976800
    }
}

Errors

CodeDescription
no-idProxy ID is not specified.
bad-idNo proxy with this ID is found.
Back to contents

05 Adding a proxy

URLhttps://ggl.farm/api/proxy/add.json?id={apitoken}

Adds one proxy by fields, like the add proxy form. For a long list, use the list upload. Send the parameters in the POST request body.

Parameters

FieldDescription
host*IP address or domain of the proxy.
port*Proxy port.
typeProxy type, HTTP by default: 0 — HTTP, 1 — HTTPS, 2 — SOCKS5, 3 — SOCKS5H.
userProxy login.
passProxy password.
maxHow many slots the proxy has, that is, how many accounts you can put on it. At least one.
urlLink for resetting the proxy IP.

If you pass SOCKS5 with a domain instead of an IP, the proxy is saved as SOCKS5H. If you pass SOCKS5H with an IP address, it is saved as SOCKS5. The function does not update a proxy that already exists. It returns the duplicate error instead.

Response

{ "status": "ok", "id": 502 }

Errors

CodeDescription
unpaidSubscription not paid.
no-hostProxy host is not specified.
no-portProxy port is not specified.
duplicateThis proxy already exists in the system.
addFailed to add the proxy.
Back to contents

06 Uploading a proxy list

URLhttps://ggl.farm/api/proxy/load.json?id={apitoken}

Uploads a list of proxies, one per line, like the proxy list upload form. GGL detects the format of each line by itself. Uploading does not update proxies that already exist, and duplicates are skipped. Send the parameters in the POST request body.

Parameters

FieldDescription
proxy*The list of proxies, one per line.

The main line format is socks5://user:pass@12.34.56.78:1488. Other formats work too: socks5://12.34.56.78:1488:user:pass and login:pass@12.34.56.78:1488. Only the host and the port are required. You can leave out the login and the password. A line without a protocol is treated as an HTTP proxy, so for SOCKS5 it is better to write the protocol. To set the number of slots right away, add two pipes and the maximum of clients: socks5://user:pass@12.34.56.78:1488||100500. Add the IP reset link as the third segment: socks5://user:pass@12.34.56.78:1488||100500||https://rotate.example.net/abc.

Response

FieldDescription
addedHow many proxies from the list were added.
duplicatesHow many proxies were skipped as duplicates.
rejectedHow many lines could not be parsed.
dataArray of the added proxy IDs.
{
    "status": "ok",
    "added": 3,
    "duplicates": 1,
    "rejected": 0,
    "data": [ 502, 503, 504 ]
}

Errors

CodeDescription
unpaidSubscription not paid.
no-listThe proxy list is missing or empty.
Back to contents

07 Editing a proxy

URLhttps://ggl.farm/api/proxy/edit.json?id={apitoken}&proxy={id}

Changes the proxy settings, like the proxy edit form. Send the parameters in the POST request body.

Parameters

FieldDescription
proxy*Proxy ID in GGL.
host*IP address or domain of the proxy.
port*Proxy port.
typeProxy type: 0 — HTTP, 1 — HTTPS, 2 — SOCKS5, 3 — SOCKS5H.
userProxy login.
passProxy password.
maxHow many slots the proxy has. At least one.
urlLink for resetting the proxy IP.

Warning! Pass all the parameters, including the ones that did not change. Fields missing from the request are cleared, as in the form.

When the host, port, login, password or type changes, the new settings sync with the anti-detect browser by themselves.

Response

{ "status": "ok" }

Errors

CodeDescription
unpaidSubscription not paid.
no-idProxy ID is not specified.
bad-idNo proxy with this ID is found.
no-hostProxy host is not specified.
no-portProxy port is not specified.
editFailed to edit the proxy.
Back to contents

08 Checking proxies

URLhttps://ggl.farm/api/proxy/check.json?id={apitoken}&ids={ids}

Starts a proxy check, like the “Check” button in the proxy list. The response has the new status of every checked proxy.

Parameters

FieldDescription
ids*Proxy IDs in GGL, as an array or a comma-separated string.

The proxies are checked one by one, and each one can take up to ten seconds. Do not set a short request timeout and check proxies in small batches.

Response

The data field is an object. The key is the proxy ID, the value is its new status: 1 — Working, 2 — Error.

{
    "status": "ok",
    "data": {
        "501": 1,
        "502": 2
    }
}

Errors

CodeDescription
unpaidSubscription not paid.
many-idsMore than 25 proxies in one request. Check in smaller batches.
no-idsThe list of IDs is missing or not recognized.
Back to contents

09 Deleting proxies

URLhttps://ggl.farm/api/proxy/del.json?id={apitoken}&ids={ids}

Deletes proxies from the service.

Warning! Accounts linked to a deleted proxy are left without a proxy and do not run until you link new ones to them. Delete with care.

Parameters

FieldDescription
ids*Proxy IDs in GGL, as an array or a comma-separated string.

Response

{ "status": "ok" }

Errors

CodeDescription
unpaidSubscription not paid.
no-idsThe list of IDs is missing or not recognized.
Back to contents