API Description

Account

Account balance

The method allows to check the balance of a user account.

Request format

GET /account/balance

Result

If successful, the server returns an array containing the account currency, currency code and current account balance.

NameRequiredDescription
currencyYesAccount currency (outdated, use currency_code instead)
currency_codeYesAccount currency code
valueYesCurrent account balance

Response example

{
    “currency”: “USD”,    “currency_code”: “USD”,
    “value”: 99964.91699
}

User profile

The method allows you to get information about the currently logged in user.

Request format

GET /account/profile

Result

If successful, the server returns an array containing account data.

NameRequiredTypeDescription
emailYesStringAccount email 
email_verifiedYesBoolEmail confirmed (1 – yes, 2 – no)
first_nameYesStringAccount name
last_nameYesStringAccount surname
langYesStringAccount language (ISO 639-1 alpha-2)
pictureYesString|nullLink to the user’s avatar. Null if missing

Response example

{    “email”: “[email protected]”,    “email_verified”: true,    “first_name”: “John”,    “last_name”: “Doe”,    “lang”: “en”,    “picture”: “https://online.seranking.com/files/public/avatar/se.png”}

Subscription data

The method allows you to get information about the currently logged in user’s subscription.

Request format

GET /account/subscription

Result

If successful, the server returns an array containing subscription data.

NameRequiredTypeDescription
typeYesStringmanual (pay for checks) | trial (trial account) | subscription 
balanceNoArray{‘currency’ => Currency code (USD | RUB)‘amount’ => Account balance}
is_expiredNoBooleantrue if the license is expired.Only for type=trial and type=subscription

Response example

{    “type”: “subscription”,    “is_expired”: “false”,    “balance”: {        “currency”: “USD”,        “amount”: 100.00  }}