Verify email addresses in real time. Check deliverability, detect disposable and catch-all domains, and clean your email lists before sending.
Powered by Enrow -- real-time SMTP-level verification with high accuracy on catch-all domains.
Add the package with Swift Package Manager:
dependencies: [
.package(url: "https://github.com/EnrowAPI/email-verifier-swift", from: "1.0.0"),
]Requires Swift 5.9+. Zero dependencies -- uses only Foundation URLSession.
import EmailVerifier
let verification = try await EmailVerifier.verify(
apiKey: "your_api_key",
email: "tcook@apple.com"
)
let result = try await EmailVerifier.getResult(apiKey: "your_api_key", id: verification.id)
print(result.email) // tcook@apple.com
print(result.qualification) // validverify returns a verification ID. The verification runs asynchronously on the server -- call getResult to retrieve the result once it is ready. You can also pass a webhook URL to get notified automatically.
let batch = try await EmailVerifier.verifyBulk(
apiKey: "your_api_key",
verifications: [
BulkVerification(email: "tcook@apple.com"),
BulkVerification(email: "satya@microsoft.com"),
BulkVerification(email: "jensen@nvidia.com"),
]
)
// batch.batchId, batch.total, batch.status
let results = try await EmailVerifier.getBulkResults(apiKey: "your_api_key", id: batch.batchId)
// results.results -- array of VerificationResultUp to 5,000 verifications per batch. Pass a webhook URL to get notified when the batch completes.
do {
let _ = try await EmailVerifier.verify(
apiKey: "bad_key",
email: "test@test.com"
)
} catch let error as EmailVerifierError {
print(error.statusCode) // HTTP status code
print(error.message) // API error description
// Common errors:
// - "Invalid or missing API key" (401)
// - "Your credit balance is insufficient." (402)
// - "Rate limit exceeded" (429)
}Register at app.enrow.io to get your API key. You get 50 free credits (= 200 verifications) with no credit card required. Each verification costs 0.25 credits.
Paid plans start at $17/mo for 1,000 credits up to $497/mo for 100,000 credits. See pricing.
- Enrow API documentation
- Full Enrow SDK -- includes email finder, phone finderand more
MIT -- see LICENSE for details.