# Subscription

# Check the status of your subscription

This API allows you to check the remaining daily credits and calculate the time of next refill.

GET https://api.nopecha.com/status/
Parameter Type Required Description
key String Required NopeCHA subscription key.
{
    'key': 'MY_NOPECHA_KEY'
}
Subscription status
{
    'plan': 'Basic',
    'credit': 19902,
    'quota': 20000,
    'duration': 82800,
    'lastreset': 1669568279
}

# Example code using client libraries

# Install the client using the following command:
# pip install --upgrade nopecha

import nopecha
nopecha.api_key = 'YOUR_API_KEY'

# Get the current balance
balance = nopecha.Balance.get()

# Print the current balance
print(balance)
// Install the client using the following command:
// npm i nopecha

const { Configuration, NopeCHAApi } = require('nopecha');

const configuration = new Configuration({
    apiKey: 'YOUR_API_KEY',
});
const nopecha = new NopeCHAApi(configuration);

(async () => {
    // Get the current balance
    const balance = await nopecha.getBalance();

    // Print the current balance
    console.log(balance);
})();