Accounts API

Pull your accounts into your own table, add new ones and fix a whole batch at once, for example by replacing broken proxies. Parameters, errors and sample responses are below.

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/list returns accounts page by page and filters them by country, status, error, days of farming, proxy and tags. accs/list?show=ids returns only the IDs. accs/get adds the farm settings, the proxy and the cookies for one account.
  • Add accounts. If an account is already registered, send it with accs/push when its profile already exists in your anti-detect browser, or with accs/add when you only have the login and password. In the second case the service creates the profile. Both functions take one account per request. accs/make starts the registration of new accounts. It needs your own proxies, an SMS service and a connected browser.
  • Change settings. accs/edit changes the data of one account, assigns it an exact proxy and changes its farm settings. accs/fix repairs many accounts at once. For example, it replaces broken proxies or turns farming on and off. accs/del deletes accounts.
  • Manage the task queue of an account. With accs/fix you can restart tasks that ended with a problem or an error, delete them, fix the queue or clear it.
  • Check the state. accs/status tells you whether the anti-detect browser integration is set up and the server responds. accs/quota shows 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/active lists the profiles running right now.
  • Find profiles. accs/folder and accs/all give 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/ping and accs/stop.
Back to contents

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

FieldDescription
pagePage number, 1 by default. Pages are numbered from 1.
showHow many accounts to return per page, 100 by default. There is no upper limit.
userUser ID (for the team only).
geoAccount country.
smsgeoCountry for SMS in the account.
statusMain account status (1 — Waiting, 2 — Creating, 3 — Farming).
farmWhether farming is on (0/1).
farmedDays of farming, exact value.
farmedfDays of farming, lower bound.
farmedtDays of farming, upper bound.
errorError code (0 — accounts without errors).
proxyProxy server ID.
sSearch by any string.
folderFolder ID in the browser.
deadWhich accounts to show by activity (0 — only active, 1 — all accounts, 2 — only inactive).
busyWhich accounts to show by whether they are busy (0 — only free, -1 — any busy, 1 — registration, 2 — farming).
tagTag to search for. You can pass several tags separated by spaces.

Response

FieldDescription
statusResponse status: ok or error.
pagePage number in the response, usually 1.
showAccounts per page, usually 100.
totalHow many accounts matched in all, not only on this page.
dataList of accounts. The fields are described below.

Account fields:

