Installation
import { Client, Domain, Finder, Verifier } from "jsr:@tomba/sdk";
Usage
import {
Client,
Domain,
Finder,
Verifier,
Count,
Sources,
Format,
Status,
Similar,
Technology,
Location,
Phone,
Enrichment,
Reveal,
Flag,
Keys,
Leads,
LeadsLists,
LeadsAttributes,
Account,
Usage,
Logs,
} from "jsr:@tomba/sdk";
const client = new Client();
client.setKey("ta_xxxx").setSecret("ts_xxxx");
// Domain Search
const domain = new Domain(client);
const res = await domain.domainSearch("stripe.com");
// Email Finder
const finder = new Finder(client);
const res = await finder.emailFinder("stripe.com", "John", "Doe");
// Email Verifier
const verifier = new Verifier(client);
const res = await verifier.emailVerifier("m@wordpress.org");
Examples
Account
const account = new Account(client);
const res = await account.getAccount();
Email Count
const count = new Count(client);
const res = await count.emailCount("stripe.com");
Email Sources
const sources = new Sources(client);
const res = await sources.emailSources("m@wordpress.org");
Email Format
const format = new Format(client);
const res = await format.emailFormat("stripe.com");
Domain Status
const status = new Status(client);
const res = await status.domainStatus("stripe.com");
Autocomplete
const status = new Status(client);
const res = await status.autoComplete("stripe");
Similar Domains
const similar = new Similar(client);
const res = await similar.websites("stripe.com");
Technology
const technology = new Technology(client);
const res = await technology.list("stripe.com");
Location
const location = new Location(client);
const res = await location.getLocation("stripe.com");
Author Finder
const finder = new Finder(client);
const res = await finder.authorFinder("https://example.com/blog/post");
LinkedIn Finder
const finder = new Finder(client);
const res = await finder.linkedinFinder("https://linkedin.com/in/johndoe");
Email Enrichment
const finder = new Finder(client);
const res = await finder.emailEnrichment("m@wordpress.org");
Phone Finder
const phone = new Phone(client);
const res = await phone.finder("m@wordpress.org");
Phone Validator
const phone = new Phone(client);
const res = await phone.validator("+1234567890");
Enrichment
Person
const enrichment = new Enrichment(client);
const res = await enrichment.person("m@wordpress.org");
Company
const enrichment = new Enrichment(client);
const res = await enrichment.company("stripe.com");
Combined
const enrichment = new Enrichment(client);
const res = await enrichment.combined("m@wordpress.org");
Companies Search (Reveal)
const reveal = new Reveal(client);
const res = await reveal.searchCompanies("stripe");
Flag
List Flags
const flag = new Flag(client);
const res = await flag.listFlags();
Create Flag
const flag = new Flag(client);
const res = await flag.createFlag("email", "hard_bounce");
Keys Management
const keys = new Keys(client);
const res = await keys.getKeys();
const created = await keys.createKey();
const deleted = await keys.deleteKey("key_id");
const reset = await keys.resetKey("key_id");
Leads Management
const leads = new Leads(client);
const res = await leads.listLeads();
const created = await leads.createLead("m@wordpress.org", 1);
const updated = await leads.updateLead("lead_id");
const deleted = await leads.deleteLead("lead_id");
Lead Lists Management
const lists = new LeadsLists(client);
const res = await lists.getLists();
const created = await lists.createList("My List");
const updated = await lists.updateList("list_id", "Updated Name");
const deleted = await lists.deleteList("list_id");
Lead Attributes Management
const attrs = new LeadsAttributes(client);
const res = await attrs.getLeadAttributes();
const created = await attrs.createLeadAttribute("company_size", "string");
const updated = await attrs.updateLeadAttribute("attr_id");
const deleted = await attrs.deleteLeadAttribute("attr_id");
Activity Logs
const logsService = new Logs(client);
const res = await logsService.getLogs();
Usage Statistics
const usageService = new Usage(client);
const res = await usageService.getUsage();
Last modified on