The official Python SDK for the NeverBounce API (version 4) provides a streamlined interface for email verification. It supports both single email checks and bulk list processing, aiming to improve email deliverability and sender reputation. The library is actively maintained, with the current version being 4.3.0, and includes bug fixes and documentation updates.
pip install neverbounce_sdkVerified import paths — ran on the pinned version, not inferred.
Initialize the NeverBounce client with your V4 API key, then perform common operations like fetching account information or verifying a single email address. Ensure your API key is prefixed with `secret_`.
Generate a new V4 API key from the NeverBounce dashboard, which will start with `secret_`.
Review the `result` codes, specifically `accept_all` (numeric code 3), and adjust your sending strategy based on your email provider's bounce rate tolerance and your dedicated email server setup.
Migrate your application to Python 3.6 or a newer supported Python version.
Always use the NeverBounce API key on your backend servers. For client-side verification, use the official NeverBounce JavaScript Widget, which handles API key security.
Ensure you are using a NeverBounce V4 API key, which begins with `secret_`. Generate a new key from your NeverBounce account if needed.
Install the package using `pip install neverbounce_sdk` and ensure your import statement is `import neverbounce_sdk`.
Check your internet connection, firewall settings, and ensure the NeverBounce API is reachable. You can also adjust the `timeout` parameter when initializing the client (e.g., `client = neverbounce_sdk.client(api_key=api_key, timeout=60)` for a longer timeout).
Implement robust error handling around API calls. Check for `neverbounce_sdk.nb_error` exceptions and inspect the raw response object if available to debug the actual API response content in case of unexpected keys.