Join And Get Free Trial!

getBalance#


Descrição do método getBalance

Ponto final da API: https://api.nextcaptcha.com/getBalance

método: POST

Tipo de conteúdo: application/json

Solicitar propriedades#

nometipoObrigatórioDescrição
clientKeyCordaSimSua chave de API

Exemplo de solicitação#

{
   "clientKey": "api key"
}

Exemplo de resposta#

{
   "errorId": 0,
   "balance": "12.34"
}

Código de exemplo#

# https://github.com/nextcaptcha/nextcaptcha-python
 
import os
import sys
from nextcaptcha import NextCaptchaAPI
 
client_key = os.getenv('NEXTCAPTCHA_KEY', "YOUR_CLIENT_KEY")
 
api = NextCaptchaAPI(client_key=client_key)
try:
  balance = api.get_balance()
except Exception as e:
  sys.exit(e)
 
else:
  sys.exit('Account balance: ' + str(balance))