import requests

def get_iban_info(iban, api_key):
    url = f"https://shabanic.ir/api/v1/iban_info?iban={iban}"
    headers = {
        "SHABANIC-API-KEY": api_key
    }

    response = requests.post(url, headers=headers)

    if response.status_code == 200:
        return response.json()
    else:
        return {
            "error": True,
            "status": response.status_code,
            "message": response.text
        }

# استفاده
iban = "شماره شبای مورد نظر را اینجا قرار دهید"
api_key = "کلید Api دریافت شده از پنل شبانیک را اینجا قراردهید"

result = get_iban_info(iban, api_key)
print(result)
