Skip to main content
The Spotter API lets you identify the company behind a website visitor in real-time, directly from JavaScript. Use it to personalize your website, show relevant content, or trigger custom workflows based on who’s visiting.

What is Spotter?

Spotter is a client-side JavaScript API that:
  • Identifies companies visiting your website in real-time
  • Returns rich company data including industry, size, location, and contact info
  • Works automatically with the Snitcher tracker once your domains are authorised
  • Integrates natively with Google Analytics 4
Spotter is included with your Snitcher subscription. It uses the same identification data that powers your dashboard.

Setup

Before using Spotter, you need to authorise the domains that are allowed to make Spotter API requests. This prevents unauthorised websites from using your identification quota.
  1. Go to your Snitcher Dashboard
  2. Navigate to Settings > Integrations > Spotter
  3. Add the domains you want to authorise (e.g. *.example.com)
  4. Click Save
Use a wildcard prefix like *.example.com to authorise all subdomains at once, including the root domain itself.

Access Identification Data

Once your domains are authorised and the Snitcher tracker is installed, you can access identification data in two ways: Call the method directly on the Snitcher object:

Option 2: Using a Callback

If you prefer a callback-based approach, define window.SpotterSettings before the tracker loads:
No token or API key is required. Spotter authenticates using the Origin header of your request, matched against your authorised domains.

Response Structure

Successful Identification

When a company is identified, you receive:

Callback Format (Legacy)

If using the callback approach, you receive data in the legacy format:

Unidentified Visitor

When using the callback format, if the visitor can’t be identified:
When using getSpotterIdentification():

Common Use Cases

Personalize Headlines

Show Relevant Content by Industry

Adjust Pricing Display

Track High-Value Visitors

Company Data Reference

See Company Sizes and Company Industries for all possible values.

Native Integrations

Snitcher can automatically sync identification data to:

Google Analytics 4

Sync company data as GA4 user properties

Google Tag Manager

Push data to the dataLayer for GTM

Best Practices

  1. Handle missing data gracefully: Not all companies have complete profiles
  2. Don’t block page load: Identification is async; design for delayed data
  3. Cache is automatic: Data is cached in sessionStorage to avoid repeated calls
  4. Respect privacy: Don’t use identification in ways that might concern visitors

Troubleshooting

  • Make sure your domain is listed under Settings > Integrations > Spotter in the dashboard
  • If using subdomains, add a wildcard entry like *.example.com
  • Changes to authorised domains may take up to 10 minutes to take effect
  • Ensure the tracker is fully initialized before calling
  • Use Snitcher.on('initialized', callback) to wait for initialization
  • Check browser console for errors
  • Residential/consumer IPs don’t identify to companies
  • VPN users may not be identified
  • Test from a business network or office
  • Ensure SpotterSettings is defined before the tracking script
  • Consider using getSpotterIdentification() instead