FieldDescription
idAccount ID in GGL.
userID of the user in the team that owns the account.
activeWhether the account is active.
statusMain account status (1 — Waiting, 2 — Creating, 3 — Farming).
errorAccount error code.
taskType of task the account is running now (0 — free, 1 — registration, 2 — farming).
folderID of the folder or tag in the anti-detect browser.
profileProfile ID in the anti-detect browser.
createAccount creation time, UNIX timestamp.
nameAccount first name.
lastAccount last name.
loginGoogle login.
emailGoogle email.
recoverGoogle recovery email.
passPassword.
phoneLast phone number for SMS notifications.
2faTwo-factor authentication key. false if there is no key.
dobDate of birth in the YYYY-MM-DD format. false if not set.
genderGender (m — male, f — female).
tagsArray of tags attached to the account.
geoISO code of the account's main country.
smsgeoISO code of the country for receiving SMS (zz — the account's country).
farmWhether farming is on.
farmedDays 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

FieldDescription
acc*Account ID in GGL.

Response

FieldDescription
idAccount ID in GGL.
userID of the user in the team that owns the account.
activeWhether the account is active.
statusMain account status (1 — Waiting, 2 — Creating, 3 — Farming).
errorAccount error code.
taskType of task the account is running now (0 — free, 1 — registration, 2 — farming).
folderID of the folder or tag in the anti-detect browser.
profileProfile ID in the anti-detect browser.
createAccount creation time, UNIX timestamp.
tagsArray of tags attached to the account.
personPersonal data of the account. The fields are described below.
farmFarm state. The fields are described below.
proxyAccount proxy server. The fields are described below. false if the account has no proxy.
metaExtra 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.
cookieArray of cookies in your browser's standard format.

Fields of the person block:

FieldDescription
nameAccount first name.
lastAccount last name.
loginGoogle login.
emailGoogle email.
recoverGoogle recovery email.
passPassword.
phoneLast phone number for SMS notifications.
2faTwo-factor authentication key. false if there is no key.
dobDate of birth in the YYYY-MM-DD format. false if not set.
genderGender (m — male, f — female).
geoISO code of the account's main country.
smsgeoISO code of the country for receiving SMS (zz — the account's country).

Fields of the farm block:

FieldDescription
activeFarming is on.
lastWhen farming last ran, UNIX timestamp.
nextWhen farming runs next on schedule, UNIX timestamp.
daysDays the account has been in active farming.
configArray of internal farm settings.

Fields of the proxy block:

FieldDescription
statusProxy status (0 — waiting, 1 — active, 2 — error).
typeProxy type (0 — http, 1 — https, 2 — socks5, 3 — socks5h).
hostIP address or domain of the proxy.
portPort for connecting to the proxy.
loginProxy server login.
passProxy server password.
urlLink for resetting the proxy IP address.
connectProxy connection link.
ipExternal IP address of the proxy.
geoProxy 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

CodeDescription
no-idAccount ID is not specified.
bad-idAccount with this ID was not found.
Back to contents

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

FieldDescription
ids*GGL account IDs, as an array or a comma-separated string.
fixproxyReplace broken proxies. Changes the proxy if the server does not respond.
newproxyReplace all proxies. Assigns new proxies to all accounts.
anyproxyAllow proxies from another country. If there are not enough proxies from the account's country, others are used.
fixerrorHide all annoying errors. The errors are not fixed, they just stop showing.
killKill 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.
ressurectResurrect 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.
restartRestart problematic tasks. Tasks in the “Problem” and “Error” status start again.
noproblemDelete problematic tasks. Deletes tasks in the “Problem” status.
noerrorsDelete erroneous tasks. Deletes tasks in the “Error” status.
requeueFix the task queue. Moves the head of the task queue to the current task.
unqueueClear the task queue. Deletes tasks in the “In queue” and “Waiting” status. Registration tasks stay.
farmonEnable farming on accounts. Turns farming on and leaves its settings as they are.
farmoffDisable farming on accounts. Turns farming off and leaves its settings as they are.
syncSynchronize profile settings. Updates the description and the settings of the profile in the browser.
forcestopForce stop the browser profile. Sends a stop request even if a task is running in the profile.

Response

{ "status": "ok" }

Errors

CodeDescription
no-idsThe list of identifiers was not passed or was not recognized.
unpaidThe subscription was not paid.
Back to contents

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

FieldDescription
ids*GGL account IDs, as an array or a comma-separated string.
proxyDelete the proxy together with the account (0 or 1, 0 by default).
profileDelete the profile in the browser (0 or 1, 0 by default).

Response

{ "status": "ok" }

Errors

CodeDescription
no-idsThe list of identifiers was not passed or was not recognized.
unpaidThe subscription was not paid.
Back to contents

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

FieldDescription
amount*How many accounts to create, at least one.
geo*Country to create the accounts in.
smsgeoCountry for SMS (optional, the account's country by default).
proxygeoCountry 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.
osOperating 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.
delayRegistration delay in days (from 0 to 30).
tagsTags of the new accounts, lowercase, separated by commas.

Response

{ "status": "ok" }

Errors

CodeDescription
unpaidSubscription not paid.
sms-serviceSMS service integration is not set up.
bad-amoutThe number of accounts is wrong, minimum 1. The code arrives spelled exactly like this.
no-proxyNot enough free proxies for that many accounts.
antidetect-browserAnti-detect browser integration is not set up.
wrong-folderThe folder was not found in the browser.
Back to contents

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

FieldDescription
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.
profileProfile ID in the browser. Required if account is not passed.
accountFolder 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.
smsgeoCountry for SMS (optional, the account's country by default).
2faTwo-factor authentication key.
recoverRecovery e-mail.
nameAccount first name.
lastAccount last name.
tagsTags of the account, lowercase, separated by commas.
proxyProxy server in the format proto://login:pass@host:port. If the proxy cannot be parsed, the profile manages the proxy on its own.
phoneRented phone number.
phonesID of the phone rental in the SMS service.
farmonTurn farming on for the account (0 or 1).
farmnextHow 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.
noytDo not watch YouTube videos while farming (0 or 1).

Response

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

Errors

CodeDescription
unpaidSubscription not paid.
antidetect-browserAnti-detect browser integration is not set up.
wrong-folderThe folder was not found in the browser.
no-loginLogin not specified.
no-passPassword not specified.
already-existsThis profile is already attached to one of your accounts.
bad-geoThe country is not supported. The list of supported countries comes in the supported-geo field.
pushFailed to add the account.
Back to contents

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

FieldDescription
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.
osOperating system of the profile as a number: 1 — Windows, 2 — MacOS, 3 — Linux. 1 by default.
proxygeoCountry for the proxy (optional, the account's country by default).
smsgeoCountry for SMS (optional, the account's country by default).
2faTwo-factor authentication key.
recoverRecovery e-mail.
nameFirst name for the profile.
lastLast name for the profile.
tagsTags of the account, lowercase, separated by commas.
delayDelay before the profile creation and the login task, in days (from 0 to 30).
farmonTurn farming on for the account (0 or 1).
farmnextHow 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.
noytDo 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

CodeDescription
unpaidSubscription not paid.
antidetect-browserAnti-detect browser integration is not set up.
wrong-folderThe folder was not found in the browser.
no-emailE-mail not specified.
bad-emailInvalid e-mail.
no-passPassword not specified.
bad-geoThe country is not supported. The list of supported countries comes in the supported-geo field.
no-proxyNo free proxies for the new account.
addFailed to add the account.
Back to contents

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

FieldDescription
acc*Account ID in GGL.
geoAccount country. The service must support it.
smsgeoCountry for SMS (zz — the account's country).
tagsTags of the account, lowercase, separated by commas or spaces. They fully replace the current tags.
2faTwo-factor authentication key. The c2fa parameter from the edit form is a synonym for it.
nameAccount first name.
lastAccount last name.
emailGoogle e-mail. An empty value clears the e-mail.
recoverGoogle recovery e-mail.
passPassword.
dobDate of birth in the YYYY-MM-DD format.
phonePhone number for SMS notifications.
phonesID of the phone rental in the SMS service.
folderFolder ID in the anti-detect browser.
profileProfile ID in the anti-detect browser.
commentComment on the account.
proxyExact 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.
farmonTurn farming on for the account (0 or 1).
farmnextHow 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.
noytDo 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

CodeDescription
unpaidSubscription not paid.
no-idAccount ID not specified.
bad-idAccount with this ID not found.
no-fieldsNo editable parameter is passed.
bad-geoThe country is not supported. The list of supported countries comes in the supported-geo field.
bad-emailIncorrect e-mail.
bad-proxyThe proxy cannot be parsed, or this proxy already belongs to another user.
bad-farmnextThe farming period is not valid. The allowed values come in the supported-farmnext field.
editFailed to save the account data.
farmFailed to save the farm settings.
Back to contents

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

FieldDescription
apitrue if the browser API key is in the settings, otherwise false.
iptrue if the server IP address is in the settings, otherwise false.
foldertrue if the browser API key is active and the list of folders was received, otherwise false.
activetrue 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

FieldDescription
limitThe maximum number of accounts your tariff serves at the same time. For a team member, this is the shared team limit.
usedHow many accounts are busy right now.
percentThe overall load as a percentage of the limit, no more than 100.
taskWorker tasks. used is the number of queued tasks that are ready to run, percent is their share of the limit.
farmFarming. used is the number of accounts waiting for their next farming run, percent is their share of the limit.
statStatistics 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

CodeDescription
unpaidSubscription not paid.
Back to contents

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

FieldDescription
profileProfile ID in the browser.
nameProfile name.
folderFolder ID in the browser.
dirFolder name.
{
    "status": "ok",
    "data": [
        {
            "profile": "b482dc365e1a49fd3687e573313ea281",
            "name": "Jermaine Morrison",
            "folder": "cc318e23c45b4d64ab8d2e82ed5e888c",
            "dir": "Google"
        },
        ...
    ]
}

Errors

CodeDescription
unpaidSubscription not paid.
Back to contents