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
One call with the TypeScript SDK
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 TypeScriptnpm install @email-validation/sdkVersion 1.1.0
  • PublishedPythonemail-validation-sdk on PyPIVersion 1.1.0
  • PublishedGogo get email-validation.org/go/emailvalidationVersion 1.1.0
  • PublishedPHPcomposer require email-validation/sdkVersion 1.1.0
  • PublishedRubybundle add email-validation-sdkVersion 1.1.0
  • Not published yetJavaComing soon to Maven Central
  • PublishedC# and .NETdotnet add package EmailValidation.SdkVersion 1.1.0
  • PublishedRustcargo add email-validation-sdkVersion 1.1.0
  • PublishedSwiftemail-validation-swift on 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
LanguagePackageRuns on
JavaScript and TypeScript@email-validation/sdk (npm)Node.js 24+ (tested on Node.js 24); zero dependencies, only standard fetch and Web Crypto
Pythonemail-validation-sdk (PyPI)Python 3.11+ (tested on Python 3.14 and 3.15), sync and async clients on httpx
Goemail-validation.org/go/emailvalidation (Go module proxy)Go 1.22+ (tested on Go 1.27); standard library only
PHPemail-validation/sdk (Packagist)PHP 8.1+ (tested on PHP 8.5); only ext-curl and ext-json
Rubyemail-validation-sdk (RubyGems)Ruby 3.2+ (tested on Ruby 4.0); standard library only
Javaorg.email-validation:email-validation-sdk (Maven Central), not published yetJava 17+ (tested on OpenJDK 27), sync and CompletableFuture methods; one dependency (Jackson)
C# and .NETEmailValidation.Sdk (NuGet).NET 8 and .NET 10 (tested on .NET 10), async with CancellationToken; no dependencies
Rustemail-validation-sdk (crates.io)Rust (tested on Rust 1.99), async on Tokio with an optional blocking client
Swiftemail-validation-swift (GitHub)Swift 6, async/await; macOS 12+, iOS 15+, tvOS 15+, watchOS 8+ (tested on macOS)
Kotlinorg.email-validation:email-validation-sdk-kotlin (Maven Central), not published yetKotlin 2.2+ on JVM 11+ (tested on JVM 27), coroutines (suspend functions)
Dartemail_validation_sdk (pub.dev), not published yetDart 3.3+, for server-side Dart (tested on Dart 3.14 on the VM); no dependencies
Elixiremail_validation_sdk (Hex), not published yetElixir 1.18+ on Erlang/OTP 25+ (tested on Elixir 1.20.5, OTP 29); no dependencies
Clibemail_validation (a package manager), not published yetC11 with a C++17 wrapper; POSIX; the built-in transport uses the system libcurl (tested with Apple clang 21 on macOS)
PerlEmailValidation::SDK (CPAN), not published yetPerl 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 Authorization header.
  • Retries for 429 and 503 answers, honoring Retry-After and 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 code and the request_id; several codes share a kind (a 429 is a rate-limit error for rate_limited, abuse_throttled and key_daily_cap alike), so branch on code for 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 Authorization header 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.org by 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.

Updated · Maintained by: Email Validation LLC

Need help? Contact support, or ask the help chat. Something wrong or missing on this page? Tell us