start for free
start for free

<- playbooks / 01 · visitor identificationAPI + MCP

Identify B2B website visitors IP to company to ICP contacts

Give MoltSets a visitor's IP address and you get back the company behind it, that company's firmographics, and the people there who match your ICP. All on the $27/month plan.

steps
4
API tools
3
per month
$27

This guide starts from an IP address you already have. It takes that IP to a company, checks the company against your ICP, and finds the right people there.

Before you start

Run through this list. If anything shows a warning, fix it before step 1 or your first call will fail.

~/visitor-idzsh

$ moltsets doctor

checking your setup…

  • [ ok ] account on a paid plan
  • [ ok ] API key from app.moltsets.com
  • [ ok ] visitor IPs (bots and office traffic filtered)
  • [ ok ] written ICP (industries, sizes, revenue, countries, roles)
  • [ ok ] results store (database table or spreadsheet)

endpoint POST https://api.moltsets.com/api/v1/tools/<tool_name>

auth Bearer token

[warn] no User-Agent header. Requests without one are rejected with 403.

$

How the pipeline works

Pick a visitor. Watch where it stops.

Each step only runs if the one before it passed its gate. Only confident, in-ICP matches spend a people search.

  1. Step 01passed

    Visitor IP

    from your site

    Visitor on /pricing

  2. Step 02passed

    ip_to_company

    domain + percentage

    acmeinfolabs.com · 0.92

    Gate: top match 0.5 or higher

  3. Step 03passed

    search_companies

    firmographics by domain

    IT services · 51-200 · ICP 3/4

    Gate: ICP fit and 0.8 or higher

  4. Step 04passed

    search_people

    up to 5 ICP contacts

    Jane Smith · Director of Marketing

Calls used3

$ 1 ICP contact found. Ready for your CRM.

Step 1

Resolve the IP to a company

ip_to_company takes an IPv4 address and returns zero or more candidate company domains. Each carries a percentage, a confidence value from 0 to 1.

You send

curl -X POST https://api.moltsets.com/api/v1/tools/ip_to_company \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "User-Agent: visitor-id/1.0" \
  -d '{"ip_address": "203.0.113.10"}'
You get back
{
  "status": "ok",
  "results": { "companies": [
    { "domain": "acmeinfolabs.com", "percentage": "1.0" }
  ] },
  "metadata": { "fair_use": { "records_remaining_5h": 999 } }
}

Watch out for

  • 200 ≠ ok

    Read status, not the HTTP code.

    ok is a match and not_found is a miss. A miss costs no tokens but still counts as one request against your Fair Use limit.

  • "1.0"

    percentage is a string.

    Convert it to a number before you compare it, for example parseFloat(c.percentage).

  • [ ]

    companies is a list.

    It can hold more than one candidate, so sort it by percentage, highest first, and treat the top entry as the match.

Expect misses. Consumer ISP addresses, mobile networks, VPNs and cloud hosting ranges usually don’t resolve to a named company. Office and corporate network traffic is where matches come from.

Next: 02 Gate on confidence

Step 2

Gate on confidence

Use the top candidate’s percentage to decide how much to spend on each visit. High-confidence matches go through the full pipeline. Low-confidence matches are logged and left alone until they repeat.

Try a score0.92 top percentage

  • 0.8 or higherUp to 3 calls

    Enrich the company (Step 3), then find people if it fits your ICP (Step 4).

  • 0.5 to 0.792 calls

    Enrich the company only. Find people if the same domain matches again from another IP or another day.

  • Below 0.51 call

    Log the domain against the visit. Don’t enrich.

  • not_found1 call

    Cache the miss for the IP. Don’t retry it.

These bands are a starting point. Tune them once you’ve compared a few weeks of matches against companies you know visited.

In code

topMatch + tier

function topMatch(response) {
  if (response.status !== "ok" || !response.results?.companies) return null;
  const ranked = response.results.companies
    .map(c => ({ domain: c.domain, confidence: parseFloat(c.percentage) }))
    .sort((a, b) => b.confidence - a.confidence);
  return ranked[0];
}

