SDK BillionVerify Get an API key

sdks

SDKs

By BillionVerify Team · Last reviewed

BillionVerify provides SDKs for Node.js, TypeScript, Python, Go, PHP and Java. They wrap the REST API so you can add email verification to an application without writing the HTTP calls yourself.

Available SDKs

The REST API is the source of truth. The SDKs below are open-source reference implementations, so if an SDK differs from the API reference, follow the API. You can read, copy or adapt the code, or call the API directly from any language.

Language Source code Docs
Node.js billionverify-node Node.js SDK
TypeScript billionverify-node TypeScript SDK
Python billionverify-python Python SDK
Go billionverify-go Go SDK
PHP billionverify-php PHP SDK
Java billionverify-java Java SDK

Why Use Our SDKs?

Simplified Integration

The SDKs handle the HTTP requests, the API key header, response parsing and error mapping for you.

// Without SDK
const response = await fetch('https://api.billionverify.com/v1/verify/single', {
  method: 'POST',
  headers: {
    'BV-API-KEY': apiKey,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({ email: 'user@example.com' }),
});
const result = await response.json();

// With SDK
const result = await client.verify('user@example.com');

To see a result before you install anything, use the email address checker with one address.

Type Safety

The TypeScript, Go and Java SDKs have typed responses, and the Python SDK uses typed dataclasses. The PHP SDK returns plain arrays.

Automatic Retries

Every SDK retries 429, 500, 502 and 503 responses with exponential backoff. The retries setting is the maximum number of attempts, including the first one.

Rate Limit Handling

On a 429 response the SDKs wait for the Retry-After header (or back off exponentially) and retry. When the attempts run out they raise a rate limit error that carries the retry-after value.

Common Features

All our SDKs provide:

Feature Description
Single Verification Verify individual email addresses
Bulk Verification Verify up to 50 emails per request, or upload a file for an asynchronous job
Credit Management Check the credit balance
Webhook Support Create, list and delete webhooks
Error Handling A separate error type for each HTTP status
Retry Logic Automatic retry for 429, 500, 502 and 503 responses
Timeout Configuration Configurable request timeout

The webhook signature helper in each SDK signs the request body only, while the API also signs the timestamp. See the webhook section of each SDK page for a working verification snippet.

For a manual look at one address, BillionVerify’s mailbox verifier returns the same kind of status and flags.

Quick Comparison

Language Package Manager Async Support Examples in the docs
Node.js npm / yarn Promise-based Express, Fastify, Next.js
Python pip Sync and async clients Django, Flask, FastAPI
TypeScript npm / yarn Promise-based Next.js, NestJS, Express
Go go modules Blocking calls with context, use goroutines Gin, Echo, Fiber
PHP Composer None Laravel
Java Build from source Blocking calls, wrap in CompletableFuture Spring Boot

Installation Overview

npm install billionverify-sdk
# or
yarn add billionverify-sdk
pip install billionverify
go get github.com/BillionVerify/billionverify-go
composer require billionverify/billionverify-php:dev-main
git clone https://github.com/BillionVerify/billionverify-java.git
cd billionverify-java
mvn install
<dependency>
  <groupId>io.github.billionverifier</groupId>
  <artifactId>billionverify-java</artifactId>
  <version>1.0.0</version>
</dependency>

Getting Started

  1. Get your API Key - Sign up at BillionVerify and get your API key from the dashboard
  2. Install the SDK - Use your language’s package manager
  3. Initialize the client - Pass your API key to the constructor (the SDKs do not read environment variables themselves)
  4. Start verifying - Call the verify method

Need Help?