Python client for Monobank open API (https://api.monobank.ua/docs/)
pip install monobank-api
or add to to your requirements.txt monobank-api==0.1.1
and run
pip install -r requirements.txt
Monobank open API allows making certain requests without any authorization.
from monobank_api import BaseAPI
mono = BaseAPI()
currencies = mono.get_currency()
Request and activate your token at https://api.monobank.ua
from monobank_api import PersonalAPI
PERSONAL_TOKEN = "copy token here"
The corporate API documentation (https://api.monobank.ua/docs/corporate.html)
To use this authorization method, you'll need to generate a key and contact Monobank team.
openssl ecparam -genkey -name secp256k1 -out private_key.key
NOTE: Do not share this key with anyone.
openssl ec -in private_key.key -pubout > public_key.pub
For more information check the Monobank API documentation.
from monobank_api import CorporateAPI
# the url has to be used by the user to confirm authorization
mono = CorporateAPI.request_auth("./private_key.pem")
if mono.check_auth():
user_info = mono.get_client_info()
The MIT License (MIT). Please see License for more information.