function tier(match) {
  if (!match) return "miss";
  if (match.confidence >= 0.8) return "high";
  if (match.confidence >= 0.5) return "medium";
  return "low";
}

0.55 ≈ 0.45

Close scores mean a shared IP.

If the top two candidates are close, for example 0.55 and 0.45, the IP is probably shared, such as a co-working space or a managed network. Treat those as low confidence whatever the top score says.

Next: 03 Enrich the company

Step 3

Enrich the company and check ICP fit

Pass the matched domain to search_companies with the domain filter for an exact lookup. You get back the company’s name, industry, size, revenue band, location and NAICS codes.

You send

curl -X POST https://api.moltsets.com/api/v1/tools/search_companies \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "User-Agent: visitor-id/1.0" \
  -d '{"domain": "acmeinfolabs.com", "limit": 1}'

You get back

{
  "name": "Acme Infolabs",
  "domain": "acmeinfolabs.com",
  "industry": "Information Technology",
  "linkedin_industry": ["IT Services and IT Consulting"],
  "employee_count": "57",
  "employee_range": "51-200",
  "revenue_range": "$20M - $50M",
  "city": "Vancouver",
  "country": "Canada",
  "naics_codes": ["5415", "54151", "541511"]
}

"limit": 1

One record is all you need.

An exact domain lookup only needs one record, and every record returned counts against your search allowance.

Score it against your ICP

Write your ICP using the same values the API returns, so the check is a straight comparison.

ICP + icpFit

const ICP = {
  industry: ["Information Technology", "Finance and Banking"],
  employee_range: ["51-200", "201-500", "501-1000"],
  revenue_range: ["$10M - $20M", "$20M - $50M", "Above $50M"],
  country: ["United States", "United Kingdom"]
};

function icpFit(company) {
  const checks = ["industry", "employee_range", "revenue_range", "country"];
  const passed = checks.filter(k => ICP[k].includes(company[k]));
  return { passed: passed.length, of: checks.length };
}
acmeinfolabs.com
  • industry✓ Information Technology
  • employee_range✓ 51-200
  • revenue_range✓ $20M - $50M
  • country✗ Canada

3/4 Passes. On to Step 4.

Decide how many checks a company must pass before you spend a people search on it. Four out of four is strict, and three out of four allows for a missing field. Store the firmographics against the domain so you never look the same company up twice.

Next: 04 Find the people

Step 4

Find the people in your ICP

For companies that pass the ICP check, call search_people with company_domain plus your role filters. Use seniority for level, department for function, and title when you need a specific role.

You send

curl -X POST https://api.moltsets.com/api/v1/tools/search_people \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "User-Agent: visitor-id/1.0" \
  -d '{
    "company_domain": "acmeinfolabs.com",
    "seniority": ["Director", "VP", "Head", "C Suite"],
    "department": ["Sales", "Marketing"],
    "limit": 5
  }'

You get back

{
  "full_name": "Jane Smith",
  "title": "Director of Marketing",
  "seniority": "Director",
  "linkedin_url": "https://linkedin.com/in/janesmith",
  "business_email": "jane.smith@acmeinfolabs.com",
  "business_email_risk_score": "A",
  "business_email_validated_at": "2026-08-25"
}

The email is usually included

Each result includes the person’s name, title, seniority, location and LinkedIn URL. Where MoltSets holds one, it also includes business_email, with a business_email_risk_score from A to F and the date it was last validated.

That means you usually don’t need a separate email lookup. For a person returned without a business email, pass their linkedin_url to linkedin_to_business_email.

business_email_risk_score

  1. Avalidated
  2. Bengaged
  3. Ccatch-all
  4. Dnever send
  5. Fno signal

A, B: sendC, F: your callD: never send

Tips for this step

  • 3-5

    Keep limit low.

    You want the few people most likely to care that their company is on your pricing page, not the whole org chart.

  • OR · AND

    How filters combine.

    Lists are OR within a filter and AND across filters. The example above returns directors and above in sales or marketing.

  • exclude_

    Skip your customers.

    Add exclude_company_domain with your existing customers so you don’t prospect accounts you already have.

  • not_found

    Widen the search.

    Drop department first, then broaden seniority.

  • D

    Don’t send blind.

    Never send to D. Treat C and F as unknown: validate them, or warm them at lower volume.

Next: Staying within the $27 plan

From our sister company

An IP gets you the company. RB2B gets you the person.

RB2B identifies the individual on your site, with their name, LinkedIn profile and business email, and sends them to Slack, Teams, your CRM or Clay. Person-level identification covers US visitors.

Try RB2B >One script in your site header.

Staying within your plan

What your $27 buys.

Tokens are unlimited, so the limits that matter are the Fair Use windows. Search is the tight one.

Ring up a plan

At 5 people per company

~400

ICP companies fully processed a week

About 80 per 5-hour window.

The windows roll from your first request, not on a fixed clock. Call get_account any time to see what’s left and when each window resets. It costs nothing.

moltsets_>

$27 / month plan · Fair Use


Tokensunlimited

Enrichment

1 Resolve IP1 req/IP · 1 rec/match

Missing email1 req · 1 rec/match

Limit5k req + 1k rec / 5h · 5k rec / wk

Search tight

3 Enrich company1 req · 1 rec

4 Find people1 req · 1 rec/person

Limit2.5k req + 500 rec / 5h · 2.5k rec / wk

Searches at once3


@ 5 people/co~400 co / wk

get_accountfree

Keep this receipt

Ways to stretch it ✂ clip and keep

Step 5

Privacy and compliance

An IP address can be personal data under GDPR, and Step 4 returns named people with business emails. That puts this pipeline inside privacy law, so sort these out before you switch it on.

Where the personal data is.

  1. Visitor IP203.0.113.10Personal data
  2. Steps 1-3Acme InfolabsBusiness data
  3. Step 4Jane Smith, DirectorPersonal data
  4. Step 4Business emailPersonal data

privacy law appliescompany facts, lower risk

So, before you go live

  1. 01Pick a lawful basis

    Most teams use legitimate interest. Write a short assessment that covers both the company lookup and the people search, and keep it on file.

  2. 02Say it in your privacy policy

    Explain that you match visitor IPs to companies and look up business contacts, what you store, why, and how someone can object.

  3. 03Set a retention period

    Your IP cache already expires after 7 to 30 days. Make that your stated retention period, and delete on schedule.

  4. 04Check how you capture the IP

    A script or beacon that stores or reads anything on the visitor’s device falls under cookie rules. In the EU, consent is the default for non-essential tracking.

  5. 05Treat contact as direct marketing

    Emailing the people from Step 4 has its own rules, and they differ between the UK, the EU and the US. Always identify yourself and offer an easy opt-out.

  6. 06Honour objections

    Keep a suppression list. When someone objects, stop processing their data and don’t contact them again.

This is a starting checklist, not legal advice. Rules differ by country and change over time, so check your setup with your own counsel before you go live.

No code version

Run it through Claude

If you have a list of IPs and no pipeline yet, the MoltSets MCP server runs the same four steps in a chat. Connect it at https://mcp.moltsets.com/mcp, paste or attach your IPs, and give Claude the rules.

Running it through Claude instead of code

Copy. Paste. Get a table.

  1. 1Connect the server

    https://mcp.moltsets.com/mcp

  2. 2Paste or attach your IPs
  3. 3Give Claude the rules →
The prompt

Here are this week’s website visitor IPs. For each one:

  1. Resolve it with ip_to_company and take the candidate with the highest percentage.
  2. Skip anything below 0.8.
  3. Look up the company with search_companies by domain.
  4. Keep only Information Technology or Finance and Banking companies with 51-1000 employees in the US, Canada or the UK.
  5. For those, find up to 5 Director-level and above people in Sales or Marketing with search_people.

Give me a table of company, domain, confidence, industry, size, and each person’s name, title, LinkedIn URL and business email.

Best for: a weekly review of a few hundred IPs.

Sources: IP to Company · Search for Companies · Rate Limits · Authentication

Run this playbook on MoltSets

1,000 API calls. No card.

Sign up and start calling the API today.

summarise with AI

Put this page to work

Pick your AI. It opens with a ready prompt to summarise this page and apply it to your team.

ChatGPT Claude Google AI Mode Grok Perplexity