The `zerobouncesdk` is a Python library that provides an easy-to-use interface for interacting with the ZeroBounce email verification API. It allows developers to validate email addresses, check API usage, retrieve credit balance, and perform bulk email validation. The current version is 2.2.0, and it features a regular release cadence with frequent updates and occasional major versions that introduce new features and improvements.
pip install zerobouncesdkVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to initialize the ZeroBounce SDK with your API key, check your remaining credits, and perform a single email validation. It uses environment variables for secure API key handling and includes basic error checking.
Review the official ZeroBounce API documentation and the SDK's changelog for `v2.0.0` to identify specific changes. Test your integration thoroughly after upgrading to ensure compatibility with new API responses and method behaviors.
Always store your API key securely, preferably using environment variables (e.g., `os.environ.get('ZEROBOUNCE_API_KEY')`), or a secure configuration management system. Avoid hardcoding credentials.Implement robust error handling, including `try-except ZBException` blocks, and check the `success` field and `message` or `errors` fields in API responses. Consider implementing rate limiting or exponential backoff for bulk operations.
Run `pip install zerobouncesdk` to install the library.
Verify your ZeroBounce API key in your ZeroBounce account dashboard and ensure it is correctly passed to the `ZeroBounce` constructor. Check for typos or leading/trailing spaces.
Review the specific method's documentation (e.g., `validate(email, ip_address)`) to ensure all required arguments are provided and correctly formatted.
No dependency data recorded yet.