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/listreturns 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=idsreturns only the IDs.proxy/getadds the connect link and the check times for one proxy. - Find broken proxies and check them. Filter
proxy/listwithstatus=2to get the proxies with the “Error” status. Theerrorsfield tells you how many checks in a row failed. Take their IDs withproxy/list?show=idsand run them throughproxy/check. One request takes up to 25 proxies and returns the new status of each. To replace broken proxies on many accounts at once, useaccs/fixwith thefixproxyparameter. - Fill the pool.
proxy/addadds one proxy by fields.proxy/loaduploads 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/editchanges 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/deldeletes proxies. Accounts linked to a deleted proxy are left without one and do not run until you link new ones to them.
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
| Field | Description |
|---|---|
page | Page number, 1 by default. Pages are numbered from 1. |
show | How many proxies to return per page, 100 by default. There is no upper limit. |
status | Proxy status: 0 — Waiting, 1 — Working, 2 — Error. |
ip6 | Proxy IP version: 0 — IPv4, 1 — IPv6. |
geo | Country of the proxy exit IP. |
type | Proxy type: 0 — HTTP, 1 — HTTPS, 2 — SOCKS5, 3 — SOCKS5H. |
host | Proxy host, exact match only. |
port | Proxy port, exact match only. |
user | Proxy login, exact match only. |
pass | Proxy password, exact match only. |
s | Search by any string in the host, port, login, password and reset link. |
Response
| Field | Description |
|---|---|
status | Response status: ok or error. |
nav | Pagination. The fields are described below. |
dataset | Reference dictionaries: types — proxy type names, statuses — status names. |
data | The 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:
| Field | Description |
|---|---|
total | How many proxies matched in total. |
page | Current page number. |
pages | How many pages there are. |
show | Proxies per page. |
Proxy fields:
| Field | Description |
|---|---|
id | Proxy ID in GGL. |
status | Proxy status: 0 — Waiting, 1 — Working, 2 — Error. |
errors | How many checks in a row have failed. |
type | Proxy type: 0 — HTTP, 1 — HTTPS, 2 — SOCKS5, 3 — SOCKS5H. |
host | IP address or domain of the proxy. |
port | Proxy port. |
user | Proxy login. |
pass | Proxy password. |
ip | Exit IP of the proxy. false if it has not been checked yet. |
ip6 | Whether the exit IP is an IPv6 address. |
geo | Country of the proxy exit IP. |
avail | How many slots are free. |
count | How many slots are taken. |
max | How many slots the proxy has in total. |
url | Link 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
| Field | Description |
|---|---|
proxy* | Proxy ID in GGL. |
Response
The fields are the same as in the list, plus three more:
| Field | Description |
|---|---|
link | Connect link in the proto://login:pass@host:port format. |
check | When the proxy will be checked next, UNIX timestamp. |
last | When 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
| Code | Description |
|---|---|
no-id | Proxy ID is not specified. |
bad-id | No proxy with this ID is found. |
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
| Field | Description |
|---|---|
host* | IP address or domain of the proxy. |
port* | Proxy port. |
type | Proxy type, HTTP by default: 0 — HTTP, 1 — HTTPS, 2 — SOCKS5, 3 — SOCKS5H. |
user | Proxy login. |
pass | Proxy password. |
max | How many slots the proxy has, that is, how many accounts you can put on it. At least one. |
url | Link 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
| Code | Description |
|---|---|
unpaid | Subscription not paid. |
no-host | Proxy host is not specified. |
no-port | Proxy port is not specified. |
duplicate | This proxy already exists in the system. |
add | Failed to add the proxy. |
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
| Field | Description |
|---|---|
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
| Field | Description |
|---|---|
added | How many proxies from the list were added. |
duplicates | How many proxies were skipped as duplicates. |
rejected | How many lines could not be parsed. |
data | Array of the added proxy IDs. |
{
"status": "ok",
"added": 3,
"duplicates": 1,
"rejected": 0,
"data": [ 502, 503, 504 ]
}
Errors
| Code | Description |
|---|---|
unpaid | Subscription not paid. |
no-list | The proxy list is missing or empty. |
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
| Field | Description |
|---|---|
proxy* | Proxy ID in GGL. |
host* | IP address or domain of the proxy. |
port* | Proxy port. |
type | Proxy type: 0 — HTTP, 1 — HTTPS, 2 — SOCKS5, 3 — SOCKS5H. |
user | Proxy login. |
pass | Proxy password. |
max | How many slots the proxy has. At least one. |
url | Link 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
| Code | Description |
|---|---|
unpaid | Subscription not paid. |
no-id | Proxy ID is not specified. |
bad-id | No proxy with this ID is found. |
no-host | Proxy host is not specified. |
no-port | Proxy port is not specified. |
edit | Failed to edit the proxy. |
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
| Field | Description |
|---|---|
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
| Code | Description |
|---|---|
unpaid | Subscription not paid. |
many-ids | More than 25 proxies in one request. Check in smaller batches. |
no-ids | The list of IDs is missing or not recognized. |
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
| Field | Description |
|---|---|
ids* | Proxy IDs in GGL, as an array or a comma-separated string. |
Response
{ "status": "ok" }
Errors
| Code | Description |
|---|---|
unpaid | Subscription not paid. |
no-ids | The list of IDs is missing or not recognized. |