01 What the functions do
These functions let you manage accounts without the interface: pull a list, add accounts, change settings, fix and delete. It helps when you have a lot of accounts or when your own program should handle them. How to call a function and read the response is in the API catalog.
- Pull accounts out into your own system or a table.
accs/listreturns accounts page by page and filters them by country, status, error, days of farming, proxy and tags.accs/list?show=idsreturns only the IDs.accs/getadds the farm settings, the proxy and the cookies for one account. - Add accounts. If an account is already registered, send it with
accs/pushwhen its profile already exists in your anti-detect browser, or withaccs/addwhen you only have the login and password. In the second case the service creates the profile. Both functions take one account per request.accs/makestarts the registration of new accounts. It needs your own proxies, an SMS service and a connected browser. - Change settings.
accs/editchanges the data of one account, assigns it an exact proxy and changes its farm settings.accs/fixrepairs many accounts at once. For example, it replaces broken proxies or turns farming on and off.accs/deldeletes accounts. - Manage the task queue of an account. With
accs/fixyou can restart tasks that ended with a problem or an error, delete them, fix the queue or clear it. - Check the state.
accs/statustells you whether the anti-detect browser integration is set up and the server responds.accs/quotashows the load: the limit of your tariff, how many accounts are busy, and how many tasks, farming runs and statistics collections wait in the queue.accs/activelists the profiles running right now. - Find profiles.
accs/folderandaccs/allgive you the folders and profiles of your anti-detect browser. To start a profile and drive it from your own code, use the functions on the browser profile page:accs/start,accs/pingandaccs/stop.
02 Listing accounts
URL for userhttps://ggl.farm/api/accs/list.json?id={apitoken}
URL for teamhttps://ggl.farm/api/gang/list.json?id={apitoken}
Returns a list of accounts that match your filters. Each entry has the account ID, status, error, personal data and farm state. Cookies and proxies are not in the list. To get them, call the single account function.
Parameters
| Field | Description |
|---|---|
page | Page number, 1 by default. Pages are numbered from 1. |
show | How many accounts to return per page, 100 by default. There is no upper limit. |
user | User ID (for the team only). |
geo | Account country. |
smsgeo | Country for SMS in the account. |
status | Main account status (1 — Waiting, 2 — Creating, 3 — Farming). |
farm | Whether farming is on (0/1). |
farmed | Days of farming, exact value. |
farmedf | Days of farming, lower bound. |
farmedt | Days of farming, upper bound. |
error | Error code (0 — accounts without errors). |
proxy | Proxy server ID. |
s | Search by any string. |
folder | Folder ID in the browser. |
dead | Which accounts to show by activity (0 — only active, 1 — all accounts, 2 — only inactive). |
busy | Which accounts to show by whether they are busy (0 — only free, -1 — any busy, 1 — registration, 2 — farming). |
tag | Tag to search for. You can pass several tags separated by spaces. |
Response
| Field | Description |
|---|---|
status | Response status: ok or error. |
page | Page number in the response, usually 1. |
show | Accounts per page, usually 100. |
total | How many accounts matched in all, not only on this page. |
data | List of accounts. The fields are described below. |
Account fields:
| Field | Description |
|---|---|
id | Account ID in GGL. |
user | ID of the user in the team that owns the account. |
active | Whether the account is active. |
status | Main account status (1 — Waiting, 2 — Creating, 3 — Farming). |
error | Account error code. |
task | Type of task the account is running now (0 — free, 1 — registration, 2 — farming). |
folder | ID of the folder or tag in the anti-detect browser. |
profile | Profile ID in the anti-detect browser. |
create | Account creation time, UNIX timestamp. |
name | Account first name. |
last | Account last name. |
login | Google login. |
email | Google email. |
recover | Google recovery email. |
pass | Password. |
phone | Last phone number for SMS notifications. |
2fa | Two-factor authentication key. false if there is no key. |
dob | Date of birth in the YYYY-MM-DD format. false if not set. |
gender | Gender (m — male, f — female). |
tags | Array of tags attached to the account. |
geo | ISO code of the account's main country. |
smsgeo | ISO code of the country for receiving SMS (zz — the account's country). |
farm | Whether farming is on. |
farmed | Days the account has been in active farming. |
{
"status": "ok",
"page": 1,
"show": 100,
"total": 100500,
"data": [
{
"id": 32,
"user": 23,
"active": true,
"status": 3,
"error": 901,
"task": 0,
"folder": "cc318e23c45b4d64ab8d2e82ed5e888c",
"profile": "b482dc365e1a49fd3687e573313ea281",
"create": "1751397362",
"name": "Jermaine",
"last": "Morrison",
"login": "sleepeline19",
"email": "sleepeline19@gmail.com",
"recover": "sleeper191417@gmx.com",
"pass": "1JwWwWwW1w",
"phone": "777737373737",
"2fa": false,
"dob": "2001-06-12",
"gender": "m",
"tags": [ "meow", "purr" ],
"geo": "gb",
"smsgeo": "kz",
"farm": true,
"farmed": 13
},
...
]
}
Back to contents
03 Getting account IDs
URL for userhttps://ggl.farm/api/accs/list.json?id={apitoken}&show=ids
URL for teamhttps://ggl.farm/api/gang/list.json?id={apitoken}&show=ids
Returns only the account IDs. Use them in the repair and delete functions. The parameters are the same as in listing accounts, plus show=ids.
Response
The data field holds an array of IDs.
{
"status": "ok",
"data": [ 32, 58, 59, 64 ]
}
Back to contents
04 Getting one account
URL for userhttps://ggl.farm/api/accs/get.json?id={apitoken}&acc={id}
URL for teamhttps://ggl.farm/api/gang/get.json?id={apitoken}&acc={id}
Returns one account by its ID, in more detail than the list. On top of the list data it adds the farm settings, the proxy and the cookies, if there are any.
Parameters
| Field | Description |
|---|---|
acc* | Account ID in GGL. |
Response
| Field | Description |
|---|---|
id | Account ID in GGL. |
user | ID of the user in the team that owns the account. |
active | Whether the account is active. |
status | Main account status (1 — Waiting, 2 — Creating, 3 — Farming). |
error | Account error code. |
task | Type of task the account is running now (0 — free, 1 — registration, 2 — farming). |
folder | ID of the folder or tag in the anti-detect browser. |
profile | Profile ID in the anti-detect browser. |
create | Account creation time, UNIX timestamp. |
tags | Array of tags attached to the account. |
person | Personal data of the account. The fields are described below. |
farm | Farm state. The fields are described below. |
proxy | Account proxy server. The fields are described below. false if the account has no proxy. |
meta | Extra account data, for example the current bill and the status of the advertising campaign. An array, and each item has the fields id, value and name, the name of the data. An empty array if there is no data. |
cookie | Array of cookies in your browser's standard format. |
Fields of the person block:
| Field | Description |
|---|---|
name | Account first name. |
last | Account last name. |
login | Google login. |
email | Google email. |
recover | Google recovery email. |
pass | Password. |
phone | Last phone number for SMS notifications. |
2fa | Two-factor authentication key. false if there is no key. |
dob | Date of birth in the YYYY-MM-DD format. false if not set. |
gender | Gender (m — male, f — female). |
geo | ISO code of the account's main country. |
smsgeo | ISO code of the country for receiving SMS (zz — the account's country). |
Fields of the farm block:
| Field | Description |
|---|---|
active | Farming is on. |
last | When farming last ran, UNIX timestamp. |
next | When farming runs next on schedule, UNIX timestamp. |
days | Days the account has been in active farming. |
config | Array of internal farm settings. |
Fields of the proxy block:
| Field | Description |
|---|---|
status | Proxy status (0 — waiting, 1 — active, 2 — error). |
type | Proxy type (0 — http, 1 — https, 2 — socks5, 3 — socks5h). |
host | IP address or domain of the proxy. |
port | Port for connecting to the proxy. |
login | Proxy server login. |
pass | Proxy server password. |
url | Link for resetting the proxy IP address. |
connect | Proxy connection link. |
ip | External IP address of the proxy. |
geo | Proxy country. |
{
"status": "ok",
"data": {
"id": 666,
"user": 1,
"active": true,
"status": 3,
"error": 200,
"task": 0,
"folder": "d8921911531547e91c3796e159585f2d",
"profile": "d3cd4c0f88042c2bad857fcf18c265dd",
"create": "1751811704",
"tags": [],
"person": {
"name": "Kyle",
"last": "Striker",
"login": "sleepeline19",
"email": "sleepeline19@gmail.com",
"recover": "sleeper191417@gmx.com",
"pass": "1JwWwWwW1w",
"phone": "777737373737",
"2fa": false,
"dob": "1984-02-18",
"gender": "m",
"geo": "gb",
"smsgeo": "kz"
},
"farm": {
"active": true,
"last": 1754598800,
"next": 1754751556,
"days": 22,
"config": []
},
"proxy": {
"status": 1,
"type": 2,
"host": "192.168.105.251",
"port": 1337,
"login": "JqFww",
"pass": "pYi9G",
"url": "",
"connect": "socks5:\/\/JqFww:pYi9G@192.168.105.251:1337",
"ip": "2600:4c14:2001:431:4d61:2a1e:9fb1:9e56",
"geo": "ca"
},
"meta": [],
"cookie": []
}
}
Errors
| Code | Description |
|---|---|
no-id | Account ID is not specified. |
bad-id | Account with this ID was not found. |
05 Fixing account errors
URL for userhttps://ggl.farm/api/accs/fix.json?id={apitoken}&ids={ids}
URL for teamhttps://ggl.farm/api/gang/fix.json?id={apitoken}&ids={ids}
Works like the “Repair Account” mass service form and fixes the same problems. Pass only the parameters you need.
Parameters
| Field | Description |
|---|---|
ids* | GGL account IDs, as an array or a comma-separated string. |
fixproxy | Replace broken proxies. Changes the proxy if the server does not respond. |
newproxy | Replace all proxies. Assigns new proxies to all accounts. |
anyproxy | Allow proxies from another country. If there are not enough proxies from the account's country, others are used. |
fixerror | Hide all annoying errors. The errors are not fixed, they just stop showing. |
kill | Kill these accounts. An account becomes inactive (active is false) and drops out of service. Its tasks in the “Waiting” and “Working” status get the “Problem” status. |
ressurect | Resurrect these accounts. An account becomes active again and goes back to work. Tasks that turned into problems do not start on their own, you can bring them back with the restart parameter. |
restart | Restart problematic tasks. Tasks in the “Problem” and “Error” status start again. |
noproblem | Delete problematic tasks. Deletes tasks in the “Problem” status. |
noerrors | Delete erroneous tasks. Deletes tasks in the “Error” status. |
requeue | Fix the task queue. Moves the head of the task queue to the current task. |
unqueue | Clear the task queue. Deletes tasks in the “In queue” and “Waiting” status. Registration tasks stay. |
farmon | Enable farming on accounts. Turns farming on and leaves its settings as they are. |
farmoff | Disable farming on accounts. Turns farming off and leaves its settings as they are. |
sync | Synchronize profile settings. Updates the description and the settings of the profile in the browser. |
forcestop | Force stop the browser profile. Sends a stop request even if a task is running in the profile. |
Response
{ "status": "ok" }
Errors
| Code | Description |
|---|---|
no-ids | The list of identifiers was not passed or was not recognized. |
unpaid | The subscription was not paid. |
06 Removing accounts
URL for userhttps://ggl.farm/api/accs/del.json?id={apitoken}&ids={ids}
URL for teamhttps://ggl.farm/api/gang/del.json?id={apitoken}&ids={ids}
Deletes accounts from the service. It can also delete their profiles from the anti-detect browser.
Warning! Delete with care. Many anti-detect browsers limit the number of API requests, so if you delete a lot of accounts at once, the profiles in the browser will not be deleted.
Parameters
| Field | Description |
|---|---|
ids* | GGL account IDs, as an array or a comma-separated string. |
proxy | Delete the proxy together with the account (0 or 1, 0 by default). |
profile | Delete the profile in the browser (0 or 1, 0 by default). |
Response
{ "status": "ok" }
Errors
| Code | Description |
|---|---|
no-ids | The list of identifiers was not passed or was not recognized. |
unpaid | The subscription was not paid. |
07 Creating accounts
URLhttps://ggl.farm/api/accs/make.json?id={apitoken}
Creates tasks for registering accounts and puts empty placeholders for those accounts in the list. First add your proxies and set up the SMS service and the browser integration in the GGL interface. Find a suitable folder with the folder list function. The response has status with the value ok or error, and an error field if something went wrong.
Parameters
| Field | Description |
|---|---|
amount* | How many accounts to create, at least one. |
geo* | Country to create the accounts in. |
smsgeo | Country for SMS (optional, the account's country by default). |
proxygeo | Country for the proxy (optional, the account's country by default). |
folder* | Folder in the anti-detect browser to create the account in. The list of folders comes from a separate function. |
os | Operating system of the profile as a number: 1 — Windows, 2 — MacOS, 3 — Linux. 1 by default. Words such as mac are not read, and such an account gets Windows. |
delay | Registration delay in days (from 0 to 30). |
tags | Tags of the new accounts, lowercase, separated by commas. |
Response
{ "status": "ok" }
Errors
| Code | Description |
|---|---|
unpaid | Subscription not paid. |
sms-service | SMS service integration is not set up. |
bad-amout | The number of accounts is wrong, minimum 1. The code arrives spelled exactly like this. |
no-proxy | Not enough free proxies for that many accounts. |
antidetect-browser | Anti-detect browser integration is not set up. |
wrong-folder | The folder was not found in the browser. |
08 Adding an existing account
URLhttps://ggl.farm/api/accs/push.json?id={apitoken}
Adds an account that already has a browser profile to the service. Use it when the account is registered and lives in your anti-detect browser. Find the folder with the folder list function and the profile with the list of all profiles. Send the parameters in the body of a POST request. The function does not read them from the query string.
Parameters
| Field | Description |
|---|---|
login* | Google login or e-mail. If you pass an e-mail, the login is taken from it. If you pass a login, the e-mail is generated from it. |
pass* | Password. |
geo* | Account country. |
folder* | Folder in the anti-detect browser. The list of folders comes from a separate function. |
profile | Profile ID in the browser. Required if account is not passed. |
account | Folder and profile in one value, in the format folder/profile. It replaces the profile parameter. Still pass the folder in folder, the service checks it against the folder list. The folder from this value is the one that gets saved. |
smsgeo | Country for SMS (optional, the account's country by default). |
2fa | Two-factor authentication key. |
recover | Recovery e-mail. |
name | Account first name. |
last | Account last name. |
tags | Tags of the account, lowercase, separated by commas. |
proxy | Proxy server in the format proto://login:pass@host:port. If the proxy cannot be parsed, the profile manages the proxy on its own. |
phone | Rented phone number. |
phones | ID of the phone rental in the SMS service. |
farmon | Turn farming on for the account (0 or 1). |
farmnext | How often to run farming, in seconds: 85000 — every day, 42000 — twice a day, 27000 — three times a day, 170000 — every two days, 259000 — every three days, 604000 — once a week. |
noyt | Do not watch YouTube videos while farming (0 or 1). |
Response
{ "status": "ok", "id": 123 }
Errors
| Code | Description |
|---|---|
unpaid | Subscription not paid. |
antidetect-browser | Anti-detect browser integration is not set up. |
wrong-folder | The folder was not found in the browser. |
no-login | Login not specified. |
no-pass | Password not specified. |
already-exists | This profile is already attached to one of your accounts. |
bad-geo | The country is not supported. The list of supported countries comes in the supported-geo field. |
push | Failed to add the account. |
09 Connecting an existing account
URLhttps://ggl.farm/api/accs/add.json?id={apitoken}
Connects an existing Google account by its login and password. It adds the account to the list, gives it a proxy, creates a profile in the anti-detect browser by itself and queues the login task. It repeats the “Connect accounts” form in single-account mode. Unlike adding an existing account, you do not need to create a browser profile first. The service creates it. Send the parameters in the body of a POST request.
Parameters
| Field | Description |
|---|---|
email* | Google e-mail. |
pass* | Password. |
geo* | Account country. |
folder* | Folder in the anti-detect browser. The list of folders comes from a separate function. The profile is created in this folder. |
os | Operating system of the profile as a number: 1 — Windows, 2 — MacOS, 3 — Linux. 1 by default. |
proxygeo | Country for the proxy (optional, the account's country by default). |
smsgeo | Country for SMS (optional, the account's country by default). |
2fa | Two-factor authentication key. |
recover | Recovery e-mail. |
name | First name for the profile. |
last | Last name for the profile. |
tags | Tags of the account, lowercase, separated by commas. |
delay | Delay before the profile creation and the login task, in days (from 0 to 30). |
farmon | Turn farming on for the account (0 or 1). |
farmnext | How often to run farming, in seconds: 85000 — every day, 42000 — twice a day, 27000 — three times a day, 170000 — every two days, 259000 — every three days, 604000 — once a week. |
noyt | Do not watch YouTube videos while farming (0 or 1). |
Response
The account appears in the list with the “Waiting” status. Within a minute the service creates the profile and queues the login task. Watch the account status. The response has only the status, so to find the created account, use the listing function.
{ "status": "ok" }
Errors
| Code | Description |
|---|---|
unpaid | Subscription not paid. |
antidetect-browser | Anti-detect browser integration is not set up. |
wrong-folder | The folder was not found in the browser. |
no-email | E-mail not specified. |
bad-email | Invalid e-mail. |
no-pass | Password not specified. |
bad-geo | The country is not supported. The list of supported countries comes in the supported-geo field. |
no-proxy | No free proxies for the new account. |
add | Failed to add the account. |
10 Editing an account
URLhttps://ggl.farm/api/accs/edit.json?id={apitoken}&acc={id}
Changes the data of an existing account. It combines the account card edit form, the exact proxy assignment and the farm settings. Pass only what you want to change, everything else stays as it was. The acc parameter goes in the address. Send the other parameters in the query string or in the body of a POST request.
Parameters
| Field | Description |
|---|---|
acc* | Account ID in GGL. |
geo | Account country. The service must support it. |
smsgeo | Country for SMS (zz — the account's country). |
tags | Tags of the account, lowercase, separated by commas or spaces. They fully replace the current tags. |
2fa | Two-factor authentication key. The c2fa parameter from the edit form is a synonym for it. |
name | Account first name. |
last | Account last name. |
email | Google e-mail. An empty value clears the e-mail. |
recover | Google recovery e-mail. |
pass | Password. |
dob | Date of birth in the YYYY-MM-DD format. |
phone | Phone number for SMS notifications. |
phones | ID of the phone rental in the SMS service. |
folder | Folder ID in the anti-detect browser. |
profile | Profile ID in the anti-detect browser. |
comment | Comment on the account. |
proxy | Exact proxy server in the format proto://login:pass@host:port. The service parses it and assigns it to the account. The previous proxy is not released on its own. Its slot stays occupied until the proxy counters are recalculated. To free it, upload a proxy list with proxy/load. The counters are recalculated after every upload. Replacing the proxy in the account repair form does not free the old slot, because it works with the account's current proxy. |
farmon | Turn farming on for the account (0 or 1). |
farmnext | How often to run farming, in seconds: 85000 — every day, 42000 — twice a day, 27000 — three times a day, 170000 — every two days, 259000 — every three days, 604000 — once a week. |
noyt | Do not watch YouTube videos while farming (0 or 1). |
You can change the farm settings one at a time. The settings you do not pass keep their current values. The function works with your own accounts only. At the team level, call it under the login of the account owner.
Response
{ "status": "ok" }
Errors
| Code | Description |
|---|---|
unpaid | Subscription not paid. |
no-id | Account ID not specified. |
bad-id | Account with this ID not found. |
no-fields | No editable parameter is passed. |
bad-geo | The country is not supported. The list of supported countries comes in the supported-geo field. |
bad-email | Incorrect e-mail. |
bad-proxy | The proxy cannot be parsed, or this proxy already belongs to another user. |
bad-farmnext | The farming period is not valid. The allowed values come in the supported-farmnext field. |
edit | Failed to save the account data. |
farm | Failed to save the farm settings. |
11 Checking server status
URLhttps://ggl.farm/api/accs/status.json?id={apitoken}
Checks whether the anti-detect browser integration is set up and whether the server responds. It looks for the keys and addresses and checks that the APIs and the server are reachable.
Response
| Field | Description |
|---|---|
api | true if the browser API key is in the settings, otherwise false. |
ip | true if the server IP address is in the settings, otherwise false. |
folder | true if the browser API key is active and the list of folders was received, otherwise false. |
active | true if the server is active and the list of running profiles was received, otherwise false. |
{
"status": "ok",
"data": {
"api": true,
"ip": true,
"folder": true,
"active": true
}
}
Back to contents
12 Quotas and load
URLhttps://ggl.farm/api/accs/quota.json?id={apitoken}
Shows how loaded your account slots are. It is the same block as on the main page of the control panel. The values are cached for a minute, so frequent requests get an instant answer and do not load the service.
Response
| Field | Description |
|---|---|
limit | The maximum number of accounts your tariff serves at the same time. For a team member, this is the shared team limit. |
used | How many accounts are busy right now. |
percent | The overall load as a percentage of the limit, no more than 100. |
task | Worker tasks. used is the number of queued tasks that are ready to run, percent is their share of the limit. |
farm | Farming. used is the number of accounts waiting for their next farming run, percent is their share of the limit. |
stat | Statistics collection. used is the number of accounts waiting for their next statistics collection, percent is their share of the limit. |
{
"status": "ok",
"data": {
"limit": 100,
"used": 37,
"percent": 37,
"task": { "used": 12, "percent": 12 },
"farm": { "used": 25, "percent": 25 },
"stat": { "used": 3, "percent": 3 }
}
}
Errors
| Code | Description |
|---|---|
unpaid | Subscription not paid. |
13 Getting a list of folders for creating accounts
URLhttps://ggl.farm/api/accs/folder.json?id={apitoken}
Returns the folders or tags of your anti-detect browser. The response has pairs: the folder ID and its name. You need the folder ID when you create or add accounts.
Response
If the browser integration is not set up or the browser did not answer, you get "status": "ok" and "data": false. You can check the integration beforehand with the server status check.
{
"status": "ok",
"data": {
"4fd5a1f8e1fe48a3b316ff163cda2bb3": "Facebook",
"d8921911541147e9ac3706e159585f2d": "Google"
}
}
Back to contents
14 Getting a list of active profiles
URLhttps://ggl.farm/api/accs/active.json?id={apitoken}
Returns the IDs of the profiles that are running on the server right now. There is no folder in the response, only an array of IDs. To see names and folders, use the list of all profiles.
Response
If the browser integration is not set up or the server did not answer, you get "status": "ok" and "data": false.
{
"status": "ok",
"data": [
"b96b65efc421411ab56dd721b780220c",
"129431cbcbf64f66b103e96e0072e1ac",
"825016629d184a528ed4c0e971f37cc7"
]
}
Back to contents
15 Getting a list of all profiles
URLhttps://ggl.farm/api/accs/all.json?id={apitoken}
Returns all profiles of your anti-detect browser, running and stopped. Unlike the list of active profiles, every profile here has a name and a folder. Use it to find the folder and the profile when you add an existing account.
Response
| Field | Description |
|---|---|
profile | Profile ID in the browser. |
name | Profile name. |
folder | Folder ID in the browser. |
dir | Folder name. |
{
"status": "ok",
"data": [
{
"profile": "b482dc365e1a49fd3687e573313ea281",
"name": "Jermaine Morrison",
"folder": "cc318e23c45b4d64ab8d2e82ed5e888c",
"dir": "Google"
},
...
]
}
Errors
| Code | Description |
|---|---|
unpaid | Subscription not paid. |