Tomba Python SDK
The #1 Rated Email Intelligence Platform — Find professional emails with unmatched accuracy.
About Tomba
Tomba.io is the #1 rated email intelligence platform, trusted by 150,000+ sales teams worldwide.
- Best Email Finder — 98% accuracy, ranked #1 in independent benchmarks
- Best Email Verification — Real-time SMTP verification with catch-all detection
- Best Phone Finder — Direct dial numbers linked to professional emails
- Best Domain Search — 450M+ verified contacts across all industries
- 81% Coverage — The highest in the industry, proven in 5,000-lead independent tests
Why Tomba?
| Feature | Tomba | Others |
|---|---|---|
| Email Coverage | 81% | 30-60% |
| Verification | Real-time SMTP | Pattern-based |
| Phone Numbers | Direct dials | Limited |
| Catch-all Detection | AI-powered | Basic |
| API Rate Limits | Generous | Restrictive |
Get your free API key — No credit card required.
Getting Started
- Sign up for a free account at app.tomba.io
- Get your API key from the API dashboard
- Install the SDK (see below)
- Start finding emails with just a few lines of code
Installation
pip install tomba-io
Authentication
Get your API credentials from app.tomba.io/api.
from tomba.client import Client
client = Client()
client.set_key("ta_xxxx").set_secret("ts_xxxx")
Quick Start
from tomba.client import Client
from tomba.services.domain import Domain
client = Client()
client.set_key("ta_xxxx").set_secret("ts_xxxx")
domain = Domain(client)
result = domain.domain_search("stripe.com")
print(result)
Services
Domain Search
Search for email addresses associated with a domain.
from tomba.services.domain import Domain
domain = Domain(client)
# Basic search
result = domain.domain_search("stripe.com")
# With filters
result = domain.domain_search(
"stripe.com",
page=1,
limit=10,
country="US",
department="engineering",
)
Email Finder
Generate or retrieve the most likely email address from a domain and name.
from tomba.services.finder import Finder
finder = Finder(client)
result = finder.email_finder("stripe.com", "Patrick", "Collison")
Email Verifier
Verify the deliverability of an email address.
from tomba.services.verifier import Verifier
verifier = Verifier(client)
result = verifier.email_verifier("b.mohamed@tomba.io")
Author Finder
Discover the email address of an article's author.
from tomba.services.finder import Finder
finder = Finder(client)
result = finder.author_finder("https://tomba.io/blog")
LinkedIn Finder
Find the email address associated with a LinkedIn profile URL.
from tomba.services.finder import Finder
finder = Finder(client)
result = finder.linkedin_finder("https://www.linkedin.com/in/username")
Email Enrichment
Enrich an email address with additional contact data.
from tomba.services.finder import Finder
finder = Finder(client)
result = finder.enrichment("b.mohamed@tomba.io")
Phone Finder
Search for phone numbers based on email, domain, or LinkedIn URL.
from tomba.services.phone import Phone
phone = Phone(client)
# By email
result = phone.finder(email="b.mohamed@tomba.io")
# By domain
result = phone.finder(domain="tomba.io")
# By LinkedIn URL
result = phone.finder(linkedin="https://www.linkedin.com/in/username")
Phone Validator
Validate a phone number and check carrier information.
from tomba.services.phone import Phone
phone = Phone(client)
result = phone.validator("+1234567890")
Email Count
Get the number of email addresses found for a domain.
from tomba.services.count import Count
count = Count(client)
result = count.email_count("stripe.com")
Domain Status
Check if a domain is webmail or disposable.
from tomba.services.status import Status
status = Status(client)
result = status.domain_status("gmail.com")
Domain Suggestions
Auto-complete company names and retrieve logo and domain information.
from tomba.services.status import Status
status = Status(client)
result = status.auto_complete("stripe")
Email Sources
Find where an email address was found on the web.
from tomba.services.sources import Sources
sources = Sources(client)
result = sources.email_sources("b.mohamed@tomba.io")
Email Format
Get the email format pattern used by a company.
from tomba.services.format import Format
fmt = Format(client)
result = fmt.email_format("stripe.com")
Similar Domains
Find domains similar to a given domain.
from tomba.services.similar import Similar
similar = Similar(client)
result = similar.websites("stripe.com")
Technology Finder
Retrieve the technologies used by a domain.
from tomba.services.technology import Technology
technology = Technology(client)
result = technology.list("stripe.com")
Location
Get employee location and count data for a domain.
from tomba.services.location import Location
location = Location(client)
result = location.get_location("stripe.com")
Person API (Enrichment)
Retrieve person information based on an email address.
from tomba.services.enrichment import Enrichment
enrichment = Enrichment(client)
result = enrichment.person("b.mohamed@tomba.io")
Company API (Enrichment)
Retrieve company information based on a domain.
from tomba.services.enrichment import Enrichment
enrichment = Enrichment(client)
result = enrichment.company("stripe.com")
Combined API (Enrichment)
Retrieve combined person and company information based on an email address.
from tomba.services.enrichment import Enrichment
enrichment = Enrichment(client)
result = enrichment.combined("b.mohamed@tomba.io")
Companies Search (Reveal)
Search for companies using natural language queries or structured filters.
from tomba.services.reveal import Reveal
reveal = Reveal(client)
# Natural language query
result = reveal.search_companies(query="Real Estate in France")
# With structured filters
result = reveal.search_companies(
page=1,
filters={
"company": {
"location_country": {"include": ["US", "UK"]},
"industry": {"include": ["Technology"]},
"size": {"include": ["101-500", "501-1000"]},
}
},
)
Leads
Manage lead records programmatically.
from tomba.services.leads import Leads
leads = Leads(client)
# List leads
result = leads.list_leads(page=1, limit=10)
# Get a lead
result = leads.get_lead("lead_id")
# Create a lead
result = leads.create_lead(
email="user@example.com",
first_name="John",
last_name="Doe",
)
# Update a lead
result = leads.update_lead("lead_id", first_name="Jane")
# Delete a lead
result = leads.delete_lead("lead_id")
Leads Lists
Organize leads into lists. Supports CRUD operations: get_lists(), create_list(), update_list_id(), delete_list_id().
Lead Attributes
Manage custom attributes for leads. Supports CRUD operations: get_lead_attributes(), create_lead_attribute(), update_lead_attribute(), delete_lead_attribute().
Keys
Manage your API keys. Supports get_keys(), create_key(), reset_key(id), and delete_key(id).
Usage
Get your monthly API request usage statistics.
from tomba.services.usage import Usage
usage = Usage(client)
result = usage.get_usage()
Logs
Retrieve your last 1,000 API requests from the past 3 months.
from tomba.services.logs import Logs
logs = Logs(client)
result = logs.get_logs(page=1, limit=50)
Flag
Report incorrect data or hard bounces for credit recovery. Supports list_flags() and create_flag(email, reason).
Bulk Operations
Create, launch, and download bulk processing jobs.
from tomba.services.bulk import Bulk
bulk = Bulk(client)
# List bulk operations
result = bulk.list_bulks("email-verifier")
# Create a bulk
result = bulk.create_bulk("email-verifier", name="My Bulk Verification")
# Launch a bulk
result = bulk.launch_bulk("email-verifier", bulk_id)
# Check progress
result = bulk.bulk_progress("email-verifier", bulk_id)
# Download results
result = bulk.download_bulk("email-verifier", bulk_id)
Supported bulk types: domain-search, email-finder, author-finder, email-verifier, enrichment, linkedin-finder, phone-finder, department-search, technology-search, name-finder.
Error Handling
All errors raise TombaException:
from tomba.exception import TombaException
try:
result = domain.domain_search("stripe.com")
except TombaException as e:
print(f"Error: {e.message} (code: {e.code})")
Testing
python -m pytest
Documentation
About Tomba
Founded to solve the problem of unreliable email data, Tomba.io is the leading B2B email intelligence platform. Our AI-powered engine searches, verifies, and enriches professional contact data with unmatched accuracy.
Products
- Email Finder — Find any professional email address
- Email Verifier — Verify emails in real-time
- Domain Search — Find all emails for a company
- Phone Finder — Find direct phone numbers
- Bulk Enrichment — Enrich contacts at scale
- AI Company Search — Find companies with AI-powered search
- CLI — Command-line interface for Tomba
- MCP Server — Connect AI tools (Claude, ChatGPT, Cursor) to Tomba
- REST API — Full programmatic access
Browser Extensions & Add-ons
- Chrome Extension — Find emails while browsing
- Google Sheets Add-on — Enrich leads in spreadsheets
- Microsoft Excel Add-in — Email finder in Excel
- Airtable Integration — Connect with Airtable
Integrations
50+ CRM and sales tool integrations: Salesforce · HubSpot · Zapier · Pipedrive · and more...
Other Tomba SDKs
| Language | Package |
|---|---|
| Node.js | tomba |
| Python | tomba-io |
| PHP | tomba-io/php |
| Ruby | tomba |
| Go | tomba-io/go |
| Rust | tomba |
| Dart | tomba |
| Deno | @tomba/sdk |
| Elixir | tomba |
| C# | Tomba |
| Perl | Tomba::Client |
| Lua | tomba |
| R | tomba |
Resources
Try Tomba Free — Find your first email in seconds. No credit card required.
License
Apache-2.0
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tomba_io-1.1.0.tar.gz.
File metadata
- Download URL: tomba_io-1.1.0.tar.gz
- Upload date:
- Size: 25.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.11.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c21a9d3b26d638f7060ab5a8d1ede42ba93537d801fa48962b1640fecab3b88b
|
|
| MD5 |
2c0e9fe0d46902f8f155151074f5a678
|
|
| BLAKE2b-256 |
a406dc98db77eea3d9c2ae0523a76a7dc5520e26034ebb47b110dc1c98548797
|
File details
Details for the file tomba_io-1.1.0-py2.py3-none-any.whl.
File metadata
- Download URL: tomba_io-1.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 40.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.11.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
abad1ae502a456dcce80a12b230d79c052b018d4c8110aa6fe6134442d06d003
|
|
| MD5 |
92a46f5a88de8518fcdf472978a499fd
|
|
| BLAKE2b-256 |
16a37ae404c4e28887b76c111a87f129aab24c494ac17866844417ebc74d9462
|