Official SDKs
SDKs
Official SDKs wrap the REST API with typed results, typed errors, automatic retries for rate limits and a webhook signature helper. Each one covers the core verification workflows of the REST API: single checks, credits, usage, service status and bulk jobs. All fourteen follow one specification, so the same call behaves the same way in every language.
- Languages
- 14
- Published
- 8
- Licence
- MIT
import { EmailValidation, EmailValidationError, InsufficientCreditsError } from '@email-validation/sdk';
const ev = new EmailValidation({ apiKey: process.env.EV_API_KEY! });
try {
const result = await ev.validate('accepted@sandbox.email-validation.org');
console.log(result.status, result.reason, result.action); // valid accepted send
} catch (err) {
if (err instanceof InsufficientCreditsError) console.error('buy credits; nothing was charged');
else if (err instanceof EmailValidationError) console.error(err.code, err.requestId);
else throw err;
}Languages
14 official SDKs, 8 published
- PublishedJavaScript and TypeScript
npm install @email-validation/sdkVersion 1.1.0 - PublishedPython
email-validation-sdkon PyPIVersion 1.1.0 - PublishedGo
go get email-validation.org/go/emailvalidationVersion 1.1.0 - PublishedPHP
composer require email-validation/sdkVersion 1.1.0 - PublishedRuby
bundle add email-validation-sdkVersion 1.1.0 - Not published yetJavaComing soon to Maven Central
- PublishedC# and .NET
dotnet add package EmailValidation.SdkVersion 1.1.0 - PublishedRust
cargo add email-validation-sdkVersion 1.1.0 - PublishedSwift
email-validation-swifton GitHubVersion 1.1.0 - Not published yetKotlinComing soon to Maven Central
- Not published yetDartComing soon to pub.dev
- Not published yetElixirComing soon to Hex
- Not published yetCComing soon to a package manager
- Not published yetPerlComing soon to CPAN
The names and logos of other companies and projects belong to their owners; showing them here does not mean they endorse or partner with us. Logo credits: PHP by Colin Viebrock (CC BY-SA 4.0), Ruby © 2006 Yukihiro Matsumoto (CC BY-SA 2.5).
Not all published yet. The packages marked "not published yet" are not on their registries yet: each page shows its install command once the package is published. The SDKs are complete and tested. Until then, the code samples call the API in 12 languages.
Package and runtime of each SDK
| Language | Package | Runs on |
|---|---|---|
| JavaScript and TypeScript | @email-validation/sdk (npm) | Node.js 24+ (tested on Node.js 24); zero dependencies, only standard fetch and Web Crypto |
| Python | email-validation-sdk (PyPI) | Python 3.11+ (tested on Python 3.14 and 3.15), sync and async clients on httpx |
| Go | email-validation.org/go/emailvalidation (Go module proxy) | Go 1.22+ (tested on Go 1.27); standard library only |
| PHP | email-validation/sdk (Packagist) | PHP 8.1+ (tested on PHP 8.5); only ext-curl and ext-json |
| Ruby | email-validation-sdk (RubyGems) | Ruby 3.2+ (tested on Ruby 4.0); standard library only |
| Java | org.email-validation:email-validation-sdk (Maven Central), not published yet | Java 17+ (tested on OpenJDK 27), sync and CompletableFuture methods; one dependency (Jackson) |
| C# and .NET | EmailValidation.Sdk (NuGet) | .NET 8 and .NET 10 (tested on .NET 10), async with CancellationToken; no dependencies |
| Rust | email-validation-sdk (crates.io) | Rust (tested on Rust 1.99), async on Tokio with an optional blocking client |
| Swift | email-validation-swift (GitHub) | Swift 6, async/await; macOS 12+, iOS 15+, tvOS 15+, watchOS 8+ (tested on macOS) |
| Kotlin | org.email-validation:email-validation-sdk-kotlin (Maven Central), not published yet | Kotlin 2.2+ on JVM 11+ (tested on JVM 27), coroutines (suspend functions) |
| Dart | email_validation_sdk (pub.dev), not published yet | Dart 3.3+, for server-side Dart (tested on Dart 3.14 on the VM); no dependencies |
| Elixir | email_validation_sdk (Hex), not published yet | Elixir 1.18+ on Erlang/OTP 25+ (tested on Elixir 1.20.5, OTP 29); no dependencies |
| C | libemail_validation (a package manager), not published yet | C11 with a C++17 wrapper; POSIX; the built-in transport uses the system libcurl (tested with Apple clang 21 on macOS) |
| Perl | EmailValidation::SDK (CPAN), not published yet | Perl 5.14+, core modules only; HTTPS needs IO::Socket::SSL and Net::SSLeay (tested on Perl 5.34.1) |
What the SDKs do for you
- Authentication with your key in the
Authorizationheader. - Retries for
429and503answers, honoringRetry-Afterand backing off with jitter. Validations are not retried after a network failure, because a check that reached us may already have been charged; reads are. - Typed errors by HTTP status: invalid request, authentication, insufficient credits, permission, not found, conflict, rate limit, unavailable, server and connection errors. Each carries the API's error
codeand therequest_id; several codes share a kind (a429is a rate-limit error forrate_limited,abuse_throttledandkey_daily_capalike), so branch oncodefor the exact case. - Bulk helpers to create a job from a list or a file, wait for it and download the results.
- Webhook verification for deliveries signed with the Standard Webhooks scheme.
- The vocabulary of statuses, reasons and actions as constants, kept equal to the API by tests.
- Your key stays private: it is sent only in the
Authorizationheader and never appears in an error message or in the printed form of a client or request. - EU data residency: every SDK calls
https://api.email-validation.orgby default; pass the EU endpoint,https://api-eu.email-validation.org, as the base URL option, or the SDK's constant for it (in JavaScript from 1.0.2 on; EU data residency).
Other languages
The API is plain HTTPS and JSON, described by an OpenAPI 3.1 document you can feed to a client generator. Ready-to-run examples for curl and every SDK language are on code samples.