getting-started
Quickstart
By BillionVerify Team · Last reviewed
This guide walks you through verifying your first email address with the BillionVerify API.
Prerequisites
Before you begin, you’ll need:
- A BillionVerify account
- Familiarity with HTTP requests or one of the supported SDK languages
Step 1: Create an Account
- Create a BillionVerify account
- Sign up and confirm your email address
Step 2: Get Your API Key
- Log in to your BillionVerify dashboard
- Navigate to the API Keys section
- Click Create API Key
- Give your key a descriptive name (e.g., “Development”, “Production”)
- Copy your API key and store it securely
Never put your API key in client-side code or a public repository. Store it in an environment variable.
Step 3: Verify Your First Email
Choose your preferred method to make your first verification request:
curl -X POST https://api.billionverify.com/v1/verify/single \
-H "BV-API-KEY: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"email": "test@example.com"}'
const response = await fetch('https://api.billionverify.com/v1/verify/single', {
method: 'POST',
headers: {
'BV-API-KEY': process.env.BV_API_KEY,
'Content-Type': 'application/json',
},
body: JSON.stringify({
email: 'test@example.com',
}),
});
const result = await response.json();
console.log(result);
import os
import requests
response = requests.post(
'https://api.billionverify.com/v1/verify/single',
headers={
'BV-API-KEY': os.environ['BV_API_KEY'],
'Content-Type': 'application/json',
},
json={'email': 'test@example.com'}
)
result = response.json()
print(result)
package main
import (
"bytes"
"encoding/json"
"fmt"
"net/http"
"os"
)
func main() {
data := map[string]string{"email": "test@example.com"}
body, _ := json.Marshal(data)
req, _ := http.NewRequest("POST",
"https://api.billionverify.com/v1/verify/single",
bytes.NewBuffer(body))
req.Header.Set("BV-API-KEY", os.Getenv("BV_API_KEY"))
req.Header.Set("Content-Type", "application/json")
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
var result map[string]interface{}
json.NewDecoder(resp.Body).Decode(&result)
fmt.Println(result)
}
<?php
$apiKey = getenv('BV_API_KEY');
$ch = curl_init('https://api.billionverify.com/v1/verify/single');
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'BV-API-KEY: ' . $apiKey,
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => json_encode(['email' => 'test@example.com']),
]);
$response = curl_exec($ch);
curl_close($ch);
$result = json_decode($response, true);
print_r($result);
Step 4: Understand the Response
A successful verification returns a response like this:
{
"success": true,
"code": "0",
"message": "Success",
"data": {
"email": "test@example.com",
"status": "valid",
"score": 1,
"is_deliverable": true,
"is_disposable": false,
"is_catchall": false,
"is_role": false,
"is_free": false,
"domain": "example.com",
"mx_records": ["mail.example.com"],
"check_smtp": true,
"smtp_result": "deliverable",
"reason": "smtp_deliverable",
"response_time": 250,
"credits_used": 1,
"verification_mode": "smtp",
"retryable": false,
"smtputf8": false
}
}
Key Response Fields
| Field | Type | Description |
|---|---|---|
status |
string | Overall status: valid, invalid, unknown, catchall, role, disposable (or risky on results created before 2026-09-11) |
is_deliverable |
boolean | Whether the verification confirmed that the address can receive mail |
is_disposable |
boolean | Whether it is a temporary/disposable email |
is_role |
boolean | Whether it is a role-based address (info@, support@) |
is_catchall |
boolean | Whether the domain accepts all addresses |
score |
number | Quality score from 0 to 1. It is a heuristic, not a probability. Branch on status, not on score |
reason |
string | Why the address got this status. See Verification Reasons |
credits_used |
integer | Credits charged for this request |
Status Values Explained
| Status | Meaning | Recommended Action |
|---|---|---|
valid |
Email exists and can receive messages | Safe to send |
invalid |
Email doesn’t exist or can’t receive messages | Remove from list |
unknown |
Deliverability could not be confirmed | Retry later or use caution |
catchall |
Domain accepts all addresses | Monitor for bounces |
role |
Role-based email (info@, support@) | Usually deliverable |
disposable |
Temporary email service | Usually remove |
unknown results and addresses with invalid syntax are not charged.
Before you run any code, the free email checker lets you look at a real result for one address, with no account needed.
Step 5: Use an SDK (Recommended)
For easier integration, install one of our official SDKs:
npm install billionverify-sdk
import { BillionVerify } from 'billionverify-sdk';
const client = new BillionVerify({
apiKey: process.env.BV_API_KEY,
});
const result = await client.verify('test@example.com');
console.log(result.status); // 'valid'
pip install billionverify
from billionverify import BillionVerify
import os
client = BillionVerify(api_key=os.environ['BV_API_KEY'])
result = client.verify('test@example.com')
print(result.status) # 'valid'
go get github.com/BillionVerify/billionverify-go
import billionverify "github.com/BillionVerify/billionverify-go"
client, err := billionverify.NewClient(billionverify.Config{
APIKey: os.Getenv("BV_API_KEY"),
})
if err != nil {
log.Fatal(err)
}
result, err := client.Verify(ctx, "test@example.com", nil)
fmt.Println(result.Status) // "valid"
composer require billionverify/billionverify-php:dev-main
use BillionVerify\Client;
$client = new Client(getenv('BV_API_KEY'));
$result = $client->verify('test@example.com');
echo $result['data']['status']; // 'valid'
What’s Next?
Now that you’ve verified your first email, explore more features:
- API Reference: Complete API documentation with all endpoints
- SDK Documentation: Detailed guides for each SDK
- Verification Reasons: What each
reasonvalue means - AI Integration: Use the API from Claude, ChatGPT and other AI tools
Common Use Cases
Form Validation
Verify emails in real time during user registration. For a free check that only detects disposable domains, use /verify/disposable:
const onEmailBlur = async (email) => {
const result = await client.verify(email);
if (result.status === 'invalid') {
showError('Please enter a valid email');
} else if (result.is_disposable) {
showError('Disposable emails are not allowed');
}
};
To prove a mailbox can accept mail by hand before you build the form, run one address through the free single-address verifier first.
List Cleaning
Check each address before sending a campaign. For long lists, upload a file instead of looping over single requests:
for email in email_list:
result = client.verify(email)
if result.status == 'valid':
clean_list.append(email)
else:
remove_list.append(email)
Lead Qualification
Combine result fields into your own lead score:
const qualifyLead = (result) => {
let score = result.score * 50; // Base score
if (!result.is_free) score += 20; // Business email
if (!result.is_role) score += 15; // Personal address
if (!result.is_disposable) score += 15; // Permanent email
return score;
};
Need Help?
- Contact support@billionverify.com for assistance