35% off all annual plans Lusha summer sale - limited time only

Claim discount

Find the companies visiting your website right now

Built by: Lusha
Time to build: 5 min
Difficulty: Easy
Tools: ClaudeLusha
Type: Prompt

98% of your website visitors leave without filling in a form. They researched your pricing page, read your case studies, and compared you against competitors — and you have no idea who they were. Lusha’s Website Visits API changes that. This prompt identifies every company visiting your website, ranks them by engagement score and session depth, and returns a prioritised list of accounts worth following up on — before they visit a competitor instead.

How to start

1

Get your Lusha API key and Site ID

Log in to Lusha → API Hub → copy your API key. Then go to your domain settings, click the … menu next to your configured domain, and select “Copy Site ID.” Full documentation at docs.lusha.com.

2

Connect Lusha to Claude

Open the Lusha connector in Claude. Your API key authenticates every call automatically once connected.

3

Paste the prompt and fill in the brackets

Replace [YOUR_SITE_ID] with the Site ID from your Lusha dashboard and send. Claude calls the Website Visits API and returns a ranked company list in one pass.

The Lusha Website Visits API returns company-level data only — it identifies which companies are visiting your website, not which individuals. No personal data is returned or processed at the visitor identification stage. Individual contact data is only accessed in a subsequent enrichment step using Lusha’s verified B2B database. Lusha is fully GDPR compliant. Full privacy documentation at lusha.com/trust-center.

The prompt

 

@Lusha Use the Website Visits API
(POST /v3/companies/website-visits) to identify
every company that has visited my website in
the last 30 days.
 
SITE ID: [YOUR_SITE_ID]
DATE RANGE: Last 30 days
SORT BY: Engagement score (highest first)
 
For each company return:
- Company name and domain
- Engagement score
- Total sessions
- Unique visitors
- Average session length in minutes
- High intent pageviews
- Days since last visit
- Days visited in the period
 
Then segment the results into three tiers:
 
TIER 1 — TOP PRIORITY
Engagement score above 75
AND visited more than once
AND high intent pageviews above 0
These accounts are actively researching.
Act within 48 hours.
 
TIER 2 — ACTIVE
Visited in the last 7 days
but below Tier 1 threshold
Monitor and reach out this week.
 
TIER 3 — RETURNING
Visited more than once
but not in the last 7 days
Re-engagement candidates.
 
Return results as a clean table.
Tier 1 first, then Tier 2, then Tier 3.
Note the total count in each tier.

What you'll get back

A ranked list of every company visiting your website, segmented by engagement tier. Here’s what the output looks like:

Website visitor companies · Last 30 days · Lusha Website Visits API

CompanyScoreSessionsAvg minsIntent PVsLast visitTier
[Company A]9186.452 days agoTier 1
[Company B]8454.131 day agoTier 1
[Company C]6833.213 days agoTier 2
[Company D]5221.8014 days agoTier 3

Example outputs in this play are illustrative — they reflect the structure, fields, and format of real Lusha Website Visits API output, but were not pulled from a live session. Run the prompt with your own Site ID to see live results.

Why use Lusha in Claude

A company that visited your pricing page five times in the last week and spent an average of six minutes per session is not a casual visitor. They are evaluating. The Lusha Website Visits API surfaces that signal — company name, domain, engagement score, session depth, high-intent pageviews, and days since last visit — so your team acts on it before it disappears.

The three-tier segmentation in this prompt is deliberately action-oriented. Tier 1 accounts have the engagement score, visit frequency, and intent pageview combination that signals active evaluation. Tier 2 accounts are recent but not yet at evaluation depth. Tier 3 accounts visited more than once but went quiet — a different play, a different message, but still worth monitoring. Separating the three tiers prevents the most urgent accounts from being buried in a flat list ranked by score alone.

This is company-level identification only. The Website Visits API returns which companies are visiting — not which individuals. To identify the right contacts to reach out to at each company, use the Get the decision-makers at a company visiting your website play. To filter by ICP fit before investing outreach effort, use the Find the high-intent visitors in your ICP play.

Lusha data is sourced and used in accordance with Lusha’s Privacy Policy and Terms of Use. Lusha is fully GDPR compliant, certified by ePrivacyseal GmbH, and validated by TrustArc.

FAQ

  • How does Lusha identify which companies are visiting my website?

    Lusha matches IP addresses and other session signals from your website traffic against its database of 60M+ verified company records. When a visitor’s session resolves to a known company in Lusha’s database, that company appears in the Website Visits API response. The process is company-level only — individual visitor identity is not returned. Domains must be configured in your Lusha dashboard before visitor data becomes available. Full technical documentation at docs.lusha.com.

  • How far back can I query website visitor data?

    The Website Visits API supports a maximum date range of 3 months per query. For ongoing monitoring, run the prompt weekly or monthly and compare results across periods. The Build a weekly website visitor pipeline report play is built specifically for that recurring motion.

  • What does the engagement score mean?

    The engagement score is Lusha’s composite metric combining session depth, visit frequency, session duration, high-intent pageviews, and recency into a single 0–100 score per company. A score above 75 consistently indicates active research behaviour rather than casual browsing. The score is calculated by Lusha’s algorithm and updated with each new session. Use it as a prioritisation signal, not as a guaranteed purchase intent indicator.

  • Is this GDPR compliant?

    Yes. The Website Visits API identifies companies — not individuals — using session signals matched against Lusha’s B2B company database. No personal data is returned at the visitor identification stage. Lusha is fully GDPR compliant, certified by European independent auditors ePrivacyseal GmbH, and validated by TrustArc. When individual contacts are subsequently enriched using Lusha’s contact database, that enrichment is governed by Lusha’s GDPR-compliant data processing framework. Full documentation at lusha.com/trust-center.

  • What if a company visits but doesn't appear in the results?

    The Website Visits API returns companies that Lusha can match to its B2B company database. Not every IP address resolves to a known company — residential IPs, VPNs, and very small companies may not match. This is a standard characteristic of company-level website visitor identification and applies to all tools in this category. For the companies that do resolve, the data is verified against Lusha’s 60M+ company database and includes firmographic enrichment alongside the visit metrics.

Ready to run this?

One data connection. Works in Claude, ChatGPT, your CRM, or any agent you